-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
60 lines (44 loc) · 1.54 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>format_symbolset_stars.js Demo</title>
<script src="http://modernizr.com/downloads/modernizr.js"></script>
<style> .unfilled { color: gray; } </style>
</head>
<body>
<h2>Using class "ss-star_fade"</h2>
<p class="ss-star_fade">5 stars</p>
<p class="ss-star_fade">4 stars</p>
<p class="ss-star_fade">3 stars</p>
<p class="ss-star_fade">2 stars</p>
<p class="ss-star_fade">1 stars</p>
<p class="ss-star_fade">0 stars</p>
<h2>Using class "ss-star_half"</h2>
<p class="ss-star_half">5 stars</p>
<p class="ss-star_half">4.5 stars</p>
<p class="ss-star_half">4 stars</p>
<p class="ss-star_half">3.5 stars</p>
<p class="ss-star_half">3 stars</p>
<p class="ss-star_half">2.5 stars</p>
<p class="ss-star_half">2 stars</p>
<p class="ss-star_half">1.5 stars</p>
<p class="ss-star_half">1 stars</p>
<p class="ss-star_half">0.5 stars</p>
<p class="ss-star_half">0 stars</p>
<h2>Using schema.org microdata</h2>
<div itemscope itemtype="http://schema.org/Product">
<h4 itemprop="name">Sample Product</h4>
<span itemprop="review" itemscope itemtype="http://schema.org/Review">
<span itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
<strong>Rating:</strong>
<meta itemprop="worstRating" content="1"/>
<span itemprop="ratingValue" class="ss-star_fade">4 stars</span>
<meta itemprop="bestRating" content="5"/>
</span>
</span>
</div>
<script src="format_symbolset_stars.js"></script>
<script> window.onload = format_symbolset_stars; </script>
</body>
</html>