xxxxxxxxxx
<meta charset="utf-8">
<style>
body {
font: 20px sans-serif;
}
h1 {
color:red;
}
h1.success {
color:green;
}
</style>
<body>
<h1>FAILURE</h1>
<script src="https://d3js.org/d3.v3.min.js"></script>
<script>
d3.json("https://a.tiles.mapbox.com/v3/openstreetmap.map-hn253zqn/geocode/chester%2C%20nj.json",
function(error, data) {
if (!error) {
d3.selectAll('h1').text('success').attr('class', 'success');
}
});
</script>
Modified http://d3js.org/d3.v3.min.js to a secure url
https://d3js.org/d3.v3.min.js