web/music-the-end-etc.html
changeset 94 873b0e9ff7f6
parent 92 ab0871ca8819
--- a/web/music-the-end-etc.html	Mon Jan 21 21:04:36 2013 +0100
+++ b/web/music-the-end-etc.html	Mon Jan 21 21:05:32 2013 +0100
@@ -27,9 +27,10 @@
 	<body>
 		<!-- div content - site takes the full height of browser -->			
 		<div id="content" class="full_hightScreen">
-			<div class="btnReturn">	
-	       		<button id="btnChoice" class="btn" onClick="location.href='menu_bonus.html';">Choice</button>                   		
+			<div class="boxReturn">	
+	       		<button class="btnReturn" onClick="location.href='the-end-etc.html';">Retour</button>  
 			</div>
+			
 			<!--this div empty allows the element content_vcentering to be vertically aligned -->
 			<section  id="intMusic" class="full_hightScreen">
 				<div class="strut"></div><!--
@@ -144,7 +145,7 @@
 	            	var audio = audioObj.get(0);
 					playingIndex = audioIndex;
 
-	            	if (audio.readyState === 4) {
+	            	if (audio.readyState === 4 || audio.readyState === 3) {
 						// Play the sound
 						playSound(audio);
 
@@ -153,10 +154,7 @@
 		            	audio.load();
 						loading = true;	
 
-		            	// Add event canplaythrough
 						audioObj.bind("canplaythrough", function() {
-							console.log("canplaythrough");
-
 							// Play the sound
 							playSound(audio);
 
@@ -174,7 +172,6 @@
 
 					// Add event ended
 					audioObj.bind("ended", function() {
-						console.log("ended");
 	            		// Change the button pause in play
     	        		$("#playpause" + playingIndex).css({"background-position" : '0 0'});