From 07b30443b0fe06c54d3012095020554bdb008131 Mon Sep 17 00:00:00 2001 From: bleistivt Date: Thu, 10 Sep 2020 19:49:49 +0200 Subject: [PATCH] Remove console statements --- mobileTable.js | 6 ++++-- script.js | 12 ++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/mobileTable.js b/mobileTable.js index 78a8737..8096e0b 100644 --- a/mobileTable.js +++ b/mobileTable.js @@ -1,3 +1,5 @@ +// Uncompressed script. DokuWikis JS compressor does not support ASI. To be compressed with https://closure-compiler.appspot.com/ + window.mobileTables = ((options) => { options = options || {} @@ -231,8 +233,8 @@ window.mobileTables = ((options) => { const original = tables.get(table) if (original === undefined) { - console.log("mobileTables: Cannot find original for table:") - console.log(table) + //console.log("mobileTables: Cannot find original for table:") + //console.log(table) continue } diff --git a/script.js b/script.js index 807a35e..fd15be0 100644 --- a/script.js +++ b/script.js @@ -1,8 +1,8 @@ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var q=0;return function(){return qa?-1:a},hideHeadings:["image","Image","Bild"]});window.checkMobileTables=function(){var a=document.querySelector("div.mobiletable");a&&(a=window.getComputedStyle(a,":before").getPropertyValue("content").replace(/"|'/g,""),window.mobileTables("mobile"===a)&&window.location.hash&&(window.location.hash=window.location.hash))}; +window.mobileTables=function(a){a=a||{};var q=a.selector||"table",I=a.parseColumnIndex||function(e){return-1},J=a.hideHeadings||[],z=new WeakMap,A=new WeakMap,E=Symbol("index"),B=Symbol("hidden"),C=function(e,c){if(1===e.childNodes.length&&"#text"===e.lastChild.nodeName)return c.innerText=e.innerText,!1;for(;e.firstChild;)c.appendChild(e.firstChild);return!0},D=function(e){var c=document.createElement("tr");e.appendChild(c);return c},F=function(e,c,d){var b=c.cloneNode(!1);d&&(b.colSpan=2);C(c,b)&& +A.set(c,b);e.appendChild(b);return b},G=function(e){var c=document.createElement("div");e.replaceWith(c);return c};return function(e,c){if(e)a:{var d=c||document;var b=!1;d=$jscomp.makeIterator(d.querySelectorAll(q));for(var m=d.next();!m.done;m=d.next()){b=m.value;if(z.has(b)){d=void 0;break a}var l=I(b);m=G(b);var r=b,f=[],t=b.querySelector("tr"),u=0;t=$jscomp.makeIterator(t.children);for(var g=t.next();!g.done;g=t.next()){g=g.value;for(var h=g.colSpan,x=0;xa?-1:a},hideHeadings:["image","Image","Bild"]}); +window.checkMobileTables=function(){var a=document.querySelector("div.mobiletable");a&&(a=window.getComputedStyle(a,":before").getPropertyValue("content").replace(/"|'/g,""),window.mobileTables("mobile"===a)&&window.location.hash&&(window.location.hash=window.location.hash))}; (function(a){return["complete","interactive"].includes(document.readyState)?setTimeout(a,0):document.addEventListener("DOMContentLoaded",a)})(function(){var a;window.addEventListener("resize",function(){a&&clearTimeout(a);a=setTimeout(window.checkMobileTables,200)});window.checkMobileTables()}); \ No newline at end of file