<html>
<head>
<title>It is time to go home yet?</title>
<style>
#bg{
position:absolute;
width:500%;
height:500%;
top:-250%;
left:-250%;
overflow:hidden;
background: url('upload/files/bg.gif') 0 0 repeat;
-webkit-animation:spin 180s linear infinite;
animation:spin 180s linear infinite;
}
@-webkit-keyframes spin {
0%{transform:rotate(0deg);}
50%{transform:rotate(180deg);}
100%{transform:rotate(360deg);}
}
@keyframes spin {
0%{transform:rotate(0deg);}
50%{transform:rotate(180deg);}
100%{transform:rotate(360deg);}
}
#fullscreen{background:#c3c3c3;position:absolute;width:100%;height:100%;top:0;bottom:0;left:0;right:0;overflow:hidden;}
#main{height:17px;margin:auto;top:0;bottom:0;left:0;right:0;position:absolute;font-family:sans-serif;}
#showoff{position:absolute;left:0;right:0;bottom:20;text-align:center;}
a{font-weight:bold;text-decoration:none;color:#000;font-family:sans-serif;}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
</head>
<body>
<div id="fullscreen">
<div id="bg"></div>
<center id="main">
<?php
$zone = $_GET['t'];
if(empty($zone))$zone=0;
$pst=date(H);
$h=$pst+$zone;
$day=date(w);
$m=date(m);
$d=date(d);
$y=date(Y);
if ($day=="0") {
echo "Dude, its Sunday. The weekend ain't over quite yet.";
} elseif ($day=="6") {
echo "Dude, its Saturday. Don't even worry about it.";
} elseif ($day=="5" && $h<"8") {
echo "Come on man, just one more day.<br>Just go get that paycheck, and fake a stomach bug if you're dreading going in that much.";
} elseif ($day=="5" && $h>"16") {
echo "Dude, the weekend has just begun. Just try to enjoy yourself.";
} elseif ($day=="5" && $h>"7" && $h<"17") {
echo "<script language='JavaScript'>TargetDate='$m/$d/$y 5:00 PM';BackColor='';ForeColor='black';CountActive=true;CountStepper=-1;LeadingZero=true;DisplayFormat='%%H%% Hours, %%M%% Minutes, %%S%% Seconds';FinishMessage='It\'s finally the weekend!';</script>";
} elseif ($day>"0" && $day<"5" && $h<"8") {
echo "Dude, the day hasn't even started yet.<br>Maybe just call in sick or something if you're dreading it this much.";
} elseif ($day>"0" && $day<"5" && $h>"16") {
echo "Office hours are over, man.<br>I'll see you back here tomorrow.";
} elseif ($day>"0" && $day<"5" && $h>"7" && $h<"17") {
echo "<script language='JavaScript'>TargetDate='$m/$d/$y 5:00 PM';BackColor='';ForeColor='black';CountActive=true;CountStepper=-1;LeadingZero=true;DisplayFormat='%%H%% Hours, %%M%% Minutes, %%S%% Seconds';FinishMessage='Time to go home!';</script>";
} else {echo "Hmm. That's weird.<br>Looks like there was an error.<br>Try reloading the page again later.";}
?>
<?php
if ($day=="5" && $h>"7" && $h<"17" || $day>"0" && $day<"5" && $h>"7" && $h<"17") {
echo "<script language='JavaScript' src='//scripts.hashemian.com/js/countdown.js'></script>";
} else {}?>
<?php $access = $_GET['debug'];
if ($access == 1) {
echo '<br><br>$day='.$day.'<br>$zone='.$zone.'<br>$pst='.$pst.'<br>$h='.$h.'<br>$m='.$m.'<br>$d='.$d.'<br>$y='.$y;
} else {}?>
</center>
<div id="showoff">
<a href="?t=0<?php if ($access == 1) {echo '&debug=1';}?>">PST</a> |
<a href="?t=1<?php if ($access == 1) {echo '&debug=1';}?>">MST</a> |
<a href="?t=2<?php if ($access == 1) {echo '&debug=1';}?>">CST</a> |
<a href="?t=3<?php if ($access == 1) {echo '&debug=1';}?>">EST</a><br>
<a href="code?url=5.html">→ See the code. ←</a>
</div>
</div>
</body></html>