-
Notifications
You must be signed in to change notification settings - Fork 2
/
ovingsspeilet.html
213 lines (195 loc) · 9.74 KB
/
ovingsspeilet.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta http-equiv="Content-Security-Policy" content="default-src 'none' ; script-src 'self' 'unsafe-eval' https://cdnjs.cloudflare.com https://www.googleapis.com/calendar/; style-src 'unsafe-inline' https://cdnjs.cloudflare.com https://fonts.googleapis.com; img-src 'self' ; font-src https://fonts.gstatic.com; connect-src 'self' https://sheets.googleapis.com; form-action 'none' ; block-all-mixed-content; referrer origin-when-cross-origin;">
<title>Øvingsspeilet</title>
<style>
#wrapper {
position: fixed;
top: 1em;
bottom: 1em;
left: 1em;
right: 1em;
}
#view-details {
margin-top: 1em;
white-space: pre-wrap;
}
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.3/css/bootstrap.min.css" integrity="sha384-MIwDKRSSImVFAZCVLtU0LMDdON6KVCrZHyVQQj6e8wIEJkW4tvwqXrbMIya1vriY" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.0.1/fullcalendar.min.css" integrity="sha384-Pegky0oL/wrpHonFHwJecArcMBh6yo9lmWv4Rm5bXg1CjI+QoXL26DxgG5b3wNWP" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.0.1/fullcalendar.print.css" integrity="sha384-lMH1b2J9Nk97dp3v7cP6uhNuWpTSGfd9PBZKwCCBnLRZsXY3MCKQS7HiA0jiYTdB" crossorigin="anonymous" media="print">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-datetimepicker/2.7.1/css/bootstrap-material-datetimepicker.min.css" integrity="sha384-GCjsFSSoXEj8JDMUHyBSrfELlO1AOhSPrA0Ua5Yrg12GixvA7TRr6cLs3hUuZaV3" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<div id="wrapper">
<div id="calendar"></div>
</div>
<form id="form-modal" class="modal fade">
<input type="hidden" name="id" id="form-id">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Lukk">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="form-modaltitle"></h4>
</div>
<div class="modal-body">
<div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label for="form-start" class="form-control-label">Fra:</label>
<input type="datetime" class="form-control" id="form-start" name="start" required>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label for="form-end" class="form-control-label">Til:</label>
<input type="datetime" class="form-control" id="form-end" name="end" required>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label for="form-contact_name" class="form-control-label">Kontakt person:</label>
<input type="datetime" class="form-control" id="form-contact_name" name="contact_name" required>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label for="form-contact_phone" class="form-control-label">Telefonnummer:</label>
<input type="datetime" class="form-control" id="form-contact_phone" name="contact_phone" required>
</div>
</div>
</div>
<div class="form-group">
<label for="form-title" class="form-control-label">Tittel:</label>
<input type="text" class="form-control" id="form-title" name="title" required>
</div>
<div class="form-group">
<label for="form-details" class="form-control-label">Detaljer:</label>
<textarea class="form-control" id="form-details" rows="4" name="details"></textarea>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Lukk</button>
<button type="submit" class="btn btn-primary" id="form-submitbtn"></button>
</div>
</div>
</div>
</form>
<div id="view-modal" class="modal fade">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Lukk">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="view-title"></h4>
</div>
<div class="modal-body">
<div class="container-fluid">
<div class="row">
<div class="col-sm-6">
<span id="view-when"></span>
</div>
<div class="col-sm-6">
<span id="view-contact_name"></span>
(tlf. <span id="view-contact_phone"></span>)
</div>
</div>
<div class="row">
<div class="col-sm-12" id="view-details"></div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Lukk</button>
<button type="button" class="btn btn-primary" id="view-editbtn">Rediger</button>
<button type="button" class="btn btn-danger" id="view-deletebtn">Slett</button>
</div>
</div>
</div>
</div>
<div id="tv1000-modal" class="modal fade">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Lukk">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="tv1000-header"></h4>
</div>
<div class="modal-body">
<div class="container-fluid">
<div class="row only-barvakt">
<div class="col-sm-8">
Styrevakt:
<span id="tv1000-styrevakt"></span>
(<span id="tv1000-styrevakt-tlf"></span>)
</div>
<div class="col-sm-4">
Oppmøte: 22:00
</div>
</div>
<div class="row">
<div class="col-sm-12">
<span id="tv1000-note"></span>
</div>
</div>
<div class="row only-vaskevakt">
<div class="col-sm-12">
<p>
<em>Det skal være vasket innen 12:00 hvis ikke annet er oppgitt.</em>
</p>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<span id="tv1000-note"></span>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<span id="tv1000-name1"></span>
(<span id="tv1000-phone1"></span>)
</div>
<div class="col-sm-6">
<span id="tv1000-name2"></span>
(<span id="tv1000-phone2"></span>)
</div>
</div>
<div class="row">
<div class="col-sm-12">
<span id="tv1000-note"></span>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Lukk</button>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.3/js/bootstrap.min.js" integrity="sha384-ux8v3A6CPtOTqOzMKiuo3d/DomGaaClxFYdCu2HPMBEkf6x2xiDyJ7gkXU0MWwaD" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.14.1/moment.min.js" integrity="sha384-ohw6o2vy/chIavW0iVsUoWaIPmAnF9VKjEMSusADB79PrE3CdeJhvR84BjcynjVl" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.43/moment-timezone-with-data-10-year-range.js" integrity="sha512-QSV7x6aYfVs/XXIrUoerB2a7Ea9M8CaX4rY5pK/jVV0CGhYiGSHaDCKx/EPRQ70hYHiaq/NaQp8GtK+05uoSOw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.14.1/locale/nb.js" integrity="sha384-RQ/aA4yirRpz66hJEQEmHZ6uLtwGsIdtmMEYztlU5mE2Od5yMxxIbxWVQJc9Mx/I" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.0.1/fullcalendar.min.js" integrity="sha384-Ealzkwl4taDg29rtgxhTr9ULPv6mLfoliS565wY4/i2eNjSorppZahMaHoxOLtz+" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.0.1/gcal.js" integrity="sha384-7FVMBBQ7yONIm1TkLqnYrtwYEMuQti9+0hS2pvw8xVJoG77oY0/CXl9f8buD2A7V" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.0.1/locale/nb.js" integrity="sha384-RXwM/AyUNYG8KsxtWRiN9rN4Qr7TQNf/R3AjIFXyvEO9cevzzmM0r7xkS50tYVTW" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-datetimepicker/2.7.1/js/bootstrap-material-datetimepicker.min.js" integrity="sha384-vh75HzRzrjHDGfLLh6kvE6K7AUwK0LmKf5/o0r5UyH6YB/SWOwdaVdKBZoienMmC" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twix.js/1.1.1/twix.min.js" integrity="sha384-8cmEmMLEqw/McTrpOo+5D/lmvhEV6Q2fv7u0yaYvaQcT+FaUUd5QVpFWlnx1nwKz" crossorigin="anonymous"></script>
<script src="ovingsspeilet.js"></script>
</body>
</html>