generated from drawwithcode/P5-empty-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
111 lines (106 loc) · 5.08 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
<title>Translate the process</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script src="libraries/p5.min.js"></script>
<script src="libraries/p5.sound.min.js"></script>
<script src="libraries/rita.js"></script>
<script src="libraries/p5.speech.js"></script>
<script src="sketch.js"></script>
</head>
<body>
<div id="intro" onclick="nextFrame()">
<div style="padding-top: 4%">
<h1>Translate the process</h1>
</div>
<div style="padding: 15% 0"><h3>tap to start</h3></div>
<div>
<p class="caption" style="padding-top: 2%">Learn how phrases get translated and see how much your sentence gets transformed</p>
</div>
</div>
<div id="instructions" onclick="nextFrame()">
<div style="padding-top: 30%">
<h2>INSTRUCTIONS</h2>
</div>
<div>
<p>Press the button to record your phrase. Choose a maximum of seven words.</p>
</div>
<div>
<p>Select a language for each continent and watch your sentence get translated and change shape.</p>
</div>
</div>
<div
onclick="if(!(open && frame == 6)){
nextFrame();
} "
>
<div id="legenda">
<div><h3 style="margin-top: 13%; margin-bottom: 8%">COLOR LEGEND</h3></div>
<div class="colorLines">
<div class="colors" style="border-color: rgb(227, 210, 161); margin-left: 4%; margin-right: 1.5%"><p>determinant</p></div>
<div class="colors" style="border-color: rgb(191, 184, 224); margin-right: 4%"><p>numbers</p></div>
</div>
<div class="colorLines">
<div class="colors" style="border-color: rgb(220, 151, 175); margin-left: 4%; margin-right: 1.5%"><p>adjective</p></div>
<div class="colors" style="border-color: rgb(187, 214, 177); margin-right: 4%"><p>noun</p></div>
</div>
<div class="colorLines">
<div class="colors" style="border-color: rgb(224, 174, 140); margin-left: 4%; margin-right: 1.5%"><p>pronoun</p></div>
<div class="colors" style="border-color: rgb(200, 204, 204); margin-right: 4%"><p>adverb</p></div>
</div>
<div class="colorLines">
<div class="colors" style="border-color: rgb(186, 220, 230); margin-left: 4%; margin-right: 1.5%"><p>verb</p></div>
<div class="colors" style="border-color: rgb(230, 199, 221); margin-right: 4%"><p>other</p></div>
</div>
</div>
</div>
<div id="speech"></div>
<div id="confermation">
<div id="textbox">
<h3 id="phrase"></h3>
</div>
<div>
<p>Here’s the recorded sencence. Confirm to translate it or record a new one.</p>
</div>
<div style="margin-left: auto; margin-right: auto; margin-top: 35%">
<button type="button" id="retry" onclick="oldFrame()">Retry</button>
<button type="button" id="enter" onclick="nextFrame()">Enter</button>
</div>
</div>
<div id="map"></div>
<div id="animation"></div>
<div id="translation">
<button type="button" id="info" onclick="openLegend()">Legend</button>
<div id="fistLanguage">
<div style="margin-top: 10%; margin-bottom: 0"><h3>ENGLISH</h3></div>
<div><p id="starting" style="margin-top: 5%; text-align: left"></p></div>
<div><p id="analized" style="margin-top: 7%; text-align: left; line-height: 100px; vertical-align: text-top; text-transform: lowercase"></p></div>
<div><p id="comments" style="margin-top: 5%; text-transform: lowercase">Analising your sentence</p></div>
</div>
<div id="secondLanguage">
<div>
<h3 id="language" style="margin-top: 10%; margin-bottom: 0; text-transform: uppercase">LANGUAGE</h3>
<p id="translated" style="margin-top: 5%; text-align: left;"></p>
</div>
</div>
</div>
<button type="button" id="reverseButton" onclick="nextFrame()">Continue</button>
<div id="reverse" onclick="nextFrame()">
<div style="margin-top: 7%"><h2>REVERSE</br>THE PROCESS</h2></div>
<div><h3 id="language1" style="margin-top: 17%; text-transform: uppercase">LANGUAGE</h3></div>
<div><p id="phrase1">Phrase that has been transalted</p></div>
<div style="margin-top: 17%"><h3 id="language2">ENGLISH</h3></div>
<div><p id="phrase2" style="text-transform: lowercase">Phrase that has been transalted</p></div>
</div>
<div id="recap">
<h2 style="margin-top: 25%">HOW MUCH HAS CHANGED?</h2>
<h3 style="text-align: left; margin-left: 10%; margin-bottom: 3%; margin-top: 15%">Starting phrase</h3>
<p id="startingPhrase" style="text-align: left; margin-top: 0%; text-transform: lowercase">Something as a placeholder</p>
<h3 style="text-align: left; margin-left: 10%; margin-bottom: 3%; margin-top: 10%">Landing phrase</h3>
<p id="landingPhrase" style="text-align: left; margin-top: 0%; text-transform: lowercase">Something a place holder</p>
</div>
</body>
</html>