-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathembed-preview.html
27 lines (26 loc) · 1 KB
/
embed-preview.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
<!DOCTYPE html>
<html>
<head><meta charset="utf-8"/></head>
<body>
<select name="region-select" id="region-select" onchange="resetRegion()" style="display:block;">
<option value="ascension-par" selected>ascension-par</option>
<option value="baker-cty">baker-cty</option>
<option value="denham-springs-cty">denham-springs-cty</option>
<option value="plank-rd">plank-rd</option>
<option value="amite-special-extent">amite-special-extent</option>
</select>
<div><pre id="iframe-code"></pre></div>
<div id="iframe-wrap" style="width:700px">
<iframe id="map-frame" src="index.html" name="ascension-par" height=700 width=100%></iframe>
</div>
<script type="text/javascript">
var resetRegion = function() {
var iframeEl = document.getElementById("map-frame")
iframeEl.name = document.getElementById("region-select").value
iframeEl.src = iframeEl.src
document.getElementById("iframe-code").textContent = document.getElementById("iframe-wrap").innerHTML;
}
resetRegion();
</script>
</body>
</html>