-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
116 lines (114 loc) · 3.91 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Radar Chart Designer</title>
<link href="style.css" rel="stylesheet">
<link rel="shortcut icon" href="favicon.ico" />
<script src="https://unpkg.com/fflate"></script>
</head>
<body>
<nav id="titlebar">
<a class="logo" title="New Diagram (Blank slate)" accesskey="n"></a>
<a class="active" title="File Options" accesskey="1">file</a>
<a title="Diagram Details" accesskey="2">diagram</a>
<a title="Diagram Theme" accesskey="3">theme</a>
</nav><label for="darkMode" accesskey="b"><input type="checkbox" id="darkMode" /></label>
<div class="flex">
<aside v="file">
<div label="Diagram Title" class="diagram">
<div class="flex">
<input type="text" id="title" placeholder="title"/>
</div>
</div>
<div label="Diagram Boundries" class="diagram">
<div class="flex">
<label for="minValue" title="Minimum bound shown on diagram">Min:</label>
<input type="number" id="minValue" value="0" min="0"/>
</div>
<div class="flex">
<label for="maxValue" title="Maximum bound shown on diagram">Max:</label>
<input type="number" id="maxValue" value="10" min="10"/>
</div>
</div>
<div label="Diagram Data" class="diagram">
<a class="add" accesskey="a" title="Add label to chart">+</a>
<input type="hidden" id="values" />
<div class="table" id="data">
</div>
</div>
<div label="Diagram Colours" class="theme">
<div class="flex">
<label for="fillColor">Fill Colour:</label>
<input type="color" id="fillColor" value="#1c8235" />
</div>
<div class="flex">
<label for="strokeColor">Stroke Colour:</label>
<input type="color" id="strokeColor" value="#000000" />
</div>
<div class="flex">
<label for="ringColor">Rings Colour:</label>
<input type="color" id="ringColor" value="#000000" />
</div>
<div class="flex">
<label for="bgColor">Background Colour:</label>
<input type="color" id="bgColor" value="#ffffff" />
</div>
<div class="flex">
<label for="noBg">Transparent Background:</label>
<input type="checkbox" id="noBg" checked />
</div>
</div>
<div label="Labels" class="theme">
<div class="flex">
<label for="textColor">Text Colour:</label>
<input type="color" id="textColor" value="#ffffff" />
</div>
<div class="flex" title="svg only">
<label for="highlightColor">Highlight Colour:</label>
<input type="color" id="highlightColor" value="#ffff00" />
</div>
<div class="flex">
<label for="shadowColor">Shadow Colour:</label>
<input type="color" id="shadowColor" value="#000000" />
</div>
<div class="flex">
<label for="textShadow">Shadow Size:</label>
<input type="number" id="textShadow" value="1" />
</div>
<div class="flex">
<label for="noNumbers">Show Numbers:</label>
<input type="checkbox" id="noNumbers" checked />
</div>
</div>
<div label="File Save" class="file">
<center>
<button id="saveSpidBtn">Save Diagram</button>
<button id="openSpidBtn">Open Diagram</button><br>
<button id="openEGBtn">Open Example</button>
</div>
<div label="URL Share" class="file">
<div class="flex">
<label for="shareMode" title="Automatically saves diagram data in the URL, allowing sharing by link">Live URL:</label>
<input type="checkbox" id="shareMode" checked onchange="drawSpiderDiagram()" />
</div>
</div>
<div label="SVG Export" class="file">
<center>
<button id="saveBtn">Save SVG</button>
</div>
<div label="PNG Export Settings" class="file">
<div class="flex">
<label for="retinaScale">Retina Scale:</label>
<input type="number" id="retinaScale" value="4" max="10" min="1" />
</div>
<center>
<button id="savePNGBtn">Save PNG</button>
</div>
</aside>
<main>
<svg id="spider"></svg>
</main>
</div>
<script src="spider.js"></script>
</body>
</html>