-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (67 loc) · 2.97 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
<!DOCTYPE html>
<!--
Sentiment
A tool to collect qualitative feedback
https://github.com/ashenm/sentiment
Ashen Gunaratne
-->
<html>
<head>
<meta charset="UTF-8" />
<meta name="description" content="A tool to collect qualitative feedback" />
<meta name="keywords" content="ashen, gunaratne, ashen gunaratne, lecture, feedback, sentiment" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="author" content="Ashen Gunaratne" />
<title>Sentiment</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous" />
<style type="text/css">
body {
background-color: #1b1b1b;
}
circle.face {
cursor: pointer;
}
@keyframes progress {
25% {
fill: #555;
}
50% {
fill: #888;
}
100% {
fill: #BBB;
}
}
</style>
<script type="text/javascript" src="configuration.js"></script>
<script type="text/javascript" src="sentiment.js"></script>
<script type="text/javascript">
(function () { document.addEventListener('DOMContentLoaded', function () { window.onresize = function () { document.querySelector('figure').style.height = window.innerHeight + 'px'; }; window.onresize(); }); })();
</script>
</head>
<body>
<main>
<figure class="d-flex align-items-center flex-column flex-sm-row justify-content-center m-0 p-3 px-xl-5 mx-xl-5">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" data-sentiment="negative" class="sentiment flex-grow-1">
<circle class="face" cx="50" cy="50" r="48" fill="#EA4335" />
<circle class="eye" cx="30" cy="35" r="7.5" fill="#1B1B1B" />
<circle class="eye" cx="70" cy="35" r="7.5" fill="#1B1B1B" />
<path class="mouth" d="M 25.5 72 Q 50 59 74.5 72" style="fill: none; stroke: #1B1B1B; stroke-width: 5;" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" data-sentiment="neutral" class="sentiment flex-grow-1 my-2 mx-sm-2 mx-xl-4">
<circle class="face" cx="50" cy="50" r="48" fill="#FBBC05" />
<circle class="eye" cx="30" cy="35" r="7.5" fill="#1B1B1B" />
<circle class="eye" cx="70" cy="35" r="7.5" fill="#1B1B1B" />
<path class="mouth" d="M 25.5 72 Q 50 72 74.5 72" style="fill: none; stroke: #1B1B1B; stroke-width: 5;" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" data-sentiment="positive" class="sentiment flex-grow-1">
<circle class="face" cx="50" cy="50" r="48" fill="#34A853" />
<circle class="eye" cx="30" cy="35" r="7.5" fill="#1B1B1B" />
<circle class="eye" cx="70" cy="35" r="7.5" fill="#1B1B1B" />
<path class="mouth" d="M 25.5 72 Q 50 86 74.5 72" style="fill: none; stroke: #1B1B1B; stroke-width: 5;" />
</svg>
</figure>
</main>
</body>
</html>