-
Notifications
You must be signed in to change notification settings - Fork 1
/
today.html
22 lines (22 loc) · 1.03 KB
/
today.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html>
<head>
<meta http-equiv="refresh" content="3600"; url="http://jononon.github.io/msihw/today.html">
<link rel="stylesheet" href="http://ihwapp.com/static/css/styles.css">
<link href='http://fonts.googleapis.com/css?family=Cabin+Condensed:400,700|Bitter' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="noscroll.css">
</head>
<script>
var today = new Date();
var tomorrow = new Date();
tomorrow.setDate(today.getDate() + 1);
var month = tomorrow.getMonth()+1;
var hours = today.getHours();
var tomorrowurl = "http://ihwapp.com/day/m/"+tomorrow.getFullYear()+"/"+month+"/"+tomorrow.getDate();
if(hours >= 15){
document.write("<center><font size=30><b>Tomorrow's Schedule</b></font></center><iframe src='"+tomorrowurl+"' style='width: 100%; height: 100%; border: 0px; display: inline;'></iframe>")
}
else{
document.write("<iframe src='http://ihwapp.com/today/m' style='width: 100%; height: 100%; border: 0px; display: inline;'></iframe>");
}
</script>
</html>