document.domain = "inzu.net"; var app = ""; document.addEventListener("DOMContentLoaded", function(event) { if (window.matchMedia("(min-width: 800px)").matches) { createCookie("mediaQ", "desktop", 1, "/", ".inzu.net"); } else if (window.matchMedia("(min-width: 616px)").matches) { createCookie("mediaQ", "pad", 1, "/", ".inzu.net"); } else if (window.matchMedia("(max-width: 616px)").matches) { createCookie("mediaQ", "phone", 1, "/", ".inzu.net"); } }); function doc_title( title ) { document.title = "Inzu - " + title; } function updateURL(string, type = false, reload = false) { if ( type == "concat" ) { var newurl = window.location.href + "&" + string; } else if ( type == "dir" ) { var newurl = window.location.protocol + "//" + window.location.host + "/" + string; } else { var newurl = window.location.protocol + "//" + window.location.host + window.location.pathname + '?' + string + "&node=" + node; } window.history.replaceState({path:newurl},'',newurl); if ( reload ) { window.location.reload(); } }