Skip to content

Instantly share code, notes, and snippets.

@dmmoelle
Last active August 29, 2015 14:04
Show Gist options
  • Save dmmoelle/3bf077bf954c1f89e66c to your computer and use it in GitHub Desktop.
Save dmmoelle/3bf077bf954c1f89e66c to your computer and use it in GitHub Desktop.
<script>
document.write(screen.width);
if (screen.width < 980) {
IWidth = screen.width;
} else { IWidth = 980 }
document.write('<iframe src="https://mapsengine.google.com/map/embed?mid=zv4x1F3xtt1A.kNa-SYOcLRXY" width="'+IWidth+'" height="680"></iframe>' );
</script>
<style>
chapterMap {
width: 100%; max-width: 980px;
}
</style>
<iframe id=chapterMap src="https://mapsengine.google.com/map/embed?mid=zv4x1F3xtt1A.kNa-SYOcLRXY" height="680"></iframe>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment