-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathpicker.html
55 lines (54 loc) · 1.7 KB
/
picker.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
<!DOCTYPE html>
<html>
<head>
<link href="picker.css" rel="stylesheet" type="text/css" />
<script src="jquery-1.3.2.min.js"></script>
<script src="purejstemplate_jquery.js"></script>
<script src="util.js"></script>
<script src="picker.js"></script>
</head>
<body>
<div id="results"></div>
<textarea id="tpl" style="display:none">
<table border="0" cellpadding="0" cellspacing="0" class="wide forums">
<tr>
<th class="la">Name</th>
<th class="la" width="1%">Rating</th>
<th class="la" width="1%">Posts</th>
<th class="la" width="1%">Fans</th>
<th class="la" width="1%">Installs</th>
<th class="la" width="12%">Last Updated</th>
</tr>
<#
for(var i = 0; i < data.results.length; i++) {
var row = data.results[i];
var star_width = Math.floor((row.average_reviews / 1000) * 12);
#>
<tr id="scripts-<#=row.id#>">
<td class="script-meat">
<a href="/scripts/show/<#=row.id#>" class="title" title="<#=row.name#>"><#=row.name#></a>
<p class="desc"><#=row.description#></p>
</td>
<td class="inv lp">
<span class="rating">
<span class="stars" style="width: <#=star_width#>px"></span>
<span class="number"><#=row.average_reviews / 1000#></span>
</span>
<a href="/scripts/reviews/<#=row.id#>"><#=row.reviews#> reviews</a>
</td>
<td class="inv lp"><#=row.posts#></td>
<td class="inv lp"><#=row.fans#></td>
<td class="inv lp"><#=row.installs#></td>
<td class="inv lp">
<abbr class="updated" title="<#=row.updated_iso8601#>">
<#=row.updated_formatted#>
</abbr>
</td>
</tr>
<#
}
#>
</table>
</textarea>
</body>
</html>