-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathindex.html
executable file
·222 lines (204 loc) · 14.3 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<!--
RadialChartImageGenerator
Copyright 2015 Hitesh Maidasani
Licensed under MIT (https://github.com/hmaidasani/RadialChartImageGenerator/blob/master/LICENSE)
-->
<!DOCTYPE html>
<html>
<head>
<title>Radial/Ring/Circle Progress Chart Generator for Apple Watch.</title>
<meta name="description" content="Radial/Ring/Circle Progress Chart Generator for Apple Watch. A simple tool that helps build the assets for WatchKit apps similar to the Apple Watch Health and Activity app.">
<meta name="keywords" content="apple watch, watchkit, radial, ring, circle, progress, health and activity, dev tools, assets">
<meta name="robots" content="index,follow">
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap/bootstrap-switch.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/please-wait/please-wait.css">
<link rel="stylesheet" href="css/intro/intro.min.css">
<link href="http://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" type="text/css">
<script src="js/jquery/jquery.min.js"></script>
<!--[if IE]><script type="text/javascript" src="excanvas.js"></script><![endif]-->
<script src="js/knob/jquery.knob.js"></script>
<script src="js/options.js"></script>
<script src="js/main.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-60593416-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-main">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">Radial Bar Chart Generator for Apple Watch</a>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse-main">
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/hmaidasani/RadialChartImageGenerator#examples" target="_blank">Examples</a></li>
<li><a href="https://github.com/hmaidasani/RadialChartImageGenerator" target="_blank">Documentation</a></li>
<li>
<button type="button" id="how-to-btn" class="btn btn-primary navbar-btn">How to use?</button>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="row charts-row">
<div class="col-md-4">
<h3>Single Arc</h3>
<div id="single-arc" class="chart-box">
<div class="canvas-box" style="position:absolute;left:0px;top:0px">
<input id="single-single-arc" class="knob with-subtext" data-min="0" data-max="100" value="75" data-bgColor="#340914" data-fgColor="#FF1509" data-fgColorMid="#f8009e" data-fgColorEnd="#f707e3" data-displayInput=true data-width="300" data-height="300" data-thickness=".2" data-bgthickness=".2" data-angleOffset=0 data-linecap=round data-readOnly=true data-inputColor="#ffffff" data-shadow=true data-shadowColor="#555555">
<div class="subtext">of <span class="subtext-max">100</span> <span class="subtext-units">cals</span></div>
</div>
</div>
<button class="btn btn-primary generate-btn" chart-box="#single-arc" onclick="showFilenamePrompt(this)">Generate Images</button>
<div class="chart-options"></div>
<button class="btn btn-primary generate-btn" chart-box="#single-arc" onclick="showFilenamePrompt(this)">Generate Images</button>
</div>
<div class="col-md-4">
<h3>Double Arc</h3>
<div id="double-arc" class="chart-box">
<div class="canvas-box" style="position:absolute;left:0px;top:0px">
<input id="double-outer-arc" class="knob" data-min="0" data-max="100" value="75" data-bgColor="#2c4204" data-fgColor="#9cff00" data-fgColorMid="#aaff00" data-fgColorEnd="#d8fe00" data-displayInput=false data-width="300" data-height="300" data-thickness=".2" data-bgthickness=".2" data-angleOffset=0 data-linecap=round data-readOnly=true data-inputColor="#ffffff" data-shadow=true data-shadowColor="#555555">
</div>
<div class="canvas-box" style="position:absolute;left:32px;top:32px">
<input id="double-inner-arc" class="knob" data-min="0" data-max="100" value="50" data-bgColor="#564d00" data-fgColor="#e8c629" data-fgColorMid="#ffd200" data-fgColorEnd="#fff32b" data-displayInput=false data-width="236" data-height="236" data-thickness=".25" data-bgthickness=".25" data-angleOffset=0 data-linecap=round data-readOnly=true data-inputColor="#ffffff" data-shadow=true data-shadowColor="#555555">
</div>
</div>
<button class="btn btn-primary generate-btn" chart-box="#double-arc" onclick="showFilenamePrompt(this)">Generate Images</button>
<div class="chart-options"></div>
<button class="btn btn-primary generate-btn" chart-box="#double-arc" onclick="showFilenamePrompt(this)">Generate Images</button>
</div>
<div class="col-md-4">
<h3>Triple Arc</h3>
<div id="triple-arc" class="chart-box">
<div class="canvas-box" style="position:absolute;left:0px;top:0px">
<input id="triple-outer-arc" class="knob" data-min="0" data-max="100" value="100" data-bgcolor="#340914" data-fgcolor="#ff1509" data-fgcolormid="#ff1c5c" data-fgcolorend="#ff258f" data-displayInput=false data-width="300" data-height="300" data-thickness=".2" data-bgthickness=".2" data-angleOffset=0 data-linecap=round data-readOnly=true data-inputColor="#fffff" data-shadow=true data-shadowColor="#555555">
</div>
<div class="canvas-box" style="position:absolute;left:32px;top:32px">
<input id="triple-middle-arc" class="knob" data-min="0" data-max="100" value="100" data-bgcolor="#2c4204" data-fgcolor="#9cff00" data-fgcolormid="#aaff00" data-fgcolorend="#d8fe00" data-displayInput=false data-width="236" data-height="236" data-thickness=".25" data-bgthickness=".25" data-angleOffset=0 data-linecap=round data-readOnly=true data-inputColor="#ffffff" data-shadow=true data-shadowColor="#555555">
</div>
<div class="canvas-box" style="position:absolute;left:63px;top:63px">
<input id="triple-inner-arc" class="knob" data-min="0" data-max="100" value="100" data-bgcolor="#112a2e" data-fgcolor="#5bfeeb" data-fgcolormid="#65e9ed" data-fgcolorend="#6ae9f8" data-displayInput=false data-width="174" data-height="174" data-thickness=".35" data-bgthickness=".35" data-angleOffset=0 data-linecap=round data-readOnly=true data-inputColor="#ffffff" data-shadow=true data-shadowColor="#555555">
</div>
</div>
<button class="btn btn-primary generate-btn" chart-box="#triple-arc" onclick="showFilenamePrompt(this)">Generate Images</button>
<div class="chart-options"></div>
<button class="btn btn-primary generate-btn" chart-box="#triple-arc" onclick="showFilenamePrompt(this)">Generate Images</button>
</div>
</div>
</div>
<footer>
<div class="container">
<div class="row">
<div class="col-md-4">
<a href="https://github.com/hmaidasani/RadialChartImageGenerator/issues" target="_blank">Questions or issues?</a>
</div>
<div class="col-md-4">
<span>Copyright</span> <span id="copyrightYear"></span>
<a href="https://github.com/hmaidasani" target="_blank">Hitesh Maidasani</a>
</div>
</div>
</div>
</footer>
<!-- Modal -->
<div class="modal fade" id="filenamePrompt" tabindex="-1" role="dialog" aria-labelledby="filenamePrompt" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Choose Image Options</h4>
</div>
<div class="modal-body">
<form>
<div id="merge-group" class="form-group">
<label for="merge-checkbox" class="control-label">Merge Images:</label>
<input type="checkbox" name="merge-checkbox" id="merge-checkbox">
<span id="question-merge">?</span>
</div>
<div id="filename-group" class="form-group">
<label for="file-prefix" class="control-label">Filename Prefix:</label>
<div class="input-group">
<input type="text" class="form-control file-prefix" id="file-prefix" value="prefix">
<span class="input-group-addon">3.png</span>
</div>
</div>
<div id="filename-group-outer" class="form-group">
<label for="file-prefix" class="control-label">Outer Arc Filename Prefix:</label>
<div class="input-group">
<input type="text" class="form-control file-prefix" id="outer-file-prefix" value="outer">
<span class="input-group-addon">3.png</span>
</div>
</div>
<div id="filename-group-middle" class="form-group">
<label for="file-prefix" class="control-label">Middle Arc Filename Prefix:</label>
<div class="input-group">
<input type="text" class="form-control file-prefix" id="middle-file-prefix" value="middle">
<span class="input-group-addon">5.png</span>
</div>
</div>
<div id="filename-group-inner" class="form-group">
<label for="file-prefix" class="control-label">Inner Arc Filename Prefix:</label>
<div class="input-group">
<input type="text" class="form-control file-prefix" id="inner-file-prefix" value="inner">
<span class="input-group-addon">2.png</span>
</div>
</div>
<div id="filename-group" class="form-group">
<label for="file-suffix" class="control-label">Filename Suffix:</label>
<div class="input-group">
<span class="input-group-addon">prefix3</span>
<input type="text" class="form-control file-suffix" id="file-suffix" value="suffix">
<span class="input-group-addon">.png</span>
</div>
</div>
</form>
<h5>
An example using the above file prefix:
</h5>
<span id="file-prefix-output">prefix</span><span id="single-file-output">3</span><span id="double-file-output" class="hidden">-5</span><span id="triple-file-output" class="hidden">-2</span><span id="file-suffix-output">suffix</span>.png
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" id="filenamePrompt-submit" chart-box="#" onclick="generateImages(this)">Continue</button>
</div>
</div>
</div>
</div>
<div id="browser-alert" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span>×</span></button>
<h4 class="modal-title">Browser Alert</h4>
</div>
<div class="modal-body">
<p>The recommended browsers for this tool are Chrome or Firefox. Safari has known issues.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script src="js/bootstrap/bootstrap.min.js"></script>
<script src="js/bootstrap/bootstrap-switch.min.js"></script>
<script type="text/javascript" src="js/jscolor/jscolor.js"></script>
<script type="text/javascript" src="js/jszip/jszip.min.js"></script>
<script type="text/javascript" src="js/filesaver/FileSaver.min.js"></script>
<script type="text/javascript" src="js/please-wait/please-wait.min.js"></script>
<script type="text/javascript" src="js/intro/intro.min.js"></script>
</body>
</html>