doctype html
html(lang='en')
head
meta(charset='UTF-8')
meta(name='viewport' content='width=device-width, initial-scale=1')
meta(http-equiv='Content-Language', content='en')
title=settings.title
link(rel='stylesheet', href='/css/themes/' + settings.theme + '/bootstrap.min.css')
link(rel='stylesheet', href='//use.fontawesome.com/releases/v5.15.1/css/all.css')
if active == 'markets' || active == 'richlist'
link(rel='stylesheet', href='/css/jquery.jqplot.min.css')
if active == 'network'
link(rel='stylesheet', href='/css/flag-icon.min.css')
link(rel='stylesheet', type='text/css', href='//cdn.datatables.net/v/bs4/dt-1.10.22/datatables.min.css')
link(rel='stylesheet', href='/css/style.min.css')
script(type='text/javascript', src='//cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js', integrity='sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==', crossorigin='anonymous')
script(type='text/javascript', src='//cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js', integrity='sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx', crossorigin='anonymous')
if active == 'markets' || active == 'richlist'
script(type='text/javascript', src='/js/jquery.jqplot.min.js')
if active == 'markets'
script(type='text/javascript', src='/js/jqplot.dateAxisRenderer.min.js')
script(type='text/javascript', src='/js/jqplot.ohlcRenderer.min.js')
script(type='text/javascript', src='/js/jqplot.highlighter.min.js')
if active == 'richlist'
script(type='text/javascript', src='/js/jqplot.pieRenderer.min.js')
script(type='text/javascript', src='//cdn.datatables.net/v/bs4/dt-1.10.22/datatables.min.js')
if active == 'reward'
script(type='text/javascript', src='/js/Chart.min.js')
script.
/* Special thanks to the stackoverflow community for the getParameterByName function: https://stackoverflow.com/a/901144/3038650 */
function getParameterByName(name, url = window.location.href) {
name = name.replace(/[\[\]]/g, '\\$&');
var regex = new RegExp('[?&]' + name + '(=([^]*)|&|#|$)'),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, ' '));
}
function fixFooterHeightAndPosition() {
var screenWidth = $(window).width();
if (screenWidth <= 575) {
// Mobile
$('#footer-container').css('height', '!{settings.footer_height_mobile}');
} else if (screenWidth >= 576 && screenWidth <= 991) {
// Tablet
$('#footer-container').css('height', '!{settings.footer_height_tablet}');
} else {
// Desktop
$('#footer-container').css('height', '!{settings.footer_height_desktop}');
}
if (!#{settings.sticky_footer}) {
// Wait a tick before fixing footer position to give time for elements to be rendered
var nonStickyFooterSetIntervalID = setInterval(function() {
// Stop setInterval from running again
clearInterval(nonStickyFooterSetIntervalID);
// Ensure footer is shown at the bottom of the viewport
var offset = (window.innerHeight - $('#footer-container').position().top - $('#footer-container').outerHeight());
$('#footer-container').css('margin-top', (offset > 0 ? offset : '10') + 'px');
}, 1, "tmrFixFooter");
}
fixSocialLinkFontSize();
}
function fixSocialLinkFontSize() {
var fontSize = $('#footer-container').height() * (getSocialLinkHeight() / 100);
$('#footer-container .social-link').css('font-size', fontSize);
}
function getSocialLinkHeight() {
var retVal = 70;
var screenWidth = $(window).width();
if (screenWidth <= 575) {
// Mobile
retVal = !{settings.social_link_percent_height_mobile};
} else if (screenWidth >= 576 && screenWidth <= 991) {
// Tablet
retVal = !{settings.social_link_percent_height_tablet};
} else {
// Desktop
retVal = !{settings.social_link_percent_height_desktop};
}
return retVal;
}
$(document).ready(function() {
if ('#{active}' != '')
$('##{active}').addClass('active');
function update_stats() {
$.ajax({url: '/ext/summary', success: function(json) {
$("#masternodeCountOnline").text(json.data[0].masternodeCountOnline).prop("alt", json.data[0].masternodeCountOnline+" nodes online").prop("title", json.data[0].masternodeCountOnline+" nodes online");
$("#masternodeCountOffline").text(json.data[0].masternodeCountOffline).prop("alt", json.data[0].masternodeCountOffline+" unreachable nodes").prop("title", json.data[0].masternodeCountOffline+" unreachable nodes");
$("#spnMasternodeCountOnline").prop("alt", json.data[0].masternodeCountOnline+" nodes online").prop("title", json.data[0].masternodeCountOnline+" nodes online");
$("#spnMasternodeCountOffline").prop("alt", json.data[0].masternodeCountOffline+" unreachable nodes").prop("title", json.data[0].masternodeCountOffline+" unreachable nodes");
var supplyString = json.data[0].supply;
var diffString = json.data[0].difficulty;
var hashrateString = json.data[0].hashrate;
if (!isNaN(json.data[0].difficulty))
diffString = parseFloat(json.data[0].difficulty).toFixed(2);
if (!isNaN(json.data[0].supply))
supplyString = parseInt(parseFloat(json.data[0].supply).toFixed(0)).toLocaleString('en');
if (!isNaN(json.data[0].hashrate))
hashrateString = parseFloat(json.data[0].hashrate).toLocaleString('en');
$("#supply").text(supplyString);
$("#difficulty").text(diffString);
$("#difficultyHybrid").text(json.data[0].difficultyHybrid);
$("#hashrate").text(hashrateString);
$("#lastPrice").text(parseFloat(json.data[0].lastPrice).toFixed(8));
$("#marketCap").html((parseFloat(json.data[0].lastPrice).toFixed(8) * parseInt(parseFloat(json.data[0].supply).toFixed(0))).toLocaleString('en') + '' + '#{settings.markets.exchange}'.toUpperCase() + '');
$("#lblConnections").text(json.data[0].connections + ' connections');
$("#lblBlockcount").text(json.data[0].blockcount + ' blocks');
$("#lblX1").text(' ');
}});
}
$('.block-last-next').tooltip({
animation: true,
delay: { hide: 500 }
});
if ($('#history-table tbody tr').length) {
$('#history-table').dataTable({
searching: false,
ordering: false,
responsive: true,
language: {
paginate: {
previous: '<',
next: '>'
}
}
});
}
$('.iquidus').css('color',$('.table').css('color'));
$(window).resize(function () {
$($.fn.dataTable.tables(true)).DataTable().columns.adjust();
fixFooterHeightAndPosition();
});
setInterval(function() {
update_stats();
}, 60000);
update_stats();
function getNetworkPanel() {
var networkSuffix='';
switch ('#{settings.nethash_units}') {
case "K":
networkSuffix='(KH/s)';
break;
case "M":
networkSuffix='(MH/s)';
break;
case "G":
networkSuffix='(GH/s)';
break;
case "T":
networkSuffix='(TH/s)';
break;
case "P":
networkSuffix='(PH/s)';
break;
case "H":
networkSuffix='(H/s)';
break;
}
var hashRateType='';
if ('#{settings.index.difficulty}' == 'Hybrid') hashRateType+='
';
return '