Skip to content

Instantly share code, notes, and snippets.

@drzax
Created February 5, 2011 04:23
Show Gist options
  • Select an option

  • Save drzax/812197 to your computer and use it in GitHub Desktop.

Select an option

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

drlinux commented Oct 15, 2013

Copy link
Copy Markdown

Cool bro! Thanks!

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