Skip to content

Instantly share code, notes, and snippets.

@ejsarge
Created April 5, 2012 04:16
Show Gist options
  • Save ejsarge/2307890 to your computer and use it in GitHub Desktop.
Save ejsarge/2307890 to your computer and use it in GitHub Desktop.
TrailHunger.com Embedded Course Map and Download to Device
<div class="thgr_downloadtodevicetop"/>
<p>Have a Garmin watch? <a href="http://www.trailhunger.com/dl-crs/25">Download this course straight to your watch</a> and know where you're going! <strong><em>FREE!</em></strong> </p>
</div>
<div class="thgr_cmap" style="width:100%;height:400px">
<a href="http://www.trailhunger.com/course/25"><img src="http://maps.googleapis.com/maps/api/staticmap?center=49.340640652173064,-122.99643894999997&zoom=12&size=649x400&maptype=terrain&sensor=false" alt="Dirty Duo 50km Course Map"/>
</a>
</div>
<script type="text/javascript">
(function() {
_thgr_course_map_class='thgr_cmap'; _thgr_api_key="8h93yrhqkl";
var _thgr = document.createElement('script'), _thgr_src; _thgr.type = 'text/javascript'; _thgr.async = true;
_thgr_src = document.location.protocol === 'http:' ? 'http://cdn.trailhunger.com' : document.location.protocol + '//d1b3rm3ifop01h.cloudfront.net';
_thgr.src = _thgr_src + '/emb/1.6/course-widget-min.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(_thgr);
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment