Pretty substantial javascript refactoring: * All javascript is now in funtions.js. There is no javascript at all in index.html * Configuration options moved from template.html to config.js template.html moved to web_assets/index.html config.js allows you to specify pattern-label pairs. Each label will be added to an on-screen "signposts" control. Clicking the checkbox by each label will show/hide any signposts that match the pattern attached to that label. config.js has some examples. TODO: * The signposts control needs better styling. * The new javascript needs testing in IE. Seems ok in Chome and FF. These large changes may be hard to merge if you have non-trivial JS changes to template.html locally. Apologies in advance
19 lines
714 B
HTML
19 lines
714 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
|
|
<link rel="stylesheet" href="style.css" type="text/css" />
|
|
<script type="text/javascript" src="config.js"></script>
|
|
<script type="text/javascript"
|
|
src="http://maps.google.com/maps/api/js?sensor=false">
|
|
</script>
|
|
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
|
|
<script type="text/javascript" src="functions.js"></script>
|
|
<script type="text/javascript" src="markers.js"></script>
|
|
<script type="text/javascript" src="regions.js"></script>
|
|
</head>
|
|
<body onload="initialize()">
|
|
<div id="mcmap" style="width:100%; height:100%"></div>
|
|
</body>
|
|
</html>
|