[Update] Globe: Integrate into home page

This commit is contained in:
0xfff 2016-11-15 01:18:09 +01:00
parent 4a4f4d107c
commit c28ad8d716
6 changed files with 62 additions and 19 deletions

View file

@ -262,24 +262,37 @@ description: pages.home.description
<!--
FASTEST GROWING NETWORK
-->
<section>
<section class="section--masternode">
<div class="content">
<div class="row">
<div class="col-sm-6">
<div class="col-sm-6 globe-text-container">
<h2>{% t pages.home.network-growth-heading %}</h2>
{% tmd pages.home.network-growth-text %}
<a href="{{ basenav }}/currency" class="btn-blue">{% t pages.home.network-growth-btn %}</a>
</div>
<!--div class="col-sm-6 home-network-graphic">
<img src="/assets/img/home/graph.png" alt="{% t pages.home.network-growth-heading %}">
</div-->
<div class="col-sm-6 home-network-graphic-live">
<img src="http://178.254.23.111/~pub/masternode_count.png" alt="{% t pages.home.network-growth-heading %}">
</div>
</div>
</div>
<div class="globecontainer" data-js-masternode-globe></div>
<script type="text/javascript" src="/assets/js/dash-masternode-globe.min.js"></script>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function() {
if (!DashGlobe.Detector.webgl) {
var el = document.querySelectorAll('[data-js-masternode-globe]')[0];
el.className = el.className + ' no-webgl';
} else {
window.globe = new DashGlobe({
container: document.querySelectorAll('[data-js-masternode-globe]')[0],
imgDir: '/assets/img/',
url: '/assets/mn_locations.tsv',
cameraOffset: { x: 0, y: 170, z: 0 },
initialZoom: 450,
barColor: 0xddddddff
});
}
});
</script>
</section>
<!--