-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
104 lines (93 loc) · 2.52 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Headspace</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" />
<script src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="public/webgl-utils.js"></script>
<script src="3jsMain.js" type="module">main();</script>
</head>
<body>
<div>
<canvas id="canvas"></canvas>
<div id="controls">
<h4>W: Tilt camera up</h4>
<h4>A: Tilt camera down</h4>
<h4>S: Tilt camera left</h4>
<h4>D: Tilt camera right</h4>
<h4>Q: Rotate camera clockwise</h4>
<h4>E: Rotate camera counter-clockwise</h4>
<h4>SPACE: Reset camera</h4>
<h4>ESCAPE: Freeze camera mouse movement</h4>
<h4>P: Pause the animation</h4>
<h4>CLICK: View shape emotion</h4>
</div>
<div id="input">
<div id="inputTitle">
<h1>How are you feeling today?</h1>
<p>I am feeling <i>emotion</i>, will give you the results for the emotion. </br> There are 7 emotions Anger,
Fear, Joy, Sadness, Confident, Tentative, Analytical. </br> I am feeling fear is an example. Or input your own
emotions and see what comes out!</p>
</div>
<textarea id="textArea" name="textArea"></textarea>
</div>
<div id="emotion">
<h4></h4>
</div>
</div>
</body>
</html>
<link href='https://fonts.googleapis.com/css?family=Tajawal' rel='stylesheet'>
<style lang="sass">
body {
font-family: 'Tajawal';
}
#canvas {
width: 100vw;
height: 100vh;
position: absolute;
opacity: 0.3;
}
#input {
width: 90vw;
height: 90vh;
position: absolute;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
margin: 5vh 5vw;
}
#input h1 {
font-weight: 650;
letter-spacing: 1px;
}
#input textarea {
width: 40rem;
height: 10rem;
}
#controls {
width: 100vh;
height: 100vh;
position: absolute;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-end;
padding: 2.5vw;
color: #FFFFFF;
opacity: 0;
}
#controls :last-child {
margin-bottom: 0;
}
#emotion {
position: absolute;
top: 50vh;
text-align: center;
width: 100%;
height: 100px;
color: #FFFFFF;
}
</style>