-
Notifications
You must be signed in to change notification settings - Fork 0
/
gearthlow.html
111 lines (96 loc) · 3.54 KB
/
gearthlow.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Falling For Niagara</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<!-- API Key for code.google.com -->
<script type="text/javascript" src="http://www.google.com/jsapi?hl=en&key=ABQIAAAAzWskNx89vQOqUzmu32wmqhR16YBzROR0r3YZmGJP7J60uDzb2xRqyPM5IQ-9Yd3nCyF0Z3BLkis9cg"></script>
<LINK href="index.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="lib/geplugin-helpers.js"></script>
<script type="text/javascript" src="lib/math3d.js"></script>
<script type="text/javascript" src="simulator.js"></script>
<script type="text/javascript" src="index.js"></script>
<script type="text/javascript">
// <![CDATA[
var DS_ge;
var DS_geHelpers;
var DS_map;
google.load("jquery", "1");
google.load("maps", "2.x");
google.load("earth", "1");
function DS_init() {
$('#directions-form input').attr('disabled', 'disabled');
$('#simulator-form input').attr('disabled', 'disabled');
google.earth.createInstance(
'earth',
function(ge) {
DS_ge = ge;
DS_ge.getWindow().setVisibility(true);
DS_ge.getLayerRoot().enableLayerById(DS_ge.LAYER_BUILDINGS, true);
DS_ge.getLayerRoot().enableLayerById(DS_ge.LAYER_BORDERS, true);
DS_geHelpers = new GEHelpers(DS_ge);
DS_ge.getNavigationControl().setVisibility(ge.VISIBILITY_AUTO);
DS_map = new GMap2($('#map').get(0));
DS_map.setCenter(new GLatLng(37.4419, -122.1419), 13);
DS_map.addControl(new GSmallMapControl());
DS_map.enableContinuousZoom();
$('#directions-form input').removeAttr('disabled');
},
function() {
});
function onresize() {
var clientHeight = document.documentElement.clientHeight;
$('#route-details, #earth, #map').each(function() {
$(this).css({
height: (clientHeight - $(this).position().top - 100).toString() + 'px' });
});
}
$(window).resize(onresize);
onresize();
setTimeout(DS_goDirections,2000);
loadBottomText("drive");
//setTimeout(ShowNiagaraKml,2000);
}
google.setOnLoadCallback(DS_init);
// ]]>
</script>
</head>
<body onunload="GUnload();">
<!--<h1>Falling for Niagara</h1>-->
<div id="container">
<div class="subgroup">
<table style="width: 100%; height: 400px;">
<tr>
<td style="width: 100%" valign="top">
<div id="earth" style="border: 1px solid #000; height: 500px;">
</td>
</tr>
</table>
</div>
<div class="spacer"></div>
<div class="subgroup">
<table>
<tr>
<td valign="top" style="width: 20%;height:100%;display:none;" id="indexcell">
<div id="pageindex">
<h2>Index</h2>
<ul>
<li><a href="javascript:loadBottomText('main');">Main Page</a></li>
<li><a href="javascript:loadBottomText('drive2');">Getting There</a></li>
<li><a href="javascript:loadBottomText('food');">Food & Lodging</a></li>
<li><a href="javascript:loadBottomText('climate');">Climate</a></li>
<li><a href="javascript:loadBottomText('activities');">Activities</a></li>
<li><a href="javascript:loadBottomText('itinerary');">Itinerary & Budget</a></li>
<li><a href="javascript:loadBottomText('postcard');">Post Card</a></li>
<li><a href="javascript:loadBottomText('bibliography');">Bibliography</a></li>
</ul>
</div>
</td>
<td valign="top" style="width: 80%;height:100%;"><div id="pagetext"></div></td>
</tr>
</table>
</div>
</div>
</body>
</html>