Update index.html
Browse files- index.html +72 -17
index.html
CHANGED
@@ -1,19 +1,74 @@
|
|
1 |
-
<!doctype html>
|
2 |
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
</html>
|
|
|
|
|
|
1 |
<html>
|
2 |
+
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<style>*{
|
6 |
+
margin: 0;
|
7 |
+
padding: 0;
|
8 |
+
}
|
9 |
+
.rate {
|
10 |
+
float: left;
|
11 |
+
height: 46px;
|
12 |
+
padding: 0 10px;
|
13 |
+
}
|
14 |
+
.rate:not(:checked) > input {
|
15 |
+
position:absolute;
|
16 |
+
top:-9999px;
|
17 |
+
}
|
18 |
+
.rate:not(:checked) > label {
|
19 |
+
float:right;
|
20 |
+
width:1em;
|
21 |
+
overflow:hidden;
|
22 |
+
white-space:nowrap;
|
23 |
+
cursor:pointer;
|
24 |
+
font-size:30px;
|
25 |
+
color:#ccc;
|
26 |
+
}
|
27 |
+
.rate:not(:checked) > label:before {
|
28 |
+
content: '★ ';
|
29 |
+
}
|
30 |
+
.rate > input:checked ~ label {
|
31 |
+
color: #ffc700;
|
32 |
+
}
|
33 |
+
.rate:not(:checked) > label:hover,
|
34 |
+
.rate:not(:checked) > label:hover ~ label {
|
35 |
+
color: #deb217;
|
36 |
+
}
|
37 |
+
.rate > input:checked + label:hover,
|
38 |
+
.rate > input:checked + label:hover ~ label,
|
39 |
+
.rate > input:checked ~ label:hover,
|
40 |
+
.rate > input:checked ~ label:hover ~ label,
|
41 |
+
.rate > label:hover ~ input:checked ~ label {
|
42 |
+
color: #c59b08;
|
43 |
+
}
|
44 |
+
|
45 |
+
/* Modified from: https://github.com/mukulkant/Star-rating-using-pure-css */</style>
|
46 |
+
</head>
|
47 |
+
|
48 |
+
<body>
|
49 |
+
<form
|
50 |
+
method="POST"
|
51 |
+
action="https://script.google.com/macros/s/AKfycbz_3RbhDT53-rXK6LMk1CoABUtvkRc5e5QVvrVmG0inKmTdR1I0G6QZ6hoONvh3eYM9/exec"
|
52 |
+
>
|
53 |
+
<div class="rate">
|
54 |
+
<input type="radio" id="star5" name="Rating" value="5" />
|
55 |
+
<label for="star5" title="text">5 stars</label>
|
56 |
+
<input type="radio" id="star4" name="Rating" value="4" />
|
57 |
+
<label for="star4" title="text">4 stars</label>
|
58 |
+
<input type="radio" id="star3" name="Rating" value="3" />
|
59 |
+
<label for="star3" title="text">3 stars</label>
|
60 |
+
<input type="radio" id="star2" name="Rating" value="2" />
|
61 |
+
<label for="star2" title="text">2 stars</label>
|
62 |
+
<input type="radio" id="star1" name="Rating" value="1" />
|
63 |
+
<label for="star1" title="text">1 star</label>
|
64 |
+
</div>
|
65 |
+
<textarea name="Name" cols="30" rows="5" placeholder="Where could we improve?..."></textarea>
|
66 |
+
<div class="btn-group">
|
67 |
+
<button type="submit" class="btn submit">Submit</button>
|
68 |
+
</div>
|
69 |
+
|
70 |
+
</form>
|
71 |
+
|
72 |
+
</body>
|
73 |
</html>
|
74 |
+
|