-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
225 lines (221 loc) · 10.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
223
224
225
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VATSIM Germany - Bannergenerator</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<!--<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans">-->
</head>
<body>
<div class="bg-dark">
<div class="container pt-5 pb-5">
<a href="">
<img class="w-50" src="assets/img/vacc_logo_white.png">
</a>
</div>
</div>
<div class="container mt-4">
<h1 class="text">CPT Bannergenerator</h1>
<p class="text">
1. Wähle durch Klick ein Hintergrundbild<br>
2. Wähle eine Vorlage aus<br>
3. Passe die Textbausteine auf dem Bild an<br>
4. Lasse dir eine Vorschau generieren, kopiere den Link oder erstelle eine andere Kombination<br>
5. (Optional: Lasse dir einen kompletten Forumspost erstellen)
</p>
</div>
<div class="container mt-5">
<h2>Wähle ein Hintergrundbild</h2>
<h6 class="text-success" id="in"></h6>
<form class="form-inline" id="img_form" action="javascript:void(0);">
<div class="form-row align-items-center">
<div class="col-auto my-1">
<label class="mr-sm-2" for="img_rg">Regionalgruppe</label>
<select class="custom-select mr-sm-2" name="rg">
<option value="%" selected>Alle</option>
<option value="EDFF">RG EDFF</option>
<option value="EDLL">RG EDLL</option>
<option value="EDLL">RG EDBB</option>
<option value="EDLL">RG EDWW</option>
<option value="EDLL">RG EDMM</option>
<option value="PREVENTS">PR & Events</option>
</select>
</div>
</div>
<div class="form-row align-items-center">
<div class="col-auto my-1">
<label class="mr-sm-2" for="img_sta">Station</label>
<select class="custom-select mr-sm-2" name="station">
<option value="%" selected>Alle</option>
<option value="TWR">TWR</option>
<option value="APP">APP</option>
<option value="CTR">CTR</option>
</select>
</div>
</div>
<div class="form-row align-items-center">
<div class="col-auto my-1">
<label class="mr-sm-2" for="img_icao">Airport ICAO</label>
<input type="text" class="form-control text-center mr-sm-2" name="airport" maxlength="4">
</div>
</div>
<div class="form-row align-items-center">
<div class="col-auto my-1">
<label class="mr-sm-2" for="img_button">
<br>
</label>
<button class="form-control" id="background_img_button">Bilder schnappen</button>
</div>
</div>
</form>
</div>
<br>
<div class="container overflow-auto" style="max-height: 40vh;">
<div class="row mt-2" id="background_image_display">
<div class="col-auto align-items-center align-middle">
<span class="badge badge-dark">Waiting</span>
</div>
</div>
</div>
<br>
<div class="container mt-5">
<h2>Wähle eine Vorlage</h2>
</div>
<div class="container overflow-auto" style="max-height: 20vh;">
<div class="row mt-2" id="template_image_display">
<div class="col-auto">
<span class="badge badge-dark">Wähle erst ein Hintergrundbild</span>
</div>
</div>
</div>
<div class="container mt-5">
<h2>Bannertext</h2>
<form id="input" action="">
<div class="row">
<div class="col-2">
<label for="sc">Stationscallsign</label>
</div>
<div class="col-auto">
<input class="form-control" type="text" name="sc" maxlength="10" pattern="\w\w\w\w(_\w)?_(TWR)|(APP)|(CTR)" required placeholder="EDXX_X_TWR">
</div>
</div>
<div class="row">
<div class="col-2">
<label for="sn">Stationsname</label>
</div>
<div class="col-auto">
<input class="form-control" type="text" name="sn" maxlength="20" required placeholder="XXX Tower">
</div>
</div>
<div class="row">
<div class="col-2">
<label for="tn">Traineename</label>
</div>
<div class="col-auto">
<input class="form-control" type="text" name="tn" maxlength="25" required placeholder="Max Mustertrainee">
</div>
</div>
<div class="row">
<div class="col-2">
<label for="dt">Datum</label>
</div>
<div class="col-auto">
<input class="form-control" type="text" name="dt" maxlength="10" pattern="\d\d.\d\d.\d\d\d\d" required value="00.00.0000">
</div>
</div>
<div class="row">
<div class="col-2">
<label for="ts">Startzeit</label>
</div>
<div class="col-auto">
<input class="form-control" type="text" name="ts" maxlength="4" pattern="\d\d\d\d" required placeholder="1800">
</div>
</div>
<div class="row">
<div class="col-2">
<label for="te">Endzeit</label>
</div>
<div class="col-auto">
<input class="form-control" type="text" name="te" maxlength="4" pattern="\d\d\d\d" required placeholder="1900">
</div>
</div>
<div class="row">
<div class="col-2">
<label for="bg">background_image_id</label>
</div>
<div class="col-auto">
<input class="form-control" type="text" readonly id="form_bg" name="bg" value="---">
</div>
</div>
<div class="row">
<div class="col-2">
<label for="tp">template_id</label>
</div>
<div class="col-auto">
<input class="form-control" type="text" readonly id="form_tp" name="tp" value="---">
</div>
</div>
</form>
</div>
<div class="container mt-5">
<div class="row mt-2">
<div class="col-3">
<button id="button_show_image" type="button" class="btn btn-secondary">
Banner anzeigen
</button>
</div>
<div class="col-auto" id="warnings_show_image">
</div>
</div>
<div class="row mt-2">
<div class="col-3">
<button id="button_gen_forum" type="button" class="btn btn-secondary">
Forumstext generieren
</button>
</div>
<div class="col-auto" id="warnings_gen_forum">
</div>
</div>
<div class="modal" id="image_result">
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Banner erstellt</h4>
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<div class="modal-body">
<div class="">
<img id="preview_img" class="img-fluid mx-auto d-block" src="">
</div>
<div class="mt-2">
<label for="outputlink">Link:</label>
<input id="outputlink" class="form-control" readonly>
</div>
</div>
<div class="modal-footer">
<button onclick="copyToClipboard('outputlink');" class="btn btn-primary" type="button">In
Zwischenablage kopieren</button>
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<footer class="wrapper flex-grow-1">
<div class="col bg-dark">
<div class="container mt-5 pt-5 pb-3">
<p class="text-sm-center text-white">Service provided by VATSIM-Germany</p>
<p class="text-sm-center text-white">Mail:
<a class="text-white" href="mailto:[email protected]"> events (at) vatsim-germany.org</a>
</p>
<p class="text-sm-center text-white">Developed by Paul Hollmann</p>
</div>
</div>
</footer>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.validate.min.js"></script>
<script src="assets/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/vatgercptbannergenerator.js"></script>
</body>
</html>