8 lines
2.6 KiB
JavaScript
8 lines
2.6 KiB
JavaScript
var b=b||{};b.scope={};b.ASSUME_ES5=!1;b.ASSUME_NO_NATIVE_MAP=!1;b.ASSUME_NO_NATIVE_SET=!1;b.defineProperty=b.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,c,e){a!=Array.prototype&&a!=Object.prototype&&(a[c]=e.value)};b.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};b.global=b.getGlobal(this);b.SYMBOL_PREFIX="jscomp_symbol_";
|
|
b.initSymbol=function(){b.initSymbol=function(){};b.global.Symbol||(b.global.Symbol=b.Symbol)};b.Symbol=function(){var a=0;return function(c){return b.SYMBOL_PREFIX+(c||"")+a++}}();b.initSymbolIterator=function(){b.initSymbol();var a=b.global.Symbol.iterator;a||(a=b.global.Symbol.iterator=b.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&b.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return b.arrayIterator(this)}});b.initSymbolIterator=function(){}};
|
|
b.arrayIterator=function(a){var c=0;return b.iteratorPrototype(function(){return c<a.length?{done:!1,value:a[c++]}:{done:!0}})};b.iteratorPrototype=function(a){b.initSymbolIterator();a={next:a};a[b.global.Symbol.iterator]=function(){return this};return a};b.polyfill=function(a,c){if(c){var e=b.global;a=a.split(".");for(var d=0;d<a.length-1;d++){var g=a[d];g in e||(e[g]={});e=e[g]}a=a[a.length-1];d=e[a];c=c(d);c!=d&&null!=c&&b.defineProperty(e,a,{configurable:!0,writable:!0,value:c})}};
|
|
b.polyfill("Array.from",function(a){return a?a:function(a,e,d){b.initSymbolIterator();e=null!=e?e:function(a){return a};var c=[],f=a[Symbol.iterator];if("function"==typeof f){a=f.call(a);for(var h=0;!(f=a.next()).done;)c.push(e.call(d,f.value,h++))}else for(f=a.length,h=0;h<f;h++)c.push(e.call(d,a[h],h));return c}},"es6","es3");
|
|
(function(){function a(a){d&&g!==a.target.cellIndex&&(d.classList.remove("sorting_asc","sorting_desc"),d.classList.add("sorting"),f="");d=a.target;if("th"===d.nodeName.toLowerCase()){g=d.cellIndex;var h=d.offsetParent.getElementsByTagName("tbody")[0];if(a=Array.from(h.rows))a.sort(e),"sorting_asc"===f&&a.reverse(),c(),h.innerHtml="",a.forEach(function(a){h.appendChild(a)})}}function c(){var a="sorting_asc"!==f?"sorting_asc":"sorting_desc";d.className=(d.className.replace(f,"")+" "+a).trim();return f=
|
|
a}function e(a,c){a=a.cells.item(g).textContent.toLowerCase();c=c.cells.item(g).textContent.toLowerCase();var d=parseInt(a,10);d&&(a=d,c=parseInt(c,10));return a>c?1:a<c?-1:0}var d=null,g=null,f="";return{init:function(){for(var c=document.getElementsByTagName("th"),d=[],e=0,f=c.length;e<f;e++){var g=c[e];g.classList.add("sorting");d.push(g.onclick=a)}return d}}})().init();
|
|
//# sourceMappingURL=tables.min.js.map
|