Last active
December 18, 2015 08:29
-
-
Save milkbread/5754746 to your computer and use it in GitHub Desktop.
HTML: Testing the linking of external scripts and files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="http://d3js.org/topojson.v1.min.js"></script> | |
<script src="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js"></script> | |
<script type="text/plain" src="https://raw.github.com/square/crossfilter/master/crossfilter.min.js"></script> | |
<script src="milkbread/raw/5727801/testfunction.js"></script> | |
<style> | |
@import url(milkbread/raw/5713683/myStyles.css); | |
@import url(http://cdn.leafletjs.com/leaflet-0.5/leaflet.css); | |
</style> | |
</head> | |
<body> | |
<div id=version_info>When the background is green and this text is styled...then we called the stylefile successfully!</div> | |
<script> | |
//call the testfunction.js | |
testing("Hello") | |
d3.json("milkbread/raw/5754788/vg250_clipped_mini_topo.json", function(error, topology) { | |
var count = 0; | |
for (var k in topology.objects) { | |
++count; | |
} | |
d3.select("body").append("text").text("This file contains "+ count +" spatial objects!") | |
}) | |
</script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="http://d3js.org/topojson.v1.min.js"></script> | |
<script src="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js"></script> | |
<script type="text/plain" src="https://raw.github.com/square/crossfilter/master/crossfilter.min.js"></script> | |
<script src="milkbread/5727801/testfunction.js"></script> | |
<style> | |
@import url(https://gist.github.com/milkbread/5713683/raw/myStyles.css); | |
@import url(http://cdn.leafletjs.com/leaflet-0.5/leaflet.css); | |
</style> | |
</head> | |
<body> | |
<div id=text>hallo</text> | |
<div class=text>hallo</text> | |
<script> | |
///milkbread/5754788/raw/ | |
/*d3.json("../vorlagen/static/vg250_clipped_mini_topo.json", function(error, topology) { | |
})*/ | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment