Skip to content

Instantly share code, notes, and snippets.

@frogcat
Created March 24, 2016 10:38
Show Gist options
  • Save frogcat/ea0f9e824e5c5f9c413b to your computer and use it in GitHub Desktop.
Save frogcat/ea0f9e824e5c5f9c413b to your computer and use it in GitHub Desktop.
Get GSI.MUNI_ARRAY from gsimaps.js
Get GSI.MUNI_ARRAY from gsimaps.js
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>GSI.MUNI_ARRAY</title>
</head>
<body>
<pre id="pre"></pre>
<script>
var x = new XMLHttpRequest();
x.onreadystatechange = function() {
if (x.readyState == 4 && x.status == 200) {
eval("try{" + x.responseText + "}catch(e){}");
var a = [];
for (var b in GSI.MUNI_ARRAY)
a.push(GSI.MUNI_ARRAY[b]);
document.getElementById("pre").appendChild(document.createTextNode(a.join("\n")));
}
};
x.open("get", "http://gsi-cyberjapan.github.io/gsimaps/js/gsimaps.js", true);
x.send();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment