www.geojs.io Open in urlscan Pro
3.125.252.47  Public Scan

Submitted URL: http://geojs.io/js/main.min.781f50eb67e2c9709470a42d2436e80c0fba3ffb9bfa538482f3a722b16d46fe483431c297250569534c...
Effective URL: https://www.geojs.io/js/main.min.781f50eb67e2c9709470a42d2436e80c0fba3ffb9bfa538482f3a722b16d46fe483431c297250569534c...
Submission: On September 30 via api from CH — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

document.addEventListener('DOMContentLoaded',()=>{const burger=document.querySelector('.navbar-burger');const menu=document.getElementById(burger.dataset.target);burger.addEventListener('click',()=>{burger.classList.toggle('is-active');menu.classList.toggle('is-active');});menu.addEventListener('click',()=>{if(window.getComputedStyle(burger).display=='block'){burger.click();}},true);});document.getElementById('mc-embedded-subscribe-form').addEventListener('submit',function(evt){evt.preventDefault();document.getElementById('mc-button').classList.toggle('is-loading');document.getElementById('mc-button').disabled=true;document.getElementById('mce-EMAIL').disabled=true;submitForm();});function errorMessage(error,parent){var errorMsg=error.includes(' - ')?error.substring(3):error;var dispayError=document.createElement('p');dispayError.setAttribute('id','mc-error-message');dispayError.setAttribute('class','help is-danger');dispayError.innerHTML=errorMsg;document.getElementById(parent).appendChild(dispayError);}
function submitForm(){var email=encodeURIComponent(document.getElementById('mce-EMAIL').value);var sourceUrl=encodeURIComponent(window.location);var queryData='EMAIL='+email+
'&=b_9c6287d73fb594aeb6a7a28ac_02218ac43f='+
'&c=mailchimpCallback';this._script=document.createElement("script");this._script.type="text/javascript";this._script.id="mc-callback"
this._script.src='https://geojs.us14.list-manage.com/subscribe/post-json?u=9c6287d73fb594aeb6a7a28ac&id=02218ac43f&'+queryData;if(document.getElementById("mc-error-message")){document.getElementById("mc-error-message").remove();}
document.getElementById('mce-EMAIL').classList.remove('is-danger');document.getElementsByTagName("head")[0].appendChild(this._script);}
function hideForm(){document.getElementById('mc-form').classList.add('is-sr-only');document.getElementById('mc-success-message').classList.remove('is-sr-only');}
Element.prototype.remove=function(){this.parentElement.removeChild(this);}
function mailchimpCallback(data){if(data['result']!="success"){errorMessage(data['msg'],'mc-input');document.getElementById('mce-EMAIL').classList.add('is-danger');}else{hideForm();}
document.getElementById('mc-button').classList.toggle('is-loading');document.getElementById('mc-button').disabled=false;document.getElementById('mce-EMAIL').disabled=false;document.getElementById("mc-callback").remove();}
function geoip(json){var userip=document.getElementById("user_ip");var countrycode=document.getElementById("user_countrycode");userip.textContent=json.ip;countrycode.textContent=json.country_code;}
function traffic_data(traffic_levels){var ctx=document.getElementById("traffic-chart");var timeFormat='DD/MM/YYYY';var myChart=new Chart(ctx,{type:'line',data:{datasets:[{data:traffic_levels,borderWidth:1,borderColor:'#209cee',backgroundColor:'rgba(32,156,238,0.4)'}]},options:{title:{display:false,text:"Last 60 days of traffic"},responsive:true,scales:{xAxes:[{type:"time",time:{parser:timeFormat,tooltipFormat:'ll'},scaleLabel:{display:false,labelString:'Date'},gridLines:{color:"#CCDCE666"},}],yAxes:[{scaleLabel:{display:true,labelString:'Requests/day (in millions)'},gridLines:{color:"#CCDCE666"},ticks:{callback:function(label,index,labels){return label/1000000+'m';}}}]},legend:{display:false},tooltips:{"mode":"index","intersect":false,"cornerRadius":3,"titleSpacing":0,"bodySpacing":0,"footerSpacing":0,"titleMarginBottom":5,"footerMarginTop":0,"yPadding":5,"caretPadding":10,"caretSize":0,displayColors:false,callbacks:{label:function(tooltipItem,data){return tooltipItem.yLabel.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")+' requests';}}}}});}