forked from perenstrom/annual-cycle-illustration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
216 lines (205 loc) · 8.2 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
<!DOCTYPE html>
<html>
<head>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<meta charset=utf-8 />
<title>Årshjul-generator</title>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12">
<h1>Årscykler, generator</h1>
</div>
</div>
<div id="input">
<div class="row">
<div class="col-md-12">
<h2>Input</h2>
</div>
<div class="col-md-12">
<form class="form-horizontal" id="title-form">
<div class="form-group form-group-lg">
<input class="form-control" type="text" id="cycle-title" placeholder="Titel på årshjulet">
</div>
</form>
</div>
<div class="col-md-12">
<div role="tabpanel">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#list" aria-controls="list" role="tab" data-toggle="tab">Dato</a></li>
<li role="presentation"><a href="#json" aria-controls="json" role="tab" data-toggle="tab">JSON</a></li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="list">
<div class="level-container last-level" id="level-1">
<div class="row">
<div class="col-md-12">
<h3>Niveau 1</h3>
</div>
</div>
<form class="form-inline input-form">
<div class="row form-row last-row" id="form-row-1-1">
<div class="col-md-12">
<div class="form-group frommonth-wrap">
<select class="form-control frommonth validate">
<option value="1">Januar</option>
<option value="2">Februar</option>
<option value="3">Marts</option>
<option value="4">April</option>
<option value="5">Maj</option>
<option value="6">Juni</option>
<option value="7">Juli</option>
<option value="8">August</option>
<option value="9">September</option>
<option value="10">Oktober</option>
<option value="11">November</option>
<option value="12">December</option>
</select>
</div>
<div class="form-group fromday-wrap">
<select class="form-control fromday validate">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">2</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
</div>
<div class="form-group">
<p>-</p>
</div>
<div class="form-group tomonth-wrap">
<select class="form-control tomonth validate">
<option value="1">Januar</option>
<option value="2">Februar</option>
<option value="3">Marts</option>
<option value="4">April</option>
<option value="5">Maj</option>
<option value="6">Juni</option>
<option value="7">Juli</option>
<option value="8">August</option>
<option value="9">September</option>
<option value="10">Oktober</option>
<option value="11">November</option>
<option value="12">December</option>
</select>
</div>
<div class="form-group today-wrap">
<select class="form-control today validate">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">2</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
</div>
<div class="form-group description-wrap">
<div class="form-group">
<input type="text" class="form-control description validate" placeholder="Beskrivelse">
</div>
</div>
</div>
</div>
<div class="row top-buffer">
<div class="col-md-12">
<button type="button" class="btn btn-info btn-add-row">Tilføj ny dato</button>
</div>
</div>
</form>
<hr>
</div>
<div class="row">
<div class="col-md-12">
<button type="button" class="btn btn-info" id="btn-add-level">Læg i nyt niveau</button>
<button type="button" class="btn btn-success" id="btn-generate">Generer årshjul</button>
<button type="button" class="btn" id="btn-generate-json">Exporter JSON</button>
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="json">
<form class="form top-buffer" id="json-form">
<textarea class="form-control" id="textarea-json" rows="20"></textarea>
</form>
<button type="button" class="btn btn-success top-buffer" id="btn-generate-from-json">Generer årshjul</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="output">
<div class="row">
<div class="col-md-12">
<div id="chartcontainer" style="height: 500px; width: 100%">
</div>
</div>
</div>
</div>
<div id="output-json">
</div>
</div>
</div>
</body>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<script src="script.js"></script>
</html>