Warning: Undefined array key "HTTP_ACCEPT_ENCODING" in /home/www/scheible.it/wp-content/themes/scheible/scripts/js.php on line 45

Deprecated: substr_count(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/www/scheible.it/wp-content/themes/scheible/scripts/js.php on line 45

Warning: Cannot modify header information - headers already sent by (output started at /home/www/scheible.it/wp-content/themes/scheible/scripts/js.php:45) in /home/www/scheible.it/wp-content/themes/scheible/scripts/js.php on line 55

Warning: Cannot modify header information - headers already sent by (output started at /home/www/scheible.it/wp-content/themes/scheible/scripts/js.php:45) in /home/www/scheible.it/wp-content/themes/scheible/scripts/js.php on line 60

Warning: Cannot modify header information - headers already sent by (output started at /home/www/scheible.it/wp-content/themes/scheible/scripts/js.php:45) in /home/www/scheible.it/wp-content/themes/scheible/scripts/js.php on line 61

Warning: Cannot modify header information - headers already sent by (output started at /home/www/scheible.it/wp-content/themes/scheible/scripts/js.php:45) in /home/www/scheible.it/wp-content/themes/scheible/scripts/js.php on line 62
// STATUS: Debug Modus | complete folder | check time 1674393126 == 1674393126 | new js files fond | create check file | create merge.tmp | create merge.gz | var debug=true;var _paq = _paq || []; _paq.push(['disableCookies']); _paq.push(['enableHeartBeatTimer', 5]); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); var u = '//scheible.it/apps/stat/'; _paq.push(['setTrackerUrl', u + 'online.php']); _paq.push(['setSiteId', '1']); var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]; g.type = 'text/javascript'; g.defer = true; g.src = u + 'online.js'; s.parentNode.insertBefore(g, s); document.addEventListener('DOMContentLoaded', function() { // IE / Edge Bug Fix if(navigator.userAgent.search("Trident") != -1 || navigator.userAgent.search("Edge") != -1){!function(e,t){function n(e){var n=t[e];t[e]=function(e){return o(n(e))}}function a(t,n,a){return(a=this).attachEvent("on"+t,function(t){(t=t||e.event).preventDefault=t.preventDefault||function(){t.returnValue=!1},t.stopPropagation=t.stopPropagation||function(){t.cancelBubble=!0},n.call(a,t)})}function o(e,t){if(t=e.length)for(;t--;)e[t].addEventListener=a;else e.addEventListener=a;return e}e.addEventListener||(o([t,e]),"Element"in e?e.Element.prototype.addEventListener=a:(t.attachEvent("onreadystatechange",function(){o(t.all)}),n("getElementsByTagName"),n("getElementById"),n("createElement"),o(t.all)))}(window,document);} // Load CSS Files var xyz = ''; if(debug==true){var xyz='&a=manuell';} var c = document.createElement('link');c.rel = 'stylesheet'; c.href = 'https://scheible.it/wp-content/themes/scheible/styles/css.php?f=a'+xyz;document.getElementsByTagName('body')[0].appendChild(c); // Insert after function var x = 1; function insertAfter(el, referenceNode) { referenceNode.parentNode.insertBefore(el, referenceNode.nextSibling); } // Find urls in string and create html link function function createTextLinks(text) { return (text || "").replace( /([^\S]|^)(((https?\:\/\/)|(www\.))(\S+))/gi, function(match, space, url){ var l = url.length; // length of the original string var lastChar = url.substring(l-1, l); // get the last char of the original string if (lastChar == ",") { // if the last char is dot, remove the last char url = url.substring(0, l-1); } var hyperlink = url; if (!hyperlink.match('^https?:\/\/')) { hyperlink = 'http://' + hyperlink; } return space + '' + url + ','; } ); }; // JavaScript files load function function loadScript(url, callback){ var script = document.createElement("script"); script.rel = "preload"; script.as = "script"; if (script.readyState){ script.onreadystatechange = function(){ if (script.readyState == "loaded" || script.readyState == "complete"){ script.onreadystatechange = null; callback(); } }; } else { script.onload = function(){ callback(); }; } script.src = url; document.getElementsByTagName("head")[0].appendChild(script); } // Load LazyLoad if(document.querySelector(".lazyload")){ loadScript("https://scheible.it/wp-content/themes/scheible/scripts/js.php?file=lazyload.js", function(){}); } // Load Start Animation console.log('check1'); if(document.querySelector("#startAniCon")){ console.log('check2'); var link=document.createElement('link'); link.href='https://scheible.it/wp-content/themes/scheible/styles/css.php?file=start.scss'; link.rel='stylesheet'; document.getElementsByTagName('head')[0].appendChild(link); loadScript("https://scheible.it/wp-content/themes/scheible/scripts/extra/start.js", function(){}); } // Load Syntax Highlighter if(document.querySelector("pre")){ var link=document.createElement('link'); link.href='https://scheible.it/wp-content/themes/scheible/styles/css.php?file=SyntaxHighlighter.css'; link.rel='stylesheet'; document.getElementsByTagName('head')[0].appendChild(link); loadScript("https://scheible.it/wp-content/themes/scheible/scripts/extra/syntaxhighlighter.js", function(){ dp.SyntaxHighlighter.HighlightAll('code'); }); } // Load Slider if(document.querySelector(".siema") || document.querySelector(".siemarelated")){ var link=document.createElement('link'); link.href='https://scheible.it/wp-content/themes/scheible/styles/css.php?file=siema.css'; link.rel='stylesheet'; document.getElementsByTagName('head')[0].appendChild(link); loadScript("https://scheible.it/wp-content/themes/scheible/scripts/extra/siema.js", function(){}); } // Load Contact Form / Notification / Registration if(document.querySelector("#kontakt") || document.querySelector("#notification") || document.querySelector("#anmeldung")){ loadScript("https://scheible.it/wp-content/themes/scheible/scripts/js.php?file=contact.js", function(){}); } // Load Webcam if(document.querySelector("#webcam_image")){ loadScript("https://scheible.it/wp-content/themes/scheible/scripts/js.php?file=webcam.js", function(){}); } // Mobile Nav document.querySelector("header").onclick = function(){ console.log("check"); document.querySelector("header nav").classList.toggle("mnav"); }; // Sticky Header window.onscroll = function() {myFunction()}; var header = document.querySelector("header"); var sticky = header.offsetHeight; var content = header.innerHTML; function myFunction() { if (window.pageYOffset > sticky) { header.classList.add("sticky"); header.classList.remove("notsticky"); } else { header.classList.remove("sticky"); header.classList.add("notsticky"); } } // Scroll Up Button and Sidebar document.querySelector("#up").addEventListener('click', function() {window.scrollTo({ top: 0, behavior: 'smooth' })}, {passive: true}); window.addEventListener('scroll', function(){ scrollpos = window.scrollY; var scrollButton = document.querySelector('#up'); if(scrollpos > 600){ scrollButton.style.display = "block"; scrollButton.style.opacity = "1"; } else{ scrollButton.style.opacity = "0"; } }, {passive: true}); // how to comment notice toggle if(document.getElementById("comment_help")){ function commentHelpDisplay() { var x = document.getElementById("comment_help_content"); if (x.style.display === "none") { x.style.display = "block"; } else { x.style.display = "none"; } } var commentHelp = document.querySelector("#comment_help"); commentHelp.addEventListener("click",commentHelpDisplay, {passive: true}); } // Click 2 Play if(document.getElementsByClassName('clicktoplay').length!=0){ var clicktoplaytems = document.getElementsByClassName('clicktoplay'); // or document.querySelectorAll("li"); for (var i = 0; i < clicktoplaytems.length; i++) { clicktoplaytems[i].onclick = function() {console.log(atob(this.dataset.code)); this.parentNode.innerHTML = atob(this.dataset.code); this.parentNode.removeChild(this);} } } // ToDo: Load PhotoSphere var x = 0; // Cite big add author if(document.querySelector("article.full .text") && document.getElementsByTagName("q").length){ var q = document.getElementsByTagName("q"); var cite = "Quellenangaben"; for(var i = 0; i < q.length; i++){ var j = i +1; cite += '

['+j+'] '+createTextLinks(q[i].getAttribute('cite'))+'

'; if(q[i].classList.contains('big') && q[i].dataset.author!=""){ var newEl = document.createElement('div'); newEl.classList.add("q-author"); newEl.innerHTML = q[i].dataset.author+' ['+j+']'; insertAfter(newEl, q[i]); } else{ var newEl = document.createElement('span'); newEl.classList.add("q-reference"); newEl.innerHTML = ' ['+j+'] '; insertAfter(newEl, q[i]); } } var newEl = document.createElement('div'); newEl.id = "cite"; newEl.innerHTML = cite; insertAfter(newEl, document.querySelector("article.full .text").lastChild); } // Table of Content if(document.querySelector("article.full .text")){ var toc = ""; var level = 0; var container = document.querySelector("article.full .text"); var output = output || '#toc'; container.innerHTML = container.innerHTML.replace( /([^<]+)<\/h([\d])>/gi, function (str, openLevel, titleText, closeLevel) { if (openLevel != closeLevel) { return str; } if (openLevel > level) { toc += (new Array(openLevel - level + 1)).join(''); } else { toc += (new Array(level+ 1)).join(''); } level = parseInt(openLevel); var anchor = titleText.replace(/ /g, "_"); toc += '
  • '+titleText+'

    '; return ''+titleText+''; } ); if (level) { toc += (new Array(level + 1)).join(''); } document.querySelector('#toc').innerHTML += toc; let elementsArray = document.querySelectorAll("#toc p"); elementsArray.forEach(function(elem) { elem.addEventListener('click', function() { var rect = document.querySelector('#'+this.dataset.jump).getBoundingClientRect(); window.scrollTo({ top: rect.top-50, behavior: 'smooth' }) }, {passive: true}); }); } // Add class lazyload to lazy2 var x = document.getElementsByClassName('lazy2'); for(var i = 0; i < x.length; i++){x[i].classList.add('lazyload');} // Mail encryption function tk(){var a ="";b = new Array(".it","ble","hei","@sc","ias","tob");for (var c = b.length-1; c >= 0; c--){a += b[c];}location.href = "mai"+""+"lto:"+a;} // Social Media Links Helper Function agaisnt AdBlocker var jscleans = document.getElementsByClassName("jsclean"); for(var i = 0; i < jscleans.length; i++){ //jscleans[i].href = jscleans[i].href.replace("xyz", ""); //jscleans[i].href = jscleans[i].href.replace("XYZ", ""); } }); var countArt = "652";var countVor = "69";var countWor = "32";