-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathadmin_config.tpl
More file actions
458 lines (446 loc) · 19.6 KB
/
admin_config.tpl
File metadata and controls
458 lines (446 loc) · 19.6 KB
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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
{html_head}
<link rel="stylesheet" href="{$OSM_PATH}fontello/css/osm.css" />
<style>
{literal}
.osm_layout {
text-align: left;
border: 2px solid rgb(221, 221, 221);
padding: 1em;
margin: 1em;
}
{/literal}
</style>
{/html_head}
This plugin display geographical location in your gallery using <a href="http://www.openstreetmap.org/" target="_blank">OpenStreetMap</a>.
<br/><br/>
Refer to the <a href="https://github.com/xbgmsharp/piwigo-openstreetmap/wiki" target="_blanck">plugin documentation</a> for additional information. Create an <a href="https://github.com/xbgmsharp/piwigo-openstreetmap/issues" target="_blanck">issue</a> for support, or feedback, or feature request.
<div class="osm_layout">
<legend>{'Statistics'|@translate}</legend>
<ul>
<li class="update_summary_new">{$NB_GEOTAGGED} geotagged items in your gallery</li>
</ul>
</div>
<form method="post" action="" class="properties">
<fieldset>
<legend>{'R_MAP'|@translate}</legend>
<ul>
<li>
<label>{'SHOWLOCATION'|@translate} : </label>
<label><input type="radio" name="osm_right_panel" value="true" {if $right_panel.enabled}checked="checked"{/if}/> {'Yes'|@translate}</label>
<label><input type="radio" name="osm_right_panel" value="false" {if not $right_panel.enabled}checked="checked"{/if}/> {'No'|@translate}</label>
<br/><small>{'SHOWLOCATION_DESC'|@translate}</small>
</li>
<li>
<label>{'ADD_BEFORE'|@translate} : </label>
<select name="osm_add_before">
{html_options options=$AVAILABLE_ADD_BEFORE selected=$right_panel.add_before}
</select>
<br/><small>{'ADD_BEFORE_DESC'|@translate}</small>
</li>
<li>
<label>{'HEIGHT'|@translate} : </label>
<input type="text" value="{$right_panel.height}" name="osm_height" size="4" required/>
<br/><small>{'HEIGHT_DESC'|@translate}</small>
</li>
<li>
<label>{'ZOOM'|@translate} : </label>
<select name="osm_zoom">
{html_options options=$AVAILABLE_ZOOM selected=$right_panel.zoom}
</select>
<br/><small>{'ZOOM_DESC'|@translate}</small>
</li>
<li>
<label>{'RIGHTLINK'|@translate} : </label>
<input type="text" value="{$right_panel.link}" name="osm_right_link" size="20"/>
<br/><small>{'RIGHTLINK_DESC'|@translate}</small>
</li>
<li>
<label>{'RIGHTLINKCSS'|@translate} : </label>
<input type="text" value="{$right_panel.linkcss}" name="osm_right_linkcss" size="60" placeholder="vertical-align: top; color: red;"/>
<br/><small>{'RIGHTLINKCSS_DESC'|@translate}</small>
</li>
<li>
<label>{'SHOWOSM'|@translate} : </label>
<label><input type="radio" name="osm_showosm" value="true" {if $right_panel.showosm}checked="checked"{/if}/> {'Yes'|@translate}</label>
<label><input type="radio" name="osm_showosm" value="false" {if not $right_panel.showosm}checked="checked"{/if}/> {'No'|@translate}</label>
<br/><small>{'SHOWOSM_DESC'|@translate}</small>
</li>
</ul>
</fieldset>
<fieldset>
<legend>{'L_MAP'|@translate}</legend>
<ul>
<li>
<label>{'SHOWWORLDMAPLEFT'|@translate} : </label>
<label><input type="radio" name="osm_left_menu" value="true" {if $left_menu.enabled}checked="checked"{/if}/> {'Yes'|@translate}</label>
<label><input type="radio" name="osm_left_menu" value="false" {if not $left_menu.enabled}checked="checked"{/if}/> {'No'|@translate}</label>
<br/><small>{'SHOWWORLDMAPLEFT_DESC'|@translate}</small>
</li>
<li>
<label>{'LAYOUT_MAP'|@translate} : </label>
<select name="osm_left_layout">
{html_options options=$AVAILABLE_LAYOUT selected=$left_menu.layout}
</select>
<br/><small>{'LAYOUT_MAP_DESC'|@translate}</small>
</li>
<li>
<label>{'LEFTLINK'|@translate} : </label>
<input type="text" value="{$left_menu.link}" name="osm_left_link" size="20"/>
<br/><small>{'LEFTLINK_DESC'|@translate}</small>
</li>
<li>
<label>{'LEFTPOPUP'|@translate} : </label>
<select name="osm_left_popup">
{html_options options=$AVAILABLE_POPUP selected=$left_menu.popup}
</select>
<br/><small>{'LEFTPOPUP_DESC'|@translate}</small>
</li>
<li>
<label>{'LEFTPOPUPINFO'|@translate} : </label><br/>
<div style="padding-left: 25px">
<input type="checkbox" name="osm_left_popupinfo_name" value="true" {if $left_menu.popupinfo_name}checked="checked"{/if}/> {'POPUPNAME'|@translate}<br />
<input type="checkbox" name="osm_left_popupinfo_img" value="true" {if $left_menu.popupinfo_img}checked="checked"{/if}/> {'POPUPTHUMB'|@translate}<br />
<input type="checkbox" name="osm_left_popupinfo_link" value="true" {if $left_menu.popupinfo_link}checked="checked"{/if}/> {'POPUPLINK'|@translate}<br />
<input type="checkbox" name="osm_left_popupinfo_comment" value="true" {if $left_menu.popupinfo_comment}checked="checked"{/if}/> {'POPUPCOMMENT'|@translate}<br />
<input type="checkbox" name="osm_left_popupinfo_author" value="true" {if $left_menu.popupinfo_author}checked="checked"{/if}/> {'POPUPAUTHOR'|@translate}
</div>
<small>{'LEFTPOPUPINFO_DESC'|@translate}</small>
</li>
<li>
<label>{'Auto center'|@translate} : </label>
<label><input id="autocenter_enabled" type="radio" name="osm_left_autocenter" value="true" {if $left_menu.autocenter}checked="checked"{/if} onchange="autocenter_toggle(this);"/> {'Yes'|@translate}</label>
<label><input type="radio" name="osm_left_autocenter" value="false" {if not $left_menu.autocenter}checked="checked"{/if} onchange="autocenter_toggle(this);"/> {'No'|@translate}</label>
<br/><small>{'The map will be automatically centered and zoomed to contain all infos.'|@translate}</small>
</li>
<<<<<<< HEAD
<li>
<label>{'LEFTPOPUPCLICKTARGET'|@translate} : </label>
<select name="osm_left_popup_click_target">
{html_options options=$AVAILABLE_POPUP_CLICK_TARGET selected=$left_menu.popup_click_target}
</select>
<br/><small>{'LEFTPOPUPCLICKTARGET_DESC'|@translate}</small>
</li>
=======
>>>>>>> refs/remotes/Piwigo/master
<li id="osm_left_zoom_block">
<label>{'ZOOM'|@translate} : </label>
<select name="osm_left_zoom">
{html_options options=$AVAILABLE_ZOOM selected=$left_menu.zoom}
</select>
<br/><small>{'ZOOM_DESC'|@translate}</small>
</li>
<li id="osm_left_center_block">
<label>{'CENTER_MAP'|@translate} : </label>
<input type="text" value="{$left_menu.center}" name="osm_left_center" size="30" placeholder="0,0"/>
<br/><small>{'CENTER_MAP_DESC'|@translate}</small>
</li>
</ul>
</fieldset>
<fieldset>
<legend>{'C_MAP'|@translate}</legend>
<ul>
<li>
<label>{'SHOWCMAP'|@translate} : </label>
<label><input type="radio" name="osm_category_description" value="true" {if $category_description.enabled}checked="checked"{/if}/> {'Yes'|@translate}</label>
<label><input type="radio" name="osm_category_description" value="false" {if not $category_description.enabled}checked="checked"{/if}/> {'No'|@translate}</label>
<br/><small>{'SHOWCMAP_DESC'|@translate}</small>
</li>
<li>
<label>{'POSITION_INDEX_CMAP'|@translate} : </label>
<select name="osm_cat_index">
{html_options options=$AVAILABLE_CAT_INDEX selected=$category_description.index}
</select>
<br/><small>{'POSITION_INDEX_CMAP_DESC'|@translate}</small>
</li>
<li>
<label>{'HEIGHT'|@translate} : </label>
<input type="text" value="{$category_description.height}" name="osm_cat_height" size="4" required placeholder="200"/>
<br/><small>{'HEIGHT_DESC'|@translate}</small>
</li>
<li>
<label>{'WIDTH'|@translate} : </label>
<input type="text" value="{$category_description.width}" name="osm_cat_width" size="4" required placeholder="auto"/>
<br/><small>{'WIDTH_DESC'|@translate}</small>
</li>
<li>
<label>{'NOGPXFORSUBCAT'|@translate} : </label>
<label><input type="radio" name="osm_nogpxforsubcat" value="true" {if $category_description.nogpxforsubcat}checked="checked"{/if}/> {'Yes'|@translate}</label>
<label><input type="radio" name="osm_nogpxforsubcat" value="false" {if not $category_description.nogpxforsubcat}checked="checked"{/if}/> {'No'|@translate}</label>
<br/><small>{'NOGPXFORSUBCAT_DESC'|@translate}</small>
</li>
<li>
<label>{'FIRSTIMAGEFORSUBCAT'|@translate} : </label>
<label><input type="radio" name="osm_firstimageforsubcat" value="true" {if $category_description.firstimageforsubcat}checked="checked"{/if}/> {'Yes'|@translate}</label>
<label><input type="radio" name="osm_firstimageforsubcat" value="false" {if not $category_description.firstimageforsubcat}checked="checked"{/if}/> {'No'|@translate}</label>
<br/><small>{'FIRSTIMAGEFORSUBCAT_DESC'|@translate}</small>
</li>
</ul>
</fieldset>
<fieldset>
<legend>{'M_MAP'|@translate}</legend>
<ul>
<li>
<label>{'SHOWMMAP'|@translate} : </label>
<label><input type="radio" name="osm_main_menu" value="true" {if $main_menu.enabled}checked="checked"{/if}/> {'Yes'|@translate}</label>
<label><input type="radio" name="osm_main_menu" value="false" {if not $main_menu.enabled}checked="checked"{/if}/> {'No'|@translate}</label>
<br/><small>{'SHOWMMAP_DESC'|@translate}</small>
</li>
<li>
<label>{'HEIGHT'|@translate} : </label>
<input type="text" value="{$main_menu.height}" name="osm_menu_height" size="4" required placeholder="200"/>
<br/><small>{'HEIGHT_DESC'|@translate}</small>
</li>
</ul>
</fieldset>
<fieldset>
<legend>{'GPX_MAP'|@translate}</legend>
<ul>
<li>
<label>{'HEIGHT'|@translate} : </label>
<input type="text" value="{$gpx.height}" name="osm_gpx_height" size="4" required placeholder="500"/>
<br/><small>{'HEIGHT_DESC'|@translate}</small>
</li>
<li>
<label>{'GPX_WIDTH'|@translate} : </label>
<input type="text" value="{$gpx.width}" name="osm_gpx_width" size="4" required placeholder="320"/>
<br/><small>{'WIDTH_DESC'|@translate}</small>
</li>
</ul>
</fieldset>
<fieldset>
<legend>{'Batch Manager'|@translate} {'MAP'|@translate}</legend>
<ul>
<li>
<label>{'HEIGHT'|@translate} {$GLOBAL_MODE}: </label>
<input type="text" value="{$batch.global_height}" name="osm_batch_global_height" size="4" required placeholder="200"/>
<br/><small>{'HEIGHT_DESC'|@translate}</small>
</li>
<li>
<label>{'HEIGHT'|@translate} {$SINGLE_MODE}: </label>
<input type="text" value="{$batch.unit_height}" name="osm_batch_unit_height" size="4" required placeholder="200"/>
<br/><small>{'HEIGHT_DESC'|@translate}</small>
</li>
</ul>
</fieldset>
<fieldset>
<legend>{'G_MAP'|@translate}</legend>
<ul>
<li>
<img id="tile_preview" align="right" src="">
<label>{'BASELAYER'|@translate} : </label>
<select name="osm_baselayer" id="osm_baselayer" onchange="tile_toggle(this)">
{html_options options=$AVAILABLE_BASELAYER selected=$map.baselayer}
</select>
<br/><small>{'BASELAYER_DESC'|@translate}</small><br/>
<small>Check out <a href="http://leaflet-extras.github.io/leaflet-providers/preview/" target="_blank">this example</a> with half a hundred different layers to choose from.</small>
</li>
<div id="custom-tile-toggle" style="visibility:hidden; width:0px; height:0px; display:none;">
<fieldset>
<li>
<label>{'CUSTOMBASELAYER'|@translate} : </label>
<input type="text" value="{$map.custombaselayer}" name="osm_custombaselayer" id="osm_custombaselayer" size="40"/>
<br/><small>{'CUSTOMBASELAYER_DESC'|@translate}</small>
</li>
<li>
<label>{'CUSTOMBASELAYERURL'|@translate} : </label>
<input type="text" value="{$map.custombaselayerurl}" name="osm_custombaselayerurl" id="osm_custombaselayerurl" onchange="tile_toggle(this)" size="40"/>
<br/><small>{'CUSTOMBASELAYERURL_DESC'|@translate}</small>
</li>
</fieldset>
</div>
<div id="mapquest-tile-toggle" style="visibility:hidden; width:0px; height:0px; display:none;">
<fieldset>
<li>
<label>{'MAPQUEST_APIKEY'|@translate} : </label>
<input type="text" value="{$map.mapquest_apikey}" name="osm_mapquestapi" id="osm_mapquestapi" size="40"/>
<br/><small>{'MAPQUEST_APIKEY_DESC'|@translate} Check out <a href="http://www.mapquestapi.com/" target="_blank">MapQuest API</a></small>
</li>
</fieldset>
</div>
<li>
<label>{'NOWORLDWARP'|@translate} : </label>
<label><input type="radio" name="osm_noworldwarp" value="true" {if $map.noworldwarp}checked="checked"{/if}/> {'Yes'|@translate}</label>
<label><input type="radio" name="osm_noworldwarp" value="false" {if not $map.noworldwarp}checked="checked"{/if}/> {'No'|@translate}</label>
<br/><small>{'NOWORLDWARP_DESC'|@translate}</small>
</li>
<li>
<label>{'ATTRLEAFLET'|@translate} : </label>
<label><input type="radio" name="osm_attrleaflet" value="true" {if $map.attrleaflet}checked="checked"{/if}/> {'Yes'|@translate}</label>
<label><input type="radio" name="osm_attrleaflet" value="false" {if not $map.attrleaflet}checked="checked"{/if}/> {'No'|@translate}</label>
<br/><small>{'ATTRLEAFLET_DESC'|@translate}</small>
</li>
<li>
<label>{'ATTRIMAGERY'|@translate} : </label>
<label><input type="radio" name="osm_attrimagery" value="true" {if $map.attrimagery}checked="checked"{/if}/> {'Yes'|@translate}</label>
<label><input type="radio" name="osm_attrimagery" value="false" {if not $map.attrimagery}checked="checked"{/if}/> {'No'|@translate}</label>
<br/><small>{'ATTRIMAGERY_DESC'|@translate}</small>
</li>
<li>
<label>{'ATTRPLUGIN'|@translate} : </label>
<label><input type="radio" name="osm_attrplugin" value="true" {if $map.attrplugin}checked="checked"{/if}/> {'Yes'|@translate}</label>
<label><input type="radio" name="osm_attrplugin" value="false" {if not $map.attrplugin}checked="checked"{/if}/> {'No'|@translate}</label>
<br/><small>{'ATTRPLUGIN_DESC'|@translate}</small>
</li>
</ul>
<fieldset>
<legend>{'H_PIN'|@translate}</legend>
<ul>
<li>
<img id="pin_preview" align="left" src="">
<label >{'PIN'|@translate} : </label>
<select name="osm_pin" id="osm_pin" onchange="pin_toggle(this)">
{html_options options=$AVAILABLE_PIN selected=$pin.pin}
</select>
<br/><small>{'PIN_DESC'|@translate}</small>
</li>
<div id="custom-pin-toggle" style="visibility:hidden; width:0px; height:0px; display:none;">
<li>
<label>{'PINPATH'|@translate} : </label>
<input type="text" value="{$pin.pinpath}" name="osm_pinpath" size="40"/>
<br/><small>{'PINPATH_DESC'|@translate}</small>
</li>
<li>
<label>{'PINSIZE'|@translate} : </label>
<input type="text" value="{$pin.pinsize}" name="osm_pinsize" size="6"/>
<br/><small>{'PINSIZE_DESC'|@translate}</small>
</li>
<li>
<label>{'PINSHADOWPATH'|@translate} : </label>
<input type="text" value="{$pin.pinshadowpath}" name="osm_pinshadowpath" size="40"/>
<br/><small>{'PINSHADOWPATH_DESC'|@translate}</small>
</li>
<li>
<label>{'PINSHADOWSIZE'|@translate} : </label>
<input type="text" value="{$pin.pinshadowsize}" name="osm_pinshadowsize" size="4"/>
<br/><small>{'PINSHADOWSIZE_DESC'|@translate}</small>
</li>
<li>
<label>{'PINOFFSET'|@translate} : </label>
<input type="text" value="{$pin.pinoffset}" name="osm_pinoffset" size="4"/>
<br/><small>{'PINOFFSET_DESC'|@translate}</small>
</li>
<li>
<label>{'PINPOPUPOFFSET'|@translate} : </label>
<input type="text" value="{$pin.pinpopupoffset}" name="osm_pinpopupoffset" size="4"/>
<br/><small>{'PINPOPUPOFFSET_DESC'|@translate}</small>
</li>
</div>
</ul>
</fieldset>
</fieldset>
<p>
<input class="submit" type="submit" value="{'Save Settings'|@translate}" name="submit"/>
</p>
</form>
{literal}
<script type="text/javascript">
function tile_toggle()
{
var div_custom = document.getElementById("custom-tile-toggle");
var div_mapquest = document.getElementById("mapquest-tile-toggle");
var select = document.getElementById("osm_baselayer").value;
//alert(select.selectedIndex);
if (select == "custom") // If custom
{
div_custom.removeAttribute("style");
div_mapquest.setAttribute("style","visibility:hidden; width:0px; height:0px; display:none;");
} else if (select.startsWith("mapquest")) // If mapquest
{
div_mapquest.removeAttribute("style");
div_custom.setAttribute("style","visibility:hidden; width:0px; height:0px; display:none;");
} else {
div_custom.setAttribute("style","visibility:hidden; width:0px; height:0px; display:none;");
div_mapquest.setAttribute("style","visibility:hidden; width:0px; height:0px; display:none;");
}
tile_preview();
}
function pin_toggle()
{
var div = document.getElementById("custom-pin-toggle");
var select = document.getElementById("osm_pin");
//alert(select.selectedIndex);
if (select.selectedIndex == 9) // If custom
{
div.removeAttribute("style");
} else {
div.setAttribute("style","visibility:hidden; width:0px; height:0px; display:none;");
}
pin_preview();
}
function autocenter_toggle()
{
var radio = document.getElementById("autocenter_enabled");
var zoom_block = document.getElementById("osm_left_zoom_block");
var center_block = document.getElementById("osm_left_center_block");
if (radio.checked) // If autocenter
{
zoom_block.setAttribute("style", "display:none;");
center_block.setAttribute("style", "display:none;");
} else {
zoom_block.removeAttribute("style");
center_block.removeAttribute("style");
}
}
function tile_preview()
{
var select = document.getElementById("osm_baselayer");
var custom_url = document.getElementById("osm_custombaselayerurl").value;
if ( custom_url ) {
custom_url = custom_url.replace('{z}', '5').replace('{x}', '15').replace('{y}', '11');
} else {
custom_url = 'NULL';
}
baselayer = new Array(
'{/literal}{$OSM_PATH}{literal}leaflet/icons/preview_openstreetmap_mapnik.png',
'{/literal}{$OSM_PATH}{literal}leaflet/icons/preview_openstreetmap_blackandwhite.png',
'{/literal}{$OSM_PATH}{literal}leaflet/icons/preview_openstreetmap_fr.png',
'{/literal}{$OSM_PATH}{literal}leaflet/icons/preview_openstreetmap_de.png',
'{/literal}{$OSM_PATH}{literal}leaflet/icons/preview_openstreetmap_fr.png',
'{/literal}{$OSM_PATH}{literal}leaflet/icons/preview_mapquest.png',
'{/literal}{$OSM_PATH}{literal}leaflet/icons/preview_mapquest_aerial.png',
'{/literal}{$OSM_PATH}{literal}leaflet/icons/preview_toner.png',
custom_url,
'{/literal}{$OSM_PATH}{literal}leaflet/icons/preview_Esri.WorldTopoMap.png'
);
//alert(baselayer[select.selectedIndex]);
var img_elem = document.getElementById("tile_preview");
if (baselayer[select.selectedIndex] == "NULL")
{
img_elem.setAttribute("style","visibility:hidden; width:0px; height:0px; display:none;");
} else {
img_elem.removeAttribute("style");
img_elem.src = baselayer[select.selectedIndex];
}
}
function pin_preview()
{
var select = document.getElementById("osm_pin");
pins = new Array(
'NULL',
'{/literal}{$OSM_PATH}{literal}leaflet/images/marker-blue.png',
'{/literal}{$OSM_PATH}{literal}leaflet/images/marker-green.png',
'{/literal}{$OSM_PATH}{literal}leaflet/images/marker-red.png',
'{/literal}{$OSM_PATH}{literal}leaflet/images/leaf-green.png',
'{/literal}{$OSM_PATH}{literal}leaflet/images/leaf-orange.png',
'{/literal}{$OSM_PATH}{literal}leaflet/images/leaf-red.png',
'{/literal}{$OSM_PATH}{literal}leaflet/images/mapicons-blue.png',
'{/literal}{$OSM_PATH}{literal}leaflet/images/mapicons-green.png',
'NULL',
'NULL'
);
//alert(pins[select.selectedIndex]);
var img_elem = document.getElementById("pin_preview");
if (pins[select.selectedIndex] == "NULL")
{
img_elem.setAttribute("style","visibility:hidden; width:0px; height:0px; display:none;");
} else {
img_elem.removeAttribute("style");
img_elem.setAttribute("style","padding-right: 5px;");
img_elem.src = pins[select.selectedIndex];
}
}
window.onload = pin_preview();
window.onload = tile_preview();
window.onload = autocenter_toggle()
</script>
{/literal}