Built with blockbuilder.org
xxxxxxxxxx
<html>
<head>
<script src='https://d3js.org/d3.v4.min.js'></script>
<script src='https://d3js.org/topojson.v3.min.js'></script>
<script src='https://cdn.jsdelivr.net/gh/earthjs/earthjs/dist/earthjs.min.js'>
</script>
<style media="screen">
.countries path {
fill: rgb(117, 87, 57);
stroke: rgb(80, 64, 39);
stroke-linejoin: round;
stroke-width: 1.5;
opacity: 0.8;
}
.graticule path {
fill: none;
opacity: 0.2;
stroke: black;
stroke-width: 0.5;
}
.countries #x840 {fill: blue;}
.countries #x643 {fill: red;}
</style>
</head>
<body>
<svg id="earth-js"></svg>
<script>
var w = 'https://unpkg.com/world-atlas@1/world/110m.json';
var g = earthjs().register(earthjs.plugins.mousePlugin())
.register(earthjs.plugins.graticuleSvg())
.register(earthjs.plugins.worldSvg(w));
g._.options.transparent = true;
g.ready(function(){
g.create();
})
</script>
</body>
</html>
Modified http://d3js.org/d3.v4.min.js to a secure url
Modified http://d3js.org/topojson.v3.min.js to a secure url
Updated missing url https://rawgit.com/earthjs/earthjs/master/dist/earthjs.min.js to https://cdn.jsdelivr.net/gh/earthjs/earthjs/dist/earthjs.min.js
https://d3js.org/d3.v4.min.js
https://d3js.org/topojson.v3.min.js
https://rawgit.com/earthjs/earthjs/master/dist/earthjs.min.js