-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
94 lines (83 loc) · 4.37 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Differ · Mapzen</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- <link rel="stylesheet" href="https://mapzen.com/common/styleguide/styles/styleguide.css"> -->
<link rel="stylesheet" href="lib/styleguide.css">
<link rel="stylesheet" href="style.css" />
<link rel="icon" href="data:;base64,iVBORw0KGgo="> <!-- fake favicon -->
<script>
// initialize iframe onload functions
function frame1Loaded() {};
function frame2Loaded() {};
</script>
</head>
<body>
<div id="progressTop"><div id="progressbarTop"></div><button class="goButton" id="stopButtonTop" onclick="stopClick()">STOP✋</button></div>
<iframe class="mapFrame" id="map1" onload="frame1Loaded()" onerror="console.log('map1 error')"></iframe>
<iframe class="mapFrame" id="map2" onload="frame2Loaded()" onerror="console.log('map2 error')"></iframe>
<div id="content" style="margin: auto">
<!-- headers -->
<div id="header">
<h2>Tangram Differ</h2>
<div id="github">
<a href="http://github.com/tangrams/differ"><img src="lib/mark-github.svg"></a>
</div>
Compare this .json test file or .yaml scene file:<br>
<input id="slot1" class="slot" onkeypress="catchEnter(event)" list='testlist' autocomplete="on">
Using this Tangram library:<br>
<input id="library1" class="slot" value="https://unpkg.com/tangram/dist/tangram.debug.js" onkeypress="catchEnter(event)" list="libslist" autocomplete="on">
<datalist id='libslist'>
<option value='0.14'>
<option value='http://localhost:8000/dist/tangram.debug.js'>
<option value='https://tangram.city/dist/tangram.debug.js'>
<option value='https://master--tangram.netlify.com/dist/tangram.debug.js'>
</datalist>
<input type="checkbox" id="useImages1"> (look for prerendered images)<br><br>
to this this .json test file or .yaml scene file:<br>
<input id="slot2" class="slot" onkeypress="catchEnter(event)" list='testlist' autocomplete="on">
<datalist id='testlist'>
<option value='https://tangrams.github.io/differ-tests/unit-tests/unittests01.json'>
<option value='https://tangrams.github.io/differ-tests/unit-tests/geo-sampler.json'>
<option value='https://tangrams.github.io/differ-tests/unit-tests/lines/lines-tests.json'>
<option value='https://tangrams.github.io/differ-tests/unit-tests/fonts/fonts.json'>
<option value='https://www.nextzen.org/carto/bubble-wrap-style/bubble-wrap-style.zip'>
<option value='https://www.nextzen.org/carto/walkabout-style/walkabout-style.zip'>
<option value='https://www.nextzen.org/carto/tron-style/tron-style.zip'>
</datalist>
Using this Tangram library:<br>
<input id="library2" class="slot" value="https://unpkg.com/tangram/dist/tangram.debug.js" onkeypress="catchEnter(event)" list="libslist" autocomplete="on">
<input type="checkbox" id="useImages2"> (look for prerendered images)<br>
<button class="goButton" id="goButton" onclick="goClick()">GO👍</button>
<button class="goButton" id="stopButton" onclick="stopClick()">STOP✋</button>
</div>
<!-- info -->
<div style="width: 100%">
<div style="width:75%; float: left">
<div id="status"><div id="statustext"></div><div id="progress"><div id="progressbar"></div></div></div>
<div id="alert"></div>
</div>
<div class="topbuttons">
<button onclick="makeContactSheet()">Export contact sheet</button>
<button onclick="makeInfoJSON()">Export info json</button>
<button id="saveButton" onclick="saveImages()">Save new images</button>
</div>
</div>
<!-- controls -->
<div id="tests"></div>
<!-- write data to a file and save it to disk -->
<script src="lib/FileSaver.js"></script>
<!-- compare two images -->
<script src="lib/pixelmatch.js"></script>
<!-- make animated gif -->
<script src="gif.js"></script>
<!-- End of 3rd party libraries -->
<!-- differ code -->
<script src="differ.js"></script>
</div>
<!-- <script src="https://mapzen.com/common/styleguide/scripts/mapzen-styleguide.min.js"></script> -->
</body>
</html>