Skip to content

Instantly share code, notes, and snippets.

@drzax
Created February 5, 2011 04:23
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save drzax/812197 to your computer and use it in GitHub Desktop.
Save drzax/812197 to your computer and use it in GitHub Desktop.
A head.js/Google Maps test case
<!DOCTYPE html>
<html>
<head>
<title>head.js / Google Maps test case</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="https://github.com/headjs/headjs/raw/master/dist/head.load.min.js"></script>
<script>head.js('http://code.jquery.com/jquery-1.5.min.js',"http://maps.google.com/maps/api/js?sensor=false&callback=init_map");</script>
<script>
function init_map() {
$(function(){var map = new google.maps.Map(document.getElementById("map"), {center: new google.maps.LatLng(-27.46, 153.04),zoom: 6, mapTypeId: google.maps.MapTypeId.ROADMAP})});
}
</script>
</head>
<body>
<div id="map" style="width: 500px; height:500px"></div>
</body>
</html>
@drlinux
Copy link

drlinux commented Oct 15, 2013

Cool bro! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment