Browse Source

Merge branch 'server' of https://g-u-i.me/gogs/bachir/hehe-rover into server

Bachir Soussi Chiadmi 7 years ago
parent
commit
46791ec23c
2 changed files with 15 additions and 15 deletions
  1. 4 4
      www/public_html/index.php
  2. 11 11
      www/public_html/js/script.js

+ 4 - 4
www/public_html/index.php

@@ -21,10 +21,10 @@ header("Pragma: no-cache");
       </header>
       <section id="timelaps">
         <video id="timelapsvid" loop preload >
-          <!-- <source class="240p" src="videos/timelaps-240p.mp4?nocache=<?php echo time(); ?>" type="video/mp4">
-          <source class="360p" src="videos/timelaps-360p.mp4?nocache=<?php echo time(); ?>" type="video/mp4">
-          <source class="480p" src="videos/timelaps-480p.mp4?nocache=<?php echo time(); ?>" type="video/mp4">
-          <source class="720p" src="videos/timelaps-720p.mp4?nocache=<?php echo time(); ?>" type="video/mp4"> -->
+          <!-- <source class="240p" src="videos/timelaps-240p.mp4?nocache=<?php echo time(); ?>" type="video/mp4"> -->
+          <!-- <source class="360p" src="videos/timelaps-360p.mp4?nocache=<?php echo time(); ?>" type="video/mp4"> -->
+          <!-- <source class="480p" src="videos/timelaps-480p.mp4?nocache=<?php echo time(); ?>" type="video/mp4"> -->
+          <!-- <source class="720p" src="videos/timelaps-720p.mp4?nocache=<?php echo time(); ?>" type="video/mp4"> -->
           <source class="1080p" src="videos/timelaps-1080p.mp4?nocache=<?php echo time(); ?>" type="video/mp4">
         </video>
       </section>

+ 11 - 11
www/public_html/js/script.js

@@ -24,18 +24,18 @@ $(document).ready(function() {
     console.log("Init");
 
     // teasing
-    var now = Date.now();
-    var opening = new Date("2016-07-02T18:30");
-    // console.log(now);
-    // console.log(limit.getTime());
-    if( window.location.hostname == "centipede.hehe.org" && now < opening.getTime()){
-      $('body').addClass('teasing');
-      setTimeout(function(){
-        window.location.reload();
-      },1000*60);
-    }else{
+    // var now = Date.now();
+    // var opening = new Date("2016-07-02T18:30");
+    // // console.log(now);
+    // // console.log(limit.getTime());
+    // if( window.location.hostname == "centipede.hehe.org" && now < opening.getTime()){
+    //   $('body').addClass('teasing');
+    //   setTimeout(function(){
+    //     window.location.reload();
+    //   },1000*60);
+    // }else{
       loadData();
-    }
+    // }
 
   };