Merge branch 'server' of https://g-u-i.me/gogs/bachir/hehe-rover into server
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
// }
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user