-
Notifications
You must be signed in to change notification settings - Fork 2
/
ida.html
53 lines (46 loc) · 1.76 KB
/
ida.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Thumb tester</title>
<link href="css/bootstrap.css" rel="stylesheet" />
<link href="css/typeahead.css" rel="stylesheet" />
<link href="css/style.css" rel="stylesheet" />
</head>
<body>
<div class="container body-content" id="mainContainer">
<div class="row first">
<div class="col-md-10">
<div class="input-group">
<select id="idaManifests">
</select>
</div>
</div>
<div class="col-md-2" id="thumbSizeSelector"></div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous"></script>
<script src="script/bootstrap.min.js"></script>
<script src="script/typeahead.jquery.js"></script>
<script src="wc.org/2/script/thumbs.js"></script>
<script>
assumeFullMax = true;
$(function() {
$.getJSON(window.location.pathname.replace('ida.html', 'ida-manifests.json'), function (collection) {
if(collection['@type'] == "sc:Collection"){
$("#idaManifests").empty();
$.each(collection.manifests, function (i, manifest) {
$("#idaManifests").append('<option value="' + manifest['@id'] + '">' + manifest.label + '</option>');
});
}
});
$('#idaManifests').change(function(){
var mfuri = $(this).val();
window.location.href = window.location.pathname + "?manifest=" + mfuri;
});
});
</script>
</body>
</html>