forked from almendro/10-seconds-math
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·222 lines (185 loc) · 11 KB
/
index.php
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<?php
$ua = strtolower($_SERVER['HTTP_USER_AGENT']);
if (stripos($ua,'android') !== false) { // && stripos($ua,'mobile') !== false) {
header('Location: https://play.google.com/store/apps/details?id=com.troubi.kingofmath');
exit();
}
?><!DOCTYPE html>
<html class="no-js" prefix="og: http://ogp.me/ns#">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Practice mental arithmetic — the arithmetic game</title>
<meta name="keywords" content="Kopfrechnen, Mathematik, Mathe, üben, trainieren, online, live, javascript, kostenlos, werbefrei, mental arithmetic, practice, train, math, brain, mental math, arithmetics, math games, math training, remedial math practices, arithmetic problems, mental calculation, basic math, free, mental math, arithmetics, math games, math training, remedial math practices, math, fractions, homework, pi, mathematician, fraction, algebra, geometry, number, numbers, equation, equations, math anxiety, homeschool math, math problems, math games, mental math, math puzzles, decimal, percent, mathematics, math magic, mathmagic, math homework, pre-algebra, converter, convert, prime number, ratio, probability, statistics, calculate, calculator, statistic, calculus, circle, trigonometry, tessellation, tesellation, tesselation, teselation, fractal, fractol, word problems, word problem, Pythagorean Theorem, multiply, divide, division, multiplication, quadratic, square, circle, triangle, trapezoid, polygon, solve, formula, area, perimeter, volume, unit, unit conversion, conversion, measure, measurement, change units, math resources, math history, mathematical, maths, maths problem, maths problems, converting, calculating" />
<meta name="description" content="Kopfrechnen trainieren kostenlos und werbefrei. Practice mental arithmetic online. No ads and no charge." />
<meta name="author" content="Troubi Entertainment, http://www.troubi.com">
<meta property="og:image" content="http://www.mental-math-trainer.com/img/mental-math-trainer.png" />
<meta property="og:title" content="Practice mental arithmetic online. No ads and no charge." />
<meta property="og:description" content="Practice mental arithmetic online. No ads and no charge. http://mental-math-trainer.com" />
<meta property="og:url" content="http://www.mental-math-trainer.com" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="img/mental-math-trainer-favicon.ico?v=2">
<link rel="canonical" href="http://www.mental-math-trainer.com" /> <!-- self for twitter -->
<link rel="canonical" href="https://play.google.com/store/apps/details?id=com.troubi.kingofmath" />
<link rel="canonical" href="https://play.google.com/store/apps/details?id=com.troubi.mathtricks" />
<link rel="canonical" href="https://www.troubi.com" />
<link rel="canonical" href="https://www.michael-jakob.com" />
<link rel="canonical" href="https://www.metahill.com" />
<!-- Latest compiled and minified Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<!-- The noUiSlider stylesheet -->
<link rel="stylesheet" href="css/jquery.nouislider.css">
<link rel="stylesheet" href="css/jquery-ui.min.css">
<link rel="stylesheet" href="css/flashbox.css">
<link rel="stylesheet" href="css/main.css?v=1">
<link rel="stylesheet" href="css/buttons.css">
<link rel="stylesheet" href="css/share.css">
<script src="js/modernizr-2.6.2-respond-1.1.0.min.js"></script>
</head>
<body>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<!-- <div id="fb-root"></div> -->
<div class="jumbotron">
<div id="title">
<img src="img/mental-math-trainer.png" alt="Mental Math Trainer App Icon" />
<h1 id="text-title">10 seconds of math</h1>
</div>
<div id="settings-and-stats" class="container">
<div id="settings" class="white-box">
<h2 id="text-selectrange">Number limit</h2>
<div id="math-range-slider"></div>
<p id="text-operations"> </p>
<div id="div-operations">
<ul class="nobullets">
<li><label><input type="checkbox" checked="checked" value="add"> + <span id="text-op-add">Addition</span></label></li>
<li><label><input type="checkbox" value="sub"> - <span id="text-op-sub">Subtraction</span></label></li>
<li><label><input type="checkbox" value="pow"> x² <span id="text-op-pow">Powers</span></label></li>
</ul>
<ul class="nobullets">
<li><label><input type="checkbox" value="mul"> × <span id="text-op-mul">Multiplication</span></label></li>
<li><label><input type="checkbox" value="div"> ÷ <span id="text-op-div">Division</span></label></li>
<li><label><input type="checkbox" value="sqrt"> √x <span id="text-op-pow">Square roots</span></label></li>
</ul>
</div>
</div>
<div id="stats" class="white-box">
<p id="time-box">
<span id="time-left">10</span>
<span id="time-left-text">seconds left</span>
<span id="time-left-indicator"></span>
</p>
<div id="results">
<h2>Results
<img src="img/info.png" class="info"
class="btn btn-default"
data-toggle="tooltip"
data-placement="right"
data-html="true"
title="<strong>— score factors —</strong><br>correct answered<br>number limit<br>number of operators enabled" />
</h2>
<p class="description"></p>
<div id="sharebuttons">
<section>
<div class="sharebutton">
<a class="twitter-share-button" href="https://twitter.com/share" data-text="" data-via="" data-hashtags="mathwiz, math">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</div>
<div class="cover">
<div class="innie"></div>
<div class="spine"></div>
<div class="outie"></div>
</div>
<div class="shadow"></div>
</section>
<section class="sharefacebook">
<div class="sharebutton">
<img id="facebookshare" src="img/fb-share.png" />
<!-- <div id="facebookshare" data-href="http://www.mental-math-trainer.com/"></div> -->
</div>
<div class="cover">
<div class="innie"></div>
<div class="spine"></div>
<div class="outie"></div>
</div>
<div class="shadow"></div>
</section>
</div>
</div>
</div>
<p id="start-quiz"><a class="button blue">Play Again</a></p>
</div>
</div>
<div id="question-section">
<div id="emotions-left" class="flashbox"></div>
<div id="emotions-right" class="flashbox"></div>
<div id="questionbox">
<p id="question"> </p>
<div id="answerbox">
<div class="input-group">
<input id="question-answer" pattern="[0-9]{1, 4}" autofocus placeholder="your answer" type="tel" class="form-control">
<!-- <span class="input-group-btn"> -->
<!-- <button id="submit-answer" class="btn btn-default" type="button">↩</button> -->
<!-- </span> -->
</div>
</div>
</div>
</div>
<div id="social-container" class="container">
<div id="viewport"></div>
<footer>
<p>© <a href="http://troubi.com">Troubi Entertainment</a> 2014</p>
</footer>
</div>
<div id="android-apps">
<p>
<span class="title">King of Math</span>
<a target="_blank" href="https://play.google.com/store/apps/details?id=com.troubi.kingofmath">
<img alt="Android app on Google Play" src="img/en_app_rgb_wo_45.png" />
</a>
</p>
<p>
<span class="title">Math Tricks</span>
<a target="_blank" href="https://play.google.com/store/apps/details?id=com.troubi.mathtricks">
<img alt="Android app on Google Play" src="img/en_app_rgb_wo_45.png" />
</a>
</p>
</div>
<span style="display:none">
<?php
$positive = preg_replace('/\n/', '|', file_get_contents('raw/positive.txt'));
$negative = preg_replace('/\n/', '|', file_get_contents('raw/negative.txt'));
echo "<span id='jsdata-positive'>$positive</span>";
echo "<span id='jsdata-negative'>$negative</span>";
?>
</span>
<!-- fork me on github -->
<a id="github-forkme" target="_blank" href="https://github.com/michaeljakob/10-seconds-math">
<img src="img/forkme-github.png" alt="Fork me on GitHub">
</a>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/setup.js"></script>
<script src="js/setdefaults.js"></script>
<script src="js/localization.js"></script>
<script src="js/utility.js"></script>
<script src="js/flashbox.js"></script>
<script src="js/questionfactory.js"></script>
<script src="js/main.js"></script>
<!-- The noUiSlider script -->
<script src="js/jquery.nouislider.min.js"></script>
<script src="js/jquery.color.js"></script>
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-52396561-1');ga('send','pageview');
</script>
</body>
</html>