-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
65 lines (65 loc) · 1.66 KB
/
Copy pathindex.html
File metadata and controls
65 lines (65 loc) · 1.66 KB
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
<html>
<head></head>
<body>
<style>
.row {
display: block;
width: 100vw;
}
.triangle-wrapper{
display: block;
margin: 0 auto;
}
.svg-wrapper {
display: block;
margin: 1em;
}
svg {
display: block;
margin: 0 auto;
}
#fileDisplayArea{
max-height: 50vh;
max-width: 80vw;
overflow-x: scroll;
overflow-y: scroll;
}
.thumb {
overflow-x: scroll;
overflow-y: scroll;
}
</style>
<div class="row">
<button onclick="exportSVG()">SVG ME</button>
<a href="" id="link">SVG ME</a>
</div>
<div class="row">
<form id="imgFile" name="imgFile" enctype="multipart/form-data" method="post">
<fieldset>
<h2>Img File - Scroll to See Entire Image</h2>
<input type='file' id='img-fileinput'>
<div id="fileDisplayArea" class="thumb"></div>
</fieldset>
</form>
</div>
<div class="row">
<form id="jsonFile" name="jsonFile" enctype="multipart/form-data" method="post">
<fieldset>
<h2>Json File</h2>
<input type='file' id='fileinput'>
</fieldset>
</form>
</div>
<div class="row">
<div id="download">
</div>
</div>
<div class="row">
<div><h1>Results from Upload:</h1></div>
<div class="triangle-wrapper"></div>
</div>
<script src="./vendors/d3.js" charset="utf-8"></script>
<script src="./make-triangles.js" charset="utf-8"></script>
<script src="./script.js" charset="utf-8"></script>
</body>
</html>