Skip to content

Commit

Permalink
Added ticker sound, fixed image
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Speiser <felix.speiser@gmail.com>
  • Loading branch information
Fspeiser committed May 14, 2011
1 parent a51928d commit 9e7e338
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.html
Expand Up @@ -22,7 +22,6 @@
var dragcolor="rgb(255,0,0)"; //Farbe des Zeigers beim draggen
var handcolor=basehandcolor;
var pincolor=basepincolor;
var soundToPlay='bell' //Choose 'gong' or 'bell'

var gLockMinutes = true; //Beim draggen immer auf ganze Minuten locken?
var gShowMinutes = false; //Zeigt ständig den Rest der Zeit an.
Expand Down Expand Up @@ -338,6 +337,8 @@
if(timing==false){
timing = window.setInterval("draw();if(gPause==false && zeitverlauf>0){zeitverlauf--}", 1000);
}
//Play the ticker
EvalSound("ticker");
}

//HEX zu RGB Werten von javascriptpeter.net
Expand Down Expand Up @@ -429,7 +430,7 @@

function finishTimer() {
//Play the sound
EvalSound(soundToPlay);
EvalSound("bell");
//make the clock flash a few times (startingcolor, times to flash, up or down)
flash(255,6,false);
//release time eventlistener and kill the hand
Expand Down Expand Up @@ -521,6 +522,8 @@
<body onload="start('600');" onResize="setCanvasSize()">

<embed src="media/boxingbell.wav" autostart=false width=0 height=0 id="bell" enablejavascript="true">
<embed src="media/ticker.mp3" autostart=false width=0 height=0 id="ticker" enablejavascript="true">


<canvas id="zeiger" width="1980" height="1080"></canvas>

Expand Down
Binary file added media/ticker.mp3
Binary file not shown.

0 comments on commit 9e7e338

Please sign in to comment.