// function plot_domain_counters() { // var xhttp = new XMLHttpRequest(); // xhttp.onreadystatechange = function () { // if (xhttp.readyState == 4 && xhttp.status == 200) { // document.getElementById("contor_total").innerHTML = xhttp.responseXML.getElementsByTagName("total_domains")[0].childNodes[0].nodeValue; // document.getElementById("contor_idn").innerHTML = xhttp.responseXML.getElementsByTagName("total_IDN")[0].childNodes[0].nodeValue; // document.getElementById("contor_dnssec").innerHTML = xhttp.responseXML.getElementsByTagName("total_dnssec")[0].childNodes[0].nodeValue; // document.getElementById("contor").style.display = 'block'; // } // }; // script_location = 'https://rotld.ro/domain-counter2.xml'; // xhttp.open("GET", script_location, true); // xhttp.send(); // } $(document).ready(function() { // plot_domain_counters(); if (!$('html').is('.lt-ie7, .lt-ie8, .lt-ie9')) { window.addEventListener('message', function (e) { var $iframe = jQuery("#myIframe"); var eventName = e.data[0]; var data = e.data[1]; switch (eventName) { case 'setHeight': $iframe.height(data); break; } }, false); } $(window).resize(function() { if ($(document).width() > 1000) { $('a[class="dropdown-toggle"]').addClass('disabled'); } else if ($(document).width() < 1000) { $('a[class="dropdown-toggle disabled"]').removeClass('disabled'); } }); });