-
Notifications
You must be signed in to change notification settings - Fork 0
/
iphone_eureka_page.html
260 lines (236 loc) · 16 KB
/
iphone_eureka_page.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
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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<!DOCTYPE html>
<html manifest="iphone_eureka_cache.appcache">
<head>
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="apple-touch-icon" href="iphone_eureka_icon.png"/>
<link rel="apple-touch-startup-image" href="iphone_eureka_startup.png" />
<link rel="stylesheet" href="iphone_eureka_styles.css" type="text/css" media="screen, mobile" title="main" charset="utf-8" />
<title>Eureka Moments</title>
</head>
<body>
<div id="appScreenArea">
<div class="appPage" id="splash">
<img src="iphone_eureka_splash.png">
</div>
<div class="appPage" id="play">
<h1>Play</h1>
<div id="graphDiv">
<svg viewBox="0 0 320 100" xmlns="http://www.w3.org/2000/svg" id="graph" width="100%">
<g>
<line id="xAxis" stroke="DarkSlateBlue" x1="25" y1="80" x2="315" y2="80"/>
<text id="xAxisLabel" text-anchor="middle" font-family="Sans-serif" font-size="18" y="97" x="160" fill="DarkSlateBlue">Time</text>
<line id="yAxis" stroke="DarkSlateBlue" x1="25" y1="80" x2="25" y2="10" />
<text id="yAxisLabel" transform="rotate(-90 8,40) " text-anchor="middle" font-family="Sans-serif" font-size="18" y="53" x="0" fill="DarkSlateBlue">Level</text>
<g id="graphPoints">
</g>
</g>
</svg>
</div>
<div id="bathroomDiv">
<svg viewBox="10 24 286 180" xmlns="http://www.w3.org/2000/svg" id="bathroom" width="100%">
<defs id="defs4">
<filter id="dropShadow" color-interpolation-filters="sRGB">
<feFlood id="feFlood8829" result="flood" flood-color="rgb(0,0,0)" flood-opacity=".5"/>
<feComposite id="feComposite8831" result="composite1" operator="in" in2="SourceGraphic" in="flood"/>
<feGaussianBlur id="feGaussianBlur8833" result="blur" stdDeviation="1.5" in="composite1"/>
<feOffset id="feOffset8835" result="offset" dy="1" dx="1"/>
<feComposite id="feComposite8837" result="composite2" in2="offset" in="SourceGraphic"/>
</filter>
</defs>
<g id="layer1" transform="translate(-16 -600)">
<rect id="wall" width="286" height="180" x="26" y="624" fill="#dfdfbf" />
<g id="man" transform="translate(0 -185)" fill="pink" filter="url(#dropShadow)">
<path id="body" d="M76 710c-3.5-22.4 28.8-29.2 34-6.3l8.446 40.69c11.777-6.458 31.94-20.112 42.622-18.413 11.668 3.535 49.132 31.072 49.132 31.072 11.494 12.4-1.488 28.282-14.625 21.74l-39-22.42-35.932 20c-8.542 4.755-31.634 7.604-34.445-8.378L76 710z"/>
<ellipse id="head" ry="20" rx="20" cy="665" cx="90"/>
</g>
<g id="sing" display="none" >
<path id="note1" fill="#df0000" d="m 154.4791,646.06271 c -9.07466,-0.30176 -16.50754,3.04547 -16.50754,3.04547 l -0.005,16.98646 c -0.92396,-0.36677 -2.04756,-0.45372 -3.18877,-0.17635 -2.46038,0.59783 -4.07156,2.66002 -3.5986,4.60682 0.47295,1.94679 2.85071,3.0406 5.31082,2.44304 2.31979,-0.5637 3.88384,-2.4295 3.65874,-4.27228 l 0,-12.69196 c 0,0 5.25611,-1.83763 12.07382,-2.2984 l 0,9.43981 c -0.91394,-0.34997 -2.01614,-0.42934 -3.13649,-0.15711 -2.46038,0.59756 -4.07156,2.65975 -3.59861,4.60682 0.47296,1.94706 2.85045,3.04032 5.31083,2.44277 2.14833,-0.52198 3.64899,-2.16079 3.68041,-3.8638 l 8.1e-4,10e-4 0,-20.11238 z" filter="url(#dropShadow)"/>
<path id="note2" fill="#00bf00" d="m 183.12345,652.13879 c -9.07466,-0.30176 -16.50754,3.04547 -16.50754,3.04547 l -0.005,16.98646 c -0.92396,-0.36677 -2.04756,-0.45372 -3.18877,-0.17635 -2.46038,0.59783 -4.07156,2.66002 -3.5986,4.60682 0.47295,1.94679 2.85071,3.0406 5.31082,2.44304 2.31979,-0.5637 3.88384,-2.4295 3.65874,-4.27228 l 0,-12.69196 c 0,0 5.25611,-1.83763 12.07382,-2.2984 l 0,9.43981 c -0.91394,-0.34997 -2.01614,-0.42934 -3.13649,-0.15711 -2.46038,0.59756 -4.07156,2.65975 -3.59861,4.60682 0.47296,1.94706 2.85045,3.04032 5.31083,2.44277 2.14833,-0.52198 3.64899,-2.16079 3.68041,-3.8638 l 8.1e-4,10e-4 0,-20.11238 z" filter="url(#dropShadow)"/>
<path id="note3" fill="#fcff00" d="m 213.93782,637.3826 c -9.07466,-0.30176 -16.50754,3.04547 -16.50754,3.04547 l -0.005,16.98646 c -0.92396,-0.36677 -2.04756,-0.45372 -3.18877,-0.17635 -2.46038,0.59783 -4.07156,2.66002 -3.5986,4.60682 0.47295,1.94679 2.85071,3.0406 5.31082,2.44304 2.31979,-0.5637 3.88384,-2.4295 3.65874,-4.27228 l 0,-12.69196 c 0,0 5.25611,-1.83763 12.07382,-2.2984 l 0,9.43981 c -0.91394,-0.34997 -2.01614,-0.42934 -3.13649,-0.15711 -2.46038,0.59756 -4.07156,2.65975 -3.59861,4.60682 0.47296,1.94706 2.85045,3.04032 5.31083,2.44277 2.14833,-0.52198 3.64899,-2.16079 3.68041,-3.8638 l 8.1e-4,0.001 0,-20.11238 z" filter="url(#dropShadow)"/>
</g>
<rect id="flow" display="none" width="10" height="104" x="240" y="678" fill="#009fff" fill-opacity=".3"/>
<rect id="drain" display="none" width="10" height="21" x="240" y="782" fill="#009fff" fill-opacity=".3"/>
<rect id="water" width="213" height="0" x="58" y="782" fill="#009fff" fill-opacity=".3"/>
<path id="overflow" display="none" fill="#009fff" fill-opacity="0.3" d="m58,686c-14,0 -18,6 -18,19l0,95l-18,0l0,6l18,0l6,0l0,-108l12,-8l0,-4zm213,0l0,4l12,7l0,109l6,0l19,0l0,-6l-19,0l0,-95c0,-13 -4,-19 -18,-19l0,0l0,0z"/>
<path id="bath" fill="none" stroke-width="8" d="m280,700c0,0 0,-5 -6,-6c-7,0 -7,6 -7,6l0,86l-11,0m-208,-86c0,0 0,-5 7,-6c7,0 7,6 7,6l0,86l171,0m-185,14c12,0 11,-14 19,-14m214,14c-12,0 -10,-14 -19,-14" stroke-linecap="round" stroke="white" filter="url(#dropShadow)"/>
<path id="tap" fill="#045fbd" d="m 286,653 -19,0 -5e-5,-12 12,0 c 3.3,-1.15 3.4,-5.9 0,-7 l -29,0 c -2.9,1 -2.9,5.23 0,7 l 10,0 0,12 c -13.8,0.15 -21,9.72 -21,25 l 12,0 c 0.2,-8.25 2.4,-12.8 9,-13 l 26,0 z" filter="url(#dropShadow)"/>
<path id="plug" transform="translate(0,0)" fill="black" d="m 237,790-2.125,-8 19,0 -2.125,8 z"/>
</g>
</svg>
</div>
<div id="controlDiv">
<svg id="controlGraphButton" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" width="100%">
<g id="controlGraph" onclick="controlGraphButtonPressed()">
<circle cx="16" cy="16" r="16" fill="DarkSlateBlue")/>
<path id="pauseGraph" display="none" fill="white" d="m11,24l3,0l0,-16l-3,0m6,16l3,0l0,-16l-3,0"/>
<path id="playGraph" display="block" fill="white" d="m12,24l12,-8l-12,-8"/>
</g>
</svg>
</div>
<div id="actionEntry">
<form id="actionButtons">
<div id="actionpad">
<input type="button" name="action" value="tap" id="tap" class="actionButton" onclick="tapButtonPressed()">
<input type="button" name="action" value="plug" id="plug" class="actionButton" onclick="plugButtonPressed()">
<input type="button" name="action" value="man" id="man" class="actionButton" onclick="manButtonPressed()">
<input type="button" name="action" value="sing" id="sing" class="actionButton" onclick="singButtonPressed()">
</div>
</form>
</div>
</div>
<div class="appPage" id="learn">
<h1>Learn</h1>
<p>This app can be used to learn about graph interpretation and sketching.</p>
<p>Play with the controls to turn on the tap, take out the plug, get in the bath and sing to see how the water level changes with these actions and how this can be recorded on a graph.</p>
<p>After exploring the app, try drawing a graph on paper for someone else to write a story to explain what it records. If they can do the same for you, swap graphs and stories to discuss together what happened.</p>
</div>
<div class="appPage" id="about">
<h1>About</h1>
<p>This program was first created by the Investigations into Teaching with a Microcomputer as an Aid project (ITMA). It was designed by Hugh Burkhardt, Richard Phillips and Malcolm Swan. It was programmed by Richard Phillips for one of the first computers used in schools, the Research Machines 380Z.</p>
<img class="illustration" src="rm380z_computer.jpg">
<p>The program and its accompanying guide was published by Longman in 1982.</p>
<p>The 2015 version was created by Richard Millwood.</p>
<p>Read more about it and some of the other software made by ITMA at the: <br /> <a href="http://www.naec.org.uk/artefacts/software/micros-in-the-mathematics-classroom">National Archive of Educational Computing</a>.</p>
</div>
<div class="appPage" id="settings">
<h1>Settings</h1>
</div>
<div class="appPage" id="flip">
<h1>Flip</h1>
<p>This is how the original progam looked in 1982:</p>
<svg id="flipEurekaBathroom" viewbox="0 0 860 780" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<g>
<title>Layer 1</title>
<g id="flipBathroom">
<rect width="860" height="780" fill="black" id="flipTv"/>
<rect y="390" x="60" height="190" width="10" id="flipYAxis" fill="grey"/>
<rect y="570" x="70" height="10" width="760" id="flipXAxis" fill="grey"/>
<text fill="white" font-family="Courier" font-size="30" y="610" x="30" id="flipYLabel">
<tspan x="30" y="420">L</tspan>
<tspan x="30" y="450">e</tspan>
<tspan x="30" y="480">v</tspan>
<tspan x="30" y="510">e</tspan>
<tspan x="30" y="540">l</tspan>
</text>
<rect y="240" x="250" height="90" width="320" id="flipWater" stroke-linecap="round" stroke-width="8" fill="#808080"/>
<g fill="white" id="flipGraphLevels">
<rect y="560" x="70" height="10" width="10" id="level1"/>
<rect id="level2" width="10" height="10" x="80" y="560"/>
<rect id="level3" width="10" height="10" x="90" y="550"/>
<rect y="540" x="100" height="10" width="10" id="level4"/>
<rect id="level5" width="10" height="10" x="110" y="530"/>
<rect y="520" x="120" height="10" width="10" id="level6"/>
<rect id="level7" width="10" height="10" x="130" y="510"/>
<rect y="500" x="140" height="10" width="10" id="level8"/>
<rect id="level9" width="10" height="10" x="150" y="500"/>
<rect id="level10" width="10" height="10" x="160" y="500"/>
<rect id="level11" width="10" height="10" x="160" y="490"/>
<rect y="480" x="160" height="10" width="10" id="level12"/>
<rect id="level13" width="10" height="10" x="160" y="470"/>
<rect y="470" x="170" height="10" width="10" id="level14"/>
<rect y="470" x="180" height="10" width="10" id="level15"/>
<rect id="level16" width="10" height="10" x="180" y="480"/>
<rect y="490" x="180" height="10" width="10" id="level17"/>
<rect id="level18" width="10" height="10" x="180" y="500"/>
<rect y="500" x="190" height="10" width="10" id="level19"/>
<rect id="level20" width="10" height="10" x="200" y="500"/>
<rect y="490" x="200" height="10" width="10" id="level21"/>
<rect y="480" x="200" height="10" width="10" id="level22"/>
<rect y="470" x="200" height="10" width="10" id="level23"/>
<rect id="level24" width="10" height="10" x="210" y="470"/>
<rect y="470" x="220" height="10" width="10" id="level25"/>
<rect id="level26" width="10" height="10" x="230" y="470"/>
<rect y="470" x="240" height="10" width="10" id="level27"/>
<rect id="level28" width="10" height="10" x="250" y="470"/>
<rect y="470" x="260" height="10" width="10" id="level29"/>
<rect id="level30" width="10" height="10" x="270" y="470"/>
<rect y="470" x="280" height="10" width="10" id="level31"/>
<rect id="level32" width="10" height="10" x="290" y="470"/>
<rect y="470" x="300" height="10" width="10" id="level33"/>
<rect id="level34" width="10" height="10" x="310" y="470"/>
<rect y="470" x="320" height="10" width="10" id="level35"/>
<rect id="level36" width="10" height="10" x="330" y="470"/>
<rect y="470" x="340" height="10" width="10" id="level37"/>
<rect y="470" x="340" height="10" width="10" id="level38"/>
<rect id="level39" width="10" height="10" x="350" y="470"/>
<rect id="level40" width="10" height="10" x="360" y="470"/>
<rect y="470" x="370" height="10" width="10" id="level41"/>
<rect id="level42" width="10" height="10" x="380" y="470"/>
<rect y="470" x="390" height="10" width="10" id="level43"/>
<rect id="level44" width="10" height="10" x="400" y="470"/>
<rect y="470" x="410" height="10" width="10" id="level45"/>
<rect y="470" x="420" height="10" width="10" id="level46"/>
<rect y="470" x="430" height="10" width="10" id="level47"/>
<rect id="level48" width="10" height="10" x="440" y="470"/>
<rect y="470" x="450" height="10" width="10" id="level49"/>
<rect id="level50" width="10" height="10" x="460" y="470"/>
<rect id="level51" width="10" height="10" x="470" y="470"/>
<rect y="470" x="480" height="10" width="10" id="level52"/>
</g>
<text id="flipXAxisLabel" y="613" x="360" fill="white" font-family="Courier" font-size="30">Minutes</text>
<text id="flipManOut" y="649" x="30" fill="white" font-family="Courier" font-size="30">>> Man out.</text>
<text id="flipManIn" y="678" x="30" fill="white" font-family="Courier" font-size="30">>> Man in.</text>
<text id="flipSing" y="708" x="30" fill="white" font-family="Courier" font-size="30">>> Sing.</text>
<text id="flipBlankline" y="733" x="30" fill="white" font-family="Courier" font-size="30">>></text>
<path id="flipBath" d="m230,180l0,180l360,0l0,-180l-10,0l0,-30l10,0l0,-10l-30,0l0,10l10,0l0,10l-20,0l0,20l10,0l0,-10l10,0l0,160l-320,0l0,-150l-20,0z" fill-rule="evenodd" fill="white"/>
<path d="m310,100l0,10l10,0l0,-10l-10,0zm-30,-10l0,80l40,0l0,-10l-20,0l0,-30l20,0l0,-20l20,0l0,-10l-10,0l0,-10l-50,0zm-10,240l0,-120l20,0l0,-30l-20,0l0,-100l60,0l0,10l20,0l0,30l-20,0l0,20l-20,0l0,10l20,0l0,30l-20,0l0,30l20,0l0,30l20,0l0,30l20,0l0,30l120,0l0,-30l20,0l0,60l-240,0z" id="man" fill-rule="evenodd" fill="white"/>
<g fill="white" font-family="Courier" id="flipSinging">
<text x="373" y="144" id="wo" font-size="40">
<tspan id="flipWo" x="373" y="144" font-family="Courier" font-size="30">wo</tspan>
</text>
<text x="450" y="140" id="flipWha1" font-size="30">
<tspan id="flipWha1" x="450" y="140" font-family="Courier">wha</tspan>
</text>
<text x="530" y="110" id="flipWha2" font-size="30">
<tspan x="530" y="110" font-family="Courier">wha</tspan>
</text>
<text x="610" y="90" id="flipWha3" font-size="30">
<tspan x="610" y="90" font-family="Courier">wha</tspan>
</text>
<text x="690" y="80" id="flipWha4" font-size="30">
<tspan x="690" y="80" font-family="Courier">wha</tspan>
</text>
<text x="630" y="170" id="flipWha5" font-size="30">
<tspan x="630" y="170" font-family="Courier">wha</tspan>
</text>
<text x="710" y="170" id="flipWha6" font-size="30">
<tspan x="710" y="170" font-family="Courier">wha</tspan>
</text>
<text x="650" y="230" id="flipWha7" font-size="30">
<tspan x="650" y="230" font-family="Courier">wha</tspan>
</text>
<text x="730" y="230" id="flipWha8" font-size="30">
<tspan x="730" y="230" font-family="Courier">wha</tspan>
</text>
</g>
<rect y="360" x="30" height="10" width="800" id="flipFloor" stroke-linecap="round" stroke-width="8" fill="#808080"/>
</g>
</g>
</svg>
</div>
<div class="appPage" id="code">
<h1>Code</h1>
<p>Eureka was first developed using BASIC (Beginners All-purpose Symbolic Instruction Code) which was a common programming language for early microcomputers.</p>
<p>This version is created using:</p>
<ul>
<li><strong>HTML</strong> - HyperText Mark-up Language - used to arrange the words and diagrams</li>
<li><strong>SVG</strong> - Scalable Vector Graphics - used to draw the Eureka bathroom and graph</li>
<li><strong>CSS</strong> - Cascading Style Sheets - used to set the style and colours and</li>
<li><strong>Javascript</strong> - used to program the bath, graph and set values and navigate between pages</li>
</ul>
<p>The code can be found on the <a href="https://github.com/rmillwood/eureka-moments">GitHub website</a>.</p>
</div>
<div id="navigation">
<button type="button" id="play" onclick="navigateToAppPage('play')">Play</button>
<button type="button" id="learn"onclick="navigateToAppPage('learn')">Learn</button>
<button type="button" id="about" onclick="navigateToAppPage('about')"">About</button>
<button type="button" id="settings" onclick="navigateToAppPage('settings')">Settings</button>
<button type="button" id="flip"onclick="navigateToAppPage('flip')">Flip</button>
<button type="button" id="code"onclick="navigateToAppPage('code')">Code</button>
</div>
<script type="text/javascript" src="iphone_eureka_code.js"></script>
</div>
</body>
</html>