forked from evanw/source-map-visualization
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (67 loc) · 2.34 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Source Map Visualization</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<script>
try {
document.body.dataset.theme = localStorage.getItem('theme')
} catch (e) {
document.body.dataset.theme = null
}
</script>
<div id="dragTarget"></div>
<div id="promptText">
<section>
<h1>Source Map Visualization</h1>
<p>This is a visualization of JavaScript/<wbr>CSS source map data, which is useful for debugging problems with
generated source maps. It's designed to be high-performance so it doesn't fall over with huge source maps.</p>
<p>Drag and drop some files here or <button id="uploadFiles">Upload files</button> to get started. You can either
drop a single JavaScript/<wbr>CSS file with an inline source map comment, or a JavaScript/<wbr>CSS file and a separate
source map file together.</p>
<p>Or you can <button id="loadExample">Load an example</button> to play around with the visualization.</p>
<div id="errorText"></div>
<noscript>This app requires JavaScript to work. Please enable JavaScript and reload the page.</noscript>
</section>
</div>
<div id="toolbar">
<section>
<h2>Original code</h2>
<div id="fileListParent"><select id="fileList"></select></div>
</section>
<section>
<h2>Generated code</h2>
</section>
</div>
<div id="statusBar">
<section>
<div id="originalStatus"></div>
</section>
<section>
<div id="generatedStatus"></div>
<div class="spacer"></div>
<label for="wrap">
Wrap
<input id="wrap" type="checkbox">
</label>
</section>
</div>
<div id="theme">
<svg id="theme-light" width="25" height="25" xmlns="http://www.w3.org/2000/svg">
<path d="M13.5 4v3m9.5 6.5h-3M13.5 23v-3M7 13.5H4M9 9L7 7m13 0l-2 2m2 11l-2-2M7 20l2-2"></path>
<circle cx="13.5" cy="13.5" r="4.5" stroke-width="0"></circle>
</svg>
<svg id="theme-dark" width="25" height="25" xmlns="http://www.w3.org/2000/svg">
<path d="M10.1 6.6a8.08 8.08 0 00.24 11.06 8.08 8.08 0 0011.06.24c-6.46.9-12.2-4.84-11.3-11.3z" stroke-width="0">
</path>
</svg>
</div>
<div id="progressBar">
<div class="progress"></div>
</div>
<script src="code.js"></script>
</body>
</html>