forked from LunarLogic/starability
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
32 lines (26 loc) · 1.13 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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Accessible rating example</title>
<link rel="stylesheet" type="text/css" href="starability-minified/starability-all.min.css"/>
</head>
<body>
<form>
<fieldset class="starability-basic"> <!-- Change starability-basic to different class to see animations. !-->
<legend>Basic star rating:</legend>
<input type="radio" id="rate5" name="rating" value="5" />
<label for="rate5" title="Amazing">5 stars</label>
<input type="radio" id="rate4" name="rating" value="4" />
<label for="rate4" title="Very good">4 stars</label>
<input type="radio" id="rate3" name="rating" value="3" />
<label for="rate3" title="Average">3 stars</label>
<input type="radio" id="rate2" name="rating" value="2" />
<label for="rate2" title="Not good">2 stars</label>
<input type="radio" id="rate1" name="rating" value="1" />
<label for="rate1" title="Terrible">1 star</label>
</fieldset>
</form>
</body>
</html>