This repository has been archived by the owner on Jan 31, 2019. It is now read-only.
forked from LunarLogic/starability
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (35 loc) · 1.43 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
<!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>
<h1>Starability.css example</h1>
<h2>Rating example</h2>
<form>
<!-- Change starability-basic to different class to see animations. -->
<fieldset class="starability-basic">
<legend>Basic star rating:</legend>
<input type="radio" id="rate5" name="rating" value="5" />
<label for="rate5">5 stars, amazing.</label>
<input type="radio" id="rate4" name="rating" value="4" />
<label for="rate4">4 stars, very good.</label>
<input type="radio" id="rate3" name="rating" value="3" />
<label for="rate3">3 stars, average.</label>
<input type="radio" id="rate2" name="rating" value="2" />
<label for="rate2">2 stars, not good.</label>
<input type="radio" id="rate1" name="rating" value="1" />
<label for="rate1">1 star, terrible.</label>
</fieldset>
</form>
<h2>Static result example</h2>
<!-- The result is based on the 'data-rating' value. Change the value to see the different static rating. -->
<p id="result1">Movie name</p>
<div class="starability-result" data-rating="3" aria-describedby="result1">
3 stars
</div>
</body>
</html>