rhea2809 commited on
Commit
8c4ba26
·
verified ·
1 Parent(s): d4a8dde

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +72 -17
index.html CHANGED
@@ -1,19 +1,74 @@
1
- <!doctype html>
2
  <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+