-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
91 lines (79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- displays site properly based on user's device -->
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/favicon-32x32.png"
/>
<title>Frontend Mentor | Interactive rating component</title>
<!-- Stylesheet -->
<link rel="stylesheet" href="style.css" />
<!-- jQuery -->
<script
src="https://code.jquery.com/jquery-3.6.0.js"
integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk="
crossorigin="anonymous"
></script>
</head>
<body>
<!-- Rating state start -->
<main id="card">
<section id="rating-card">
<img id="star-img" src="./images/icon-star.svg" alt="" />
<h1>How did we do?</h1>
<p>
Please let us know how we did with your support request All feedback
is appreciated to help us improve our offering!
</p>
<form onsubmit="return false">
<div id="options">
<label for="one">
<input type="radio" id="one" name="rating" value="1" />
<span>1</span>
</label>
<label for="two">
<input type="radio" id="two" name="rating" value="2" />
<span>2</span>
</label>
<label for="three">
<input type="radio" id="three" name="rating" value="3" />
<span>3</span>
</label>
<label for="four">
<input type="radio" id="four" name="rating" value="4" />
<span>4</span>
</label>
<label for="five">
<input type="radio" id="five" name="rating" value="5" checked />
<span>5</span>
</label>
</div>
<button type="submit" onclick="rate()">Submit</button>
</form>
</section>
<!-- Rating state end -->
<!-- Thank you state start -->
<section id="thankyou-card">
<img
id="thankyou-img"
src="./images/illustration-thank-you.svg"
alt=""
/>
<p id="chip"></p>
<h1>Thank you!</h1>
<p>
We appreciate you taking the time to give a rating. If you ever need
more support, don’t hesitate to get in touch!
</p>
</section>
<!-- Thank you state end -->
</main>
<!-- JavaScript -->
<script src="script.js"></script>
</body>
</html>