-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
164 lines (146 loc) · 8.09 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html>
<html>
<head>
<title>Today's Corbettmaths Starter</title><!-- Title -->
<meta name="viewport" content="width=device-width, initial-scale=1.0 user-scalable=False"><!-- Mobile scaling -->
<link rel="icon" href="https://starter.mctrees.net/favicon.ico" type="image/x-icon" /><!-- Force favicon -->
<link rel="stylesheet" href="/w3.css"><!--include W3.css-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!--call stylesheet-->
<link rel="stylesheet" href="https://mctrees.net/includes/w3.css">
<link rel="stylesheet" href="/extra_style.css">
<link rel="stylesheet" href="https://mctrees.net/includes/lato.css">
<link rel="stylesheet" href="https://mctrees.net/includes/montserrat.css">
<!---cookie script-->
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
<script src="https://mctrees.net/lib/cookie.js"></script>
<script>
window.addEventListener("load", function() {
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#2196f3"
},
"button": {
"background": "transparent",
"text": "#fff",
"border": "#fff"
}
},
"content": {
"href": "https://mctrees.net/legal?s=cookies"
}
})
});
</script>
<!--google anclytics code -->
<script>
(function(i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function() {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-86189816-7', 'auto', {
'allowLinker': true
});
ga('send', 'pageview');
ga('require', 'linker');
ga('linker:autoLink', ['starter.mctrees.net']);
</script>
<!--figure out what day to redirect you to -->
<script>
var today = new Date();
var year = new Date().getFullYear();
var first = new Date(today.getFullYear(), 0, 1);
var Day = Math.round(((today - first) / 1000 / 60 / 60 / 24) + .5, 0);
var leapYear = ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0);
if ((leapYear == false) && (Day >= 60)) {
var theDay = Day + 1;
} else {
var theDay = Day
}
</script>
<script>
function wait(ms){
var d = new Date();
var d2 = null;
do { d2 = new Date(); }
while(d2-d < ms);
}
function footer(){
var sceenres = screen.height - document.getElementById("head").clientHeight;
var hight = sceenres + "px";
document.getElementById("display").style.height = hight;
}
mobile = function(difficulty){
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
switch(difficulty){
case("n"):window.location = "https://docs.google.com/gview?url="+lookupn(theDay)+"&embedded=true";break;
case("f"):window.location = "https://docs.google.com/gview?url="+lookupf(theDay)+"&embedded=true";break;
case("fp"):window.location = "https://docs.google.com/gview?url="+lookupfp(theDay)+"&embedded=true";break;
case("h"):window.location = "https://docs.google.com/gview?url="+lookuph(theDay)+"&embedded=true";break;
case("hp"):window.location = "https://docs.google.com/gview?url="+lookuphp(theDay)+"&embedded=true";break;
}
} else{
switch(difficulty){
case("n"):window.location = lookupn(theDay)+"?McTrees=true";break;
case("f"):window.location = lookupf(theDay)+"?McTrees=true";break;
case("fp"):window.location = lookupfp(theDay)+"?McTrees=true";break;
case("h"):window.location = lookuph(theDay)+"?McTrees=true";break;
case("hp"):window.location = lookuphp(theDay)+"?McTrees=true";break;
}
}
}
</script>
<script src="/lookup-tables/lookupn.js" type="text/javascript" defer></script><!--call numeracy lookup table-->
<script src="/lookup-tables/lookupf.js" type="text/javascript" defer></script><!--call foudation lookup table-->
<script src="/lookup-tables/lookupfp.js" type="text/javascript" defer></script><!--call foudation plus lookup table-->
<script src="/lookup-tables/lookuph.js" type="text/javascript" defer></script><!--call higher lookup table-->
<script src="/lookup-tables/lookuphp.js" type="text/javascript" defer></script><!--call higher plus lookup table-->
</head>
<!-- Header -->
<header class="w3-container w3-blue w3-center" id="head">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<h1 class="w3-margin">Today's <a href="https://corbettmaths.com/" target="_blank" class="nounderline">Corbettmaths</a> Starter</h1>
</header>
<body style="text-align: center;">
<div class="w3-display-container" id ="display" style="height:300px;">
<div class="w3-row">
<div class="w3-col w3-container" id="side"></div>
<div class="w3-col w3-container w3-animate-bottom" id="main">
<br>
<div class="w3-card-4" style="width:100%;">
<header class="w3-container w3-blue" style="height: 10px;"></header>
<div class="w3-container" style="padding-bottom: 40px;">
<h4>Click the buttons to be automatically redirected to today's starter</h4><br>
<button onclick="mobile('n');" style="width: 200px; height: 39px; -webkit-appearance: button; moz-apperance: button;" id="n_button" class="w3-button w3-white w3-border">Numeracy</button><br>
<button onclick="mobile('f');" style="width: 200px; height: 39px; -webkit-appearance: button; moz-apperance: button;" id="f_button" class="w3-button w3-white w3-border">Foundation</button><br>
<button onclick="mobile('fp');" style="width: 200px; height: 39px; -webkit-appearance: button; moz-apperance: button;" id="fp_button" class="w3-button w3-white w3-border">Foundation Plus</button><br>
<button onclick="mobile('h');" style="width: 200px; height: 39px; -webkit-appearance: button; moz-apperance: button;" id="h_button" class="w3-button w3-white w3-border">Higher</button><br>
<button onclick="mobile('hp');" style="width: 200px; height: 39px; -webkit-appearance: button; moz-apperance: button;" id="hp_button" class="w3-button w3-white w3-border">Higher Plus</button><br><br>
<button onclick="window.location = 'https://starter.mctrees.net/answers';" style="width: 200px; height: 39px; -webkit-appearance: button; moz-apperance: button;" class="w3-button w3-white w3-border">Answers</button><br>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="w3-container w3-animate-bottom w3-padding-32 w3-center w3-opacity ">
<div class=" w3-padding-12">
<div class="w3-xlarge">
<a href="https://www.reddit.com/r/mctreesnet/"><i class="fa fa-reddit w3-hover-opacity" ></i></a>
<a href="http://twitter.com/mctrees_hosting"><i class="fa fa-twitter w3-hover-opacity"></i></a>
<a href="http://github.com/mctrees"><i class="fa fa-github w3-hover-opacity"></i></a>
</div>
<p>Copyright <a href="https://corbettmaths.com/" target="_blank">Corbettmaths</a> and <a href="https://mctrees.net" target="_blank">McTrees</a></p>
<p><a href="/credits">Credits</a>, <a href=https://mctrees.net/legal>Legal</a></p>
</div>
</footer>
</div>
</body>
</html>