-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap.html
More file actions
72 lines (66 loc) · 2.55 KB
/
map.html
File metadata and controls
72 lines (66 loc) · 2.55 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
<!DOCTYPE html>
<html>
<head>
<title>CTRL-F Tech!</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
<script src="http://maps.google.com/maps/api/js?sensor=true" type="text/javascript"></script>
<script src="js/map.min.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33332325-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div data-role="page" data-add-back-btn="true" id="map_page">
<div id='map-header' data-role="header">
<h1>Map</h1>
<a data-rel="back" href="index.html" data-icon="arrow-l" data-direction="reverse">Back</a>
<a data-transition="reverse slide" href="index.html" data-icon="home" data-iconpos="notext" >Home</a>
</div><!-- /header -->
<div id='map_content' data-role="content">
<canvas class="map_canvas"></canvas>
</div><!-- /content -->
<div data-role="footer" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a class="floor-btn" href="" data-floor='0'>G</a></li>
<li><a class="floor-btn" href="" data-floor='1'>1</a></li>
<li><a class="floor-btn" href="" data-floor='2'>2</a></li>
<li><a class="floor-btn" href="" data-floor='3'>3</a></li>
<li><a class="floor-btn" href="" data-floor='4'>4</a></li>
</ul>
</div><!-- /navbar -->
<script type="text/javascript">
$('#map_content').css({'padding':'0px',
'margin':'0px',
'overflow':'hidden',
'height':(window.innerHeight-84)+'px'
});
$('#map_page').live("pageshow", function() {
var map;
$('.map_canvas').each(function(){
map = new Map(this);
});
$('.floor-btn').each(function(){
$(this).click(function(){
map.changeFloor($(this).data('floor'));
});
if(map.currentfloor == $(this).data('floor')) {
$(this).addClass('ui-btn-active');
} else $(this).removeClass('ui-btn-active');
});
});
</script>
</div><!-- footer -->
</div><!-- /page -->
</body>
</html>