王育民 4 years ago
parent
commit
10f57cde70
2 changed files with 212 additions and 205 deletions
  1. 4 16
      index.html
  2. 208 189
      src/project.js

+ 4 - 16
index.html

@@ -68,8 +68,8 @@
 <div id="canvasDiv" style="width:100%;height:100%;">
     <canvas id="GameCanvas" oncontextmenu="event.preventDefault()" tabindex="0"></canvas>
     <video id="contentElement" style="display:none;position: absolute;top: 0; left: 0;">
-        <source src="http://rmcdn.2mdn.net/Demo/vast_inspector/android.mp4"/>
-        <source src="http://rmcdn.2mdn.net/Demo/vast_inspector/android.webm"/>
+        <!-- <source src="http://rmcdn.2mdn.net/Demo/vast_inspector/android.mp4"/> -->
+        <!-- <source src="http://rmcdn.2mdn.net/Demo/vast_inspector/android.webm"/> -->
     </video>
     <div id="block-Box" style="display:block;width:100%;height:100%;"></div>
 </div>
@@ -89,15 +89,6 @@
     <img src="res/loading.gif" width="7%" height="7%" alt=""/>
 </div>
 
-<!-- 判断浏览器是否屏蔽广告 -->
-<script src="http://demo.jb51.net/js/2015/adview_pic_cpc_cpm_cpa_guanggao_gg_ads_300x250.js" type="text/javascript"></script>
-<script type="text/javascript">
-    var killAdT = typeof (killads);
-    <!-- if (typeof(killads)=='undefined'){ -->
-    <!-- alert('广告被过滤'); -->
-    <!-- } -->
-</script>
-
 <!--<div align="center" style="font-size: 10px;color: dimgrey">advertisement</div>-->
 
 <script type="text/javascript" src="//imasdk.googleapis.com/js/sdkloader/ima3.js"></script>
@@ -161,8 +152,7 @@
             clearInterval(timer);
         }
         timer = setInterval(function () {
-            // tempSeconds++;
-            tempSeconds = 101;
+            tempSeconds++;
             actualTotal();
             var loadintT = document.getElementById("loadingText")
             if (!loadintT) {
@@ -200,7 +190,7 @@
             }
             if (tempSeconds > 100) {
                 clearInterval(timer);
-                tempSeconds = 100
+                tempSeconds = 100;
                 loadintT.innerHTML = 'loading......' + parseInt(tempSeconds) + '%';
             }
         }, t * 1000);
@@ -262,8 +252,6 @@ function ShowBannerAD(){
         var splash = document.getElementById('splash');
         splash.style.display = 'block';
 
-        console.log("indexlTextTTTT");
-
         var cocos2d = document.createElement('script');
         cocos2d.async = true;
         cocos2d.src = window._CCSettings.debug ? 'cocos2d-js.js' : 'cocos2d-js-min.js';

File diff suppressed because it is too large
+ 208 - 189
src/project.js


Some files were not shown because too many files changed in this diff