| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 | 
							
- <!DOCTYPE HTML>
 
- <html>
 
- <head>
 
-     <meta charset="utf-8">
 
-     <title>空中传媒</title>
 
-     <meta name="viewport"
 
-           content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"/>
 
-     <meta name="apple-mobile-web-app-capable" content="yes"/>
 
-     <meta name="full-screen" content="true"/>
 
-     <meta name="screen-orientation" content="portrait"/>
 
-     <meta name="x5-fullscreen" content="true"/>
 
-     <meta name="360-fullscreen" content="true"/>
 
-     <style>
 
-         body {
 
-             text-align: center;
 
-             background: #000000;
 
-             padding: 0;
 
-             border: 0;
 
-             margin: 0;
 
-             height: 100%;
 
-         }
 
-         * {
 
-             -webkit-touch-callout:none;
 
-             -webkit-user-select:none;
 
-             -khtml-user-select:none;
 
-             -moz-user-select:none;
 
-             -ms-user-select:none;
 
-             user-select:none;
 
-             -webkit-tap-highlight-color:rgba(0,0,0,0);
 
-         }
 
-         html {
 
-             -ms-touch-action: none; /* Direct all pointer events to JavaScript code. */
 
-         }
 
-         .button {
 
-         display: block;
 
-         margin: 0 auto;
 
-         width: 320px;
 
-         }
 
- 	.imghide{
 
- 		display:none;
 
- 	}
 
- 	#statusnow{
 
- 		width:70%;
 
- 		height:250px;
 
- 	}
 
-     </style>
 
- </head>
 
- <body>
 
- <div style="display:inline-block;width:100%; height:100%;margin: 0 auto; background: black; position:relative;" id="gameDiv">
 
-     <div style="text-align:center;margin-top:50px;">
 
-         <span id="timer" style="color:#fff;font-size:20px;">10 秒</span>
 
-         <div id="result_panel" style="display:none;text-align:center;background-color:rgba(0,0,0,0.5)">
 
-             <div><button id="reset" style="font-size:25px">再玩一次</button><br>
 
-             <button onClick="clickMore();" style="font-size:25px">更多游戏</button></div>
 
-         </div>
 
-     </div>
 
-     <div id="button" class="button">
 
-     	 <img src="img/01.jpg" id="statusnow"/>
 
-     </div>
 
-     <div style="text-align:center;">
 
-         <div id="result" style="color:#fff;font-size:30px;">0 升</div>
 
-         <div id="best" style="margin-top:20px;color:#fff;font-size:20px;"> </div>
 
-     </div>
 
-     <audio src="audio/2793.wav" preload id="clickdownsound"></audio>
 
-     <img src="img/01.jpg" class="imghide" id="status01"/>
 
-     <img src="img/02.jpg" class="imghide"  id="status02"/>
 
- </div>
 
-         <script src="jquery/1.10.2/jquery.min.js"></script>
 
-             <script type="text/javascript">
 
-                     var initial = 1000;
 
-                     var count = initial;
 
-                     var counter; //10 will  run it every 100th of a second
 
-                     var state = 0;
 
-                     var total = 0;
 
- 					var cds=$('#clickdownsound').get(0);
 
-                     if (localStorage.max) {
 
-                         $('#best').html( '最好成绩:' + localStorage.max + ' 升');
 
-                     }
 
-                     function timer() {
 
-                         if (count <= 0) {
 
-                             clearInterval(counter);
 
-                             state = 0;
 
-                             $('#result_panel').show();
 
-                             if ( !localStorage.max || parseInt(localStorage.max) < total) {
 
-                                 localStorage.max = total;
 
-                                 $('#best').html( '最好成绩:' + localStorage.max + ' 升');
 
-                             }
 
- 							$('#timer').hide();
 
-                             localStorage.max = parseInt(localStorage.max) > total ? localStorage.max: total;
 
-                             dp_submitScore(total);
 
-                             offEvent();
 
-                             return;
 
-                         }
 
-                         count--;
 
-                         displayCount(count);
 
-                     }
 
-                     function displayCount(count) {
 
-                         var res = count / 100;
 
-                         document.getElementById("timer").innerHTML = res.toPrecision(count.toString().length) + " 秒";
 
-                     }
 
-                     $(document).on('touchmove', function(e) {
 
-                         e.preventDefault();
 
-                     })
 
-                   
 
-                     function reset() {
 
-                         count = initial;
 
-                         total = 0;
 
-                         state = 0;
 
-                         $('#result').html(total + ' 升');
 
-                         $('#timer').html(10 + ' 秒');
 
-                         initEvent();
 
-                     }
 
- 					
 
-                     $('#reset').on('touchend  click', function (e) {
 
-                         reset();
 
-                         $('#result_panel').hide();
 
-                         $('#timer').show();
 
-                         
 
-                          e.preventDefault();
 
-                     });
 
-                     displayCount(initial);
 
-                     initEvent();
 
-                    function offEvent(){
 
-                    		$('#button').unbind();
 
-                    }
 
-                    function initEvent(){
 
-                    		  $('#button').on('touchstart mousedown', function (e) {
 
-                         	if (!state) {
 
-                             	state = 1;
 
-                             	counter = setInterval(timer, 10);
 
-                         	}
 
-                         	 $('#statusnow').attr('src',$('#status01').attr('src'));
 
-                         	if(cds.paused){
 
-                         			cds.currentTime=0;
 
-                         	}
 
-                         	cds.play();
 
-                         	e.preventDefault();
 
-                     	});
 
-                     $('#button').on('touchend mouseup', function (e) {
 
-                         if (state) {
 
-                             total++;
 
-                             $('#result').html(total + ' 升');
 
-                         }
 
-                         cds.pause();
 
-                         $('#statusnow').attr('src',$('#status02').attr('src'));
 
-                         e.preventDefault();
 
-                     });
 
-                    }
 
-             </script>
 
- 		<script language=javascript>
 
- 		var mebtnopenurl = 'http://game.ikongzhong.cn/games/';
 
- 		window.shareData = {
 
- 		        "imgUrl": "http://game.ikongzhong.cn/icon/bttz.png",
 
- 		        "timeLineLink": "http://game.ikongzhong.cn/games/bttz/index.html",
 
- 		        "tTitle": "冰桶挑战-空中传媒",
 
- 		        "tContent": "冰桶挑战-空中传媒"
 
- 		};
 
- 				
 
- 		function goHome(){
 
- 			window.location=mebtnopenurl;
 
- 		}
 
- 		function clickMore(){
 
- 			if((window.location+"").indexOf("f=zf",1)>0){
 
- 				window.location = "http://game.ikongzhong.cn/games/";
 
- 			 }
 
- 			 else{
 
- 				goHome();
 
- 			 }
 
- 		}
 
- 		function dp_share(){
 
- 			document.title ="冰桶挑战全民出动,我在短短10秒倒了"+myData.score+"升,还有谁?"
 
- 			document.getElementById("share").style.display="";
 
- 			window.shareData.tTitle = document.title;
 
- 		}
 
- 		function dp_Ranking(){
 
- 			window.location=mebtnopenurl;
 
- 		}
 
- 		function showAd(){
 
- 		}
 
- 		function hideAd(){
 
- 		}
 
- 		document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
 
- 		    
 
- 		    WeixinJSBridge.on('menu:share:appmessage', function(argv) {
 
- 		        WeixinJSBridge.invoke('sendAppMessage', {
 
- 		            "img_url": window.shareData.imgUrl,
 
- 		            "link": window.shareData.timeLineLink,
 
- 		            "desc": window.shareData.tContent,
 
- 		            "title": window.shareData.tTitle
 
- 		        }, onShareComplete);
 
- 		    });
 
- 		    WeixinJSBridge.on('menu:share:timeline', function(argv) {
 
- 		        WeixinJSBridge.invoke('shareTimeline', {
 
- 		            "img_url": window.shareData.imgUrl,
 
- 		            "img_width": "640",
 
- 		            "img_height": "640",
 
- 		            "link": window.shareData.timeLineLink,
 
- 		            "desc": window.shareData.tContent,
 
- 		            "title": window.shareData.tTitle
 
- 		        }, onShareComplete);
 
- 		    });
 
- 		}, false);
 
- 		</script>
 
- 		<div id=share style="display: none">
 
- 			<img width=100% src="http://game.ikongzhong.cn/games/bttz/share.png"
 
- 				style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
 
- 				ontouchstart="document.getElementById('share').style.display='none';" />
 
- 		</div>
 
- 		<div style="display: none;">
 
- 			<script type="text/javascript">
 
-             var myData = { gameid: "bttz" };
 
- 			 var domain = ["oixm.cn", "hiemma.cn", "peagame.net"][parseInt(Math.random() * 3)];
 
- 			window.shareData.timeLineLink ="http://game.ikongzhong.cn/games/bttz";
 
- 			function dp_submitScore(score){
 
- 				myData.score = score;
 
- 				myData.scoreName ="共倒"+score+"升";
 
- 				if(score>0){
 
- 					if (confirm("冰桶挑战邀你来战,10秒内你居然倒了"+score+"升!你这么吊小伙伴们知道不?")){
 
- 						dp_share();
 
- 					}
 
- 				}
 
- 			}
 
- 			function onShareComplete(res) {
 
-                 if (localStorage.myuid && myData.score != undefined) {
 
-                     setTimeout(function(){
 
-                         if (confirm("要将成绩提交到空中传媒排行榜吗?")) {
 
-                             window.location = "http://game.ikongzhong.cn/games/";
 
-                         }
 
-                         else {
 
-                             document.location.href = mebtnopenurl;
 
-                         }
 
-                     }, 500);
 
-                 }
 
- 				else {
 
- 		        	document.location.href = mebtnopenurl;
 
- 				}
 
- 	        }
 
- 			</script>
 
- 			<script type="text/javascript" src="http://tajs.qq.com/stats?sId=36313548" charset="UTF-8"></script>
 
- </body>
 
- </html>
 
 
  |