Difference between revisions of "User:Yb30"
Line 7: | Line 7: | ||
− | + | ||
− | < | + | <script type="text/javascript"> |
− | + | ||
− | + | today = new Date(); | |
− | + | ||
− | + | BigDay = new Date("December 25, 2020"); | |
− | + | ||
− | + | msPerDay = 24 * 60 * 60 * 1000 ; | |
− | + | ||
− | + | timeLeft = (BigDay.getTime() - today.getTime()); | |
− | + | ||
− | + | e_daysLeft = timeLeft / msPerDay; | |
− | + | ||
− | + | daysLeft = Math.floor(e_daysLeft); | |
− | + | ||
− | + | e_hrsLeft = (e_daysLeft - daysLeft)*24; | |
− | + | ||
− | + | hrsLeft = Math.floor(e_hrsLeft); | |
− | + | ||
− | + | minsLeft = Math.floor((e_hrsLeft - hrsLeft)*60); | |
− | + | ||
− | + | document.write("There are only<BR> <H4>" + daysLeft + " days " + hrsLeft +" hours and " + minsLeft + " minutes left </H4> Until December 25th 2020<P>"); | |
− | + | ||
− | + | </script> | |
− | + | ||
− | + | ||
− | |||
− | < | ||
− | |||
− | |||
− | |||
− | |||
− | |||
</center> | </center> |
Revision as of 10:30, 22 February 2022
YB30's Wiki
Change the user count if you have visited this page for your first time.
1
<script type="text/javascript">
today = new Date();
BigDay = new Date("December 25, 2020");
msPerDay = 24 * 60 * 60 * 1000 ;
timeLeft = (BigDay.getTime() - today.getTime());
e_daysLeft = timeLeft / msPerDay;
daysLeft = Math.floor(e_daysLeft);
e_hrsLeft = (e_daysLeft - daysLeft)*24;
hrsLeft = Math.floor(e_hrsLeft);
minsLeft = Math.floor((e_hrsLeft - hrsLeft)*60);
document.write("There are only" + daysLeft + " days " + hrsLeft +" hours and " + minsLeft + " minutes left
Until December 25th 2020");
</script>