summaryrefslogtreecommitdiffstats
path: root/pages/home.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2012-11-01 01:16:42 -0700
committerPatrick Davison <snapwilliam@gmail.com>2012-11-01 01:16:42 -0700
commit4158e556d247830832b631fd4ef869e7c8e541e5 (patch)
treefacc402062b4b71913185d0dda68be4dbd69e95f /pages/home.php
parentc4058d01960509846b12621c0a0ed5547d1b0a0f (diff)
downloadpathery-4158e556d247830832b631fd4ef869e7c8e541e5.tar.xz
Sounds, soundManager2
Created and added "blingb" sound. Added a couple images to the cache Started adding soundManager2 - needs work. More testing on the multi-path animation code. General cleanup on the sounds. Changed the "Improved score 0 to X" to "You scored X"
Diffstat (limited to 'pages/home.php')
-rw-r--r--pages/home.php63
1 files changed, 59 insertions, 4 deletions
diff --git a/pages/home.php b/pages/home.php
index 89bc817..4f69d67 100644
--- a/pages/home.php
+++ b/pages/home.php
@@ -50,6 +50,51 @@ if (getCookie('pref_mute') != 'true') {
?>
<body>
+<?
+
+//<script src="sounds/script/soundmanager.js"></script>
+//<script type="text/javascript">soundManagerInit();</script>
+
+//<script src="sounds/script/soundmanager2.js"></script>
+?>
+
+<?
+$soundManager1 = '
+ <div>
+<script src="sounds/script/soundmanager.js"></script>
+<script type="text/javascript">soundManagerInit();</script>
+ </div>
+ ';
+
+$soundManager2 = "
+<script src='sounds/script/soundmanager2-nodebug-jsmin.js'></script>
+<script>
+soundManager.setup({
+ url: '/sounds/swf/',
+ flashVersion: 9, // optional: shiny features (default = 8)
+ useFlashBlock: false, // optionally, enable when you're ready to dive in/**
+ onready: function() {
+ // Ready to use; soundManager.createSound() etc. can now be called.
+ soundManager.createSound({id: 'achieve',url: '/sounds/achieve.mp3',autoLoad: true,volume: 50});
+ soundManager.createSound({id: 'ufoblip', url: '/sounds/ufoblip.mp3',autoLoad: true,volume: 50});
+ soundManager.createSound({id: 'bling', url: '/sounds/bling.mp3',autoLoad: true,volume: 50});
+ soundManager.createSound({id: 'blingb', url: '/sounds/blingb.mp3',autoLoad: true,volume: 50});
+ soundManager.createSound({id: 'charm',url: '/sounds/charm.mp3',autoLoad: true,volume: 50});
+ soundManager.createSound({id: 'blip',url: '/sounds/blip.mp3',autoLoad: true,volume: 50});
+ soundManager.createSound({id: 'cap',url: '/sounds/cap.mp3'});
+ soundManager.createSound({id: 'click',url: '/sounds/click.mp3'});
+ soundManager.createSound({id: 'sc',url: '/sounds/transmission.mp3'});
+ soundManager.createSound({id: 'hologram',url: '/sounds/hologram.mp3'});
+ }
+});
+</script>
+";
+
+//echo $soundManager1;
+echo $soundManager2;
+
+?>
+
<script type="text/javascript">
playerWallColor = '<?PHP echo isset($wallColor) ? $wallColor : ''; ?>';
playerWallEmblem = '<?PHP echo isset($wallEmblem) ? $wallEmblem : ''; ?>';
@@ -186,7 +231,7 @@ function displayMaze($motd, $mapType) {
$timerem = strtotime("tomorrow") - strtotime("now");
?>
<div style='text-align: center; margin-top: 5px; position:fixed; bottom:20px; left:20px;'>
- New maps in: <span id="countdown">00:00:00</span>
+ <span id="countdown">New maps</span>
</div>
<script type="text/javascript">
var countdownInt = self.setInterval(countdown, 1000);
@@ -195,6 +240,7 @@ $timerem = strtotime("tomorrow") - strtotime("now");
tomorrow.setTime(tomorrow.getTime() + <? echo $timerem; ?> * 1000);
var userConfirm = true;
+ var formatedTomorrow = tomorrow.format("ddd h:MM TT");
function countdown() {
var now = new Date();
@@ -214,8 +260,9 @@ $timerem = strtotime("tomorrow") - strtotime("now");
var seconds = addZero(timerem);
var stamp = hours + ":" + minutes;
- if (hours < 1 && minutes < 5)
+ //if (hours < 1 && minutes < 5)
stamp = stamp + ":" + seconds
+ stamp = 'New maps ' + formatedTomorrow + '<br />' + stamp + ' Remain';
document.getElementById("countdown").innerHTML = stamp;
if (totalSeconds <= 1 && userConfirm == true) {
@@ -274,8 +321,16 @@ function showStats(type) {
}
showStats(1);
</script>
-<script src="sounds/script/soundmanager.js"></script>
-<script type="text/javascript">soundManagerInit();</script>
+
+
+<?
+//<script src="sounds/script/soundmanager.js"></script>
+//<script type="text/javascript">soundManagerInit();</script>
+
+// NEW BELOW
+?>
+
+
<?PHP echo $noteScript; ?>
<?php