diff --git a/public/indexer.php b/public/indexer.php index 34fc009..d1bb391 100755 --- a/public/indexer.php +++ b/public/indexer.php @@ -5,7 +5,7 @@ * * @license https://github.com/sixem/eyy-indexer/blob/master/LICENSE GPL-3.0 * @author emy - * @version 1.1.7 + * @version 1.1.71 */ /** @@ -15,7 +15,7 @@ */ /* Used to bust the cache and to display footer version number. */ -$version = '1.1.7'; +$version = '1.1.71'; $config = array( /* Authentication options. */ diff --git a/public/indexer/js/main.js b/public/indexer/js/main.js index e634320..a7d5a2b 100755 --- a/public/indexer/js/main.js +++ b/public/indexer/js/main.js @@ -6,4 +6,4 @@ * * @author emy [admin@eyy.co] */ -!function(){var s=JSON.parse($("#__INDEXER_DATA__").html()),c={store:{preview:{},defaults:{},selection:{},selected:null,refresh:!1},debounce:function(t){var n;return function(e){n&&clearTimeout(n),n=setTimeout(t,100,e)}},checkNested:function(e){for(var t=arguments.length,n=new Array(1 table > tbody > tr.file > td:first-child > a:visible").each(function(e,t){var n=$(t).text().split(".").pop().toLowerCase().trim();r.includes(n)||r.push(n)}),'wget -r -np -nH -nd -e robots=off --accept "'.concat(r.join(","),'" "').concat(e,'"')},client:{get:function(){var n,t=["gallery","sort","style"],r={gallery:{reverse_options:s.gallery.reverse_options,list_alignment:s.gallery.list_alignment,fit_content:s.gallery.fit_content,autoplay:!0,volume:.25},style:{compact:s.style.compact,theme:!1}};try{n=JSON.parse(Cookies.get("ei-client")),t.forEach(function(e){Object.prototype.hasOwnProperty.call(n,e)||(n[e]=Object.prototype.hasOwnProperty.call(r,e)?r[e]:{})});var o=!1;Object.keys(r).forEach(function(t){Object.keys(r[t]).forEach(function(e){Object.prototype.hasOwnProperty.call(n[t],e)||(n[t][e]=r[t][e],o=!0)})}),o&&c.client.set(n)}catch(e){n={},s.style.themes.set&&(r.style.theme=s.style.themes.set),t.forEach(function(e){return n[e]={}}),c.client.set(Object.assign(n,r))}return n},set:function(e,t){var n=1")).parent().wrap($("
",i)).parent().prepend($("
",l))},section:function(e,t){var n=1",{class:"section","data-key":e}).append($("
",{class:"header",text:n||c.capitalize(e)}))},select:function(e,t,n){var r=2",1",e);return null!==r&&!0===r(n,t,o)&&(n[0].selected=!0,o[0].selectedIndex=t),n})),o},check:function(e,t){var n=0",Object.assign(n,{type:"checkbox"}));return a[0].checked=o,a}},close:function(){$("body > div.focus-overlay, body > div.settings-container").remove()},update:{style:{theme:function(e){c.theme.set(!1===e?null:e,!1)},compact:function(e){$("body")[e?"addClass":"removeClass"]("compact")}},gallery:{list_alignment:function(t){var e,n,r;c.gallery.instance&&((e=["body > div.gallery-container > div.content-container > div.media > div.loader","body > div.gallery-container > div.content-container > div.list","body > div.gallery-container > div.content-container > div.list > div.drag"]).forEach(function(e){return 0===t?$(e).removeClass("reversed"):$(e).addClass("reversed")}),n=$(e[1]).detach(),r="body > div.gallery-container > div.content-container > div.media",1===t?n.insertBefore(r):n.insertAfter(r),c.gallery.instance.store.list.reverse=0!==t)},reverse_options:function(e){var t;c.gallery.instance&&(c.gallery.instance.store.reverse_options=e,0<(t=$("body > div.gallery-container > div.content-container > div.media > div.wrapper > div.cover .reverse")).length&&t.remove())},autoplay:function(e){c.gallery.instance&&(c.gallery.instance.store.autoplay=e)},fit_content:function(e){var t;c.gallery.instance&&(c.gallery.instance.store.fit_content=e,(t=$("body > div.gallery-container > div.content-container > div.media > div.wrapper"))&&e?(t.addClass("fill"),c.store.refresh=!0,c.store.selected=null):t&&(t.removeClass("fill"),[".cover",".cover img","video"].forEach(function(e){return $(e).css({height:"",width:""})})))}}},options:{gather:function(e){var o={};return e.find(["select",'input[type="checkbox"]'].join(",")).each(function(e,t){var n,r;(t=$(t))[0].hasAttribute("name")&&(n=t.attr("name"),r=t[0].hasAttribute("data-key")?t.attr("data-key"):t.closest(".section").attr("data-key"),Object.prototype.hasOwnProperty.call(o,r)||(o[r]={}),t.is("select")?o[r][n]=t[0].selectedIndex:t.is('input[type="checkbox"]')&&(o[r][n]=t[0].checked))}),o},set:function(a,e){var i=(i=1 div.settings-container").length||(0===$("body > div.focus-overlay").length&&$("
",{class:"focus-overlay"}).appendTo($("body")).on("click",function(){return c.settings.close()}),e=$("
",{class:"settings-container"}),l=c.client.get(),t=[function(e,t){var n=0",{class:"wrapper"}).append(t.map(function(e){return 0",{class:"bottom"}).appendTo(e),$("
",{class:"apply ns",text:"Apply"}).appendTo(n).on("click",function(){return c.settings.apply(e,l)}),$("
",{class:"cancel ns",text:"Cancel"}).appendTo(n).on("click",function(){return c.settings.close()}),$("body").append(e),e.find("div.section > .option.interactable").on("mouseup",function(e){var t;window.getSelection().toString()||0<(t=$(e.currentTarget).find('input[type="checkbox"]')).length&&!$(e.target).is("input")&&(t[0].checked=!t[0].checked)}))}},menu:{create:function(){var n=$("
",{class:"menu"}).appendTo($("body")),e=[{text:"[Show] Filter",id:"filter"},{text:"[Copy] WGET",id:"copy"}];return!0===s.gallery.enabled&&0<$("body > table > tbody > tr.file > td > a.preview").length&&e.unshift({text:"[Open] Gallery",id:"gallery"}),c.settings.available()&&e.unshift({text:"[Open] Settings",id:"settings",class:"settings"}),e.forEach(function(e){var t=$("
",{text:e.text,class:"ns"+(Object.prototype.hasOwnProperty.call(e,"class")?" "+e.class:"")}).appendTo(n);Object.prototype.hasOwnProperty.call(e,"id")&&t.attr("id",e.id)}),n[0].addEventListener("click",function(e){"DIV"==e.target.tagName&&("gallery"==e.target.id&&!0===s.gallery.enabled?(c.gallery.load(null),c.menu.toggle(!1)):"copy"==e.target.id?(c.copyTextToClipboard(c.generateWget()),c.menu.toggle(!1)):"settings"==e.target.id?(c.settings.show(),c.menu.toggle(!1)):"filter"==e.target.id&&(c.filter.toggle(),c.menu.toggle()))}),n},toggle:function(e){var t=0 div.menu");return n.css("display","boolean"==typeof t?t?"inline-block":"none":n.is(":hidden")?"inline-block":"none"),$("body > .top-bar > div.extend").html(n.is(":hidden")?"▾":"▴"),n.is(":hidden")}},theme:{set:function(e,t){var n=0 link[rel="stylesheet"]').filter(function(e,t){return t.hasAttribute("href")&&t.getAttribute("href").match(new RegExp("/(themes)/","i"))});if(null===(s.style.themes.set=n)||!n)return o.each(function(e,t){return t.remove()}),!1;r&&c.client.set(c.client.get().style.theme=n),$("head").append($("",{rel:"stylesheet",type:"text/css",href:"".concat(s.style.themes.path,"/").concat(n,".css")})),o.each(function(e,t){return t.remove()})}},filter:{apply:function(e){var o=0 table > tbody > tr.file, body > table > tbody > tr.directory").each(function(e,t){if(t=$(t),!0===a.reset)return t[0].removeAttribute("hidden"),!0;var n,r=t.hasClass("file");try{i={valid:!0,data:t.find("td:eq(0)").attr("data-raw").match(new RegExp(o,"i"))}}catch(e){i={valid:!1,reason:e}}i.valid&&i.data?t[0].removeAttribute("hidden"):t[0].setAttribute("hidden",""),i.valid&&i.data&&r&&(n=t.find("td:eq(2)").attr("data-raw"),isNaN(n)||(a.size=a.size+parseInt(n))),i.valid&&i.data?r?a.shown.files++:a.shown.directories++:r?a.hidden.files++:a.hidden.directories++});var t={container:$("body > div.top-bar")};["size","files","directories"].forEach(function(e){return t[e]=t.container.find('[data-count="'.concat(e,'"]'))}),Object.prototype.hasOwnProperty.call(c.store.defaults,"top_values")||(c.store.defaults.top_values={size:t.size.text(),files:t.files.text(),directories:t.directories.text()}),t.size.text(a.reset?c.store.defaults.top_values.size:c.getReadableSize(a.size)),t.files.text(a.reset?c.store.defaults.top_values.files:"".concat(a.shown.files," file").concat(1===a.shown.files?"":"s")),t.directories.text(a.reset?c.store.defaults.top_values.directories:"".concat(a.shown.directories," ").concat(1===a.shown.directories?"directory":"directories"));var n,r=$("body > div.menu > #gallery"),l=$("body > table tr.file:visible a.preview").length,s=$("body > div.filter-container div.status");0 div.filter-container"),t=e.find('input[type="text"]');e.is(":visible")?e.hide():(t.val(""),c.filter.apply(null),e.show()),t.focus()}},dates:{format:function(e,t){function n(e,t){return c[e]?c[e]():t}function r(e,t){for(e=String(e);e.length table > tbody > tr.directory > td:nth-child(2), tbody tr.file > td[data-raw]:nth-child(2)").each(function(e,t){t=$(t);var r=parseInt(t.attr("data-raw")),n=function(e){if(0===e)return"Now";if(e<0)return!1;for(var t={year:31556926,month:2629743,week:604800,day:86e3,hour:3600,minute:60,second:1},n=Object.keys(t),r=n.length-1,o=!1,a=0;a"):t.find("> span");!0===i&&(s.format.date.forEach(function(e,t){var n;t<=1&&(n=$("",{text:c.dates.format(e,r)}),1 div.top-bar > .directory-info div[data-count="files"], \t\t\t\t\t\tbody > div.top-bar > .directory-info div[data-count="directories"]').each(function(e,t){(t=$(t))[0].hasAttribute("data-raw")&&$(t).attr("title","Newest: "+c.dates.format(s.format.date[0],parseInt(t.attr("data-raw"))))})}(e,n)}},sort:{load:function(){var e=document.querySelectorAll("table th span[sortable]");if(Object.prototype.hasOwnProperty.call(s,"sorting")&&s.sorting.enabled&&(0===s.sorting.types||1===s.sorting.types)){var t,n="asc"===s.sorting.order,r=null;switch(s.sorting.sort_by){case"name":r=0;break;case"modified":r=1;break;case"size":r=2;break;case"type":r=3;break;default:r=null}null===r||0<(t=$(e[r]).closest("th")).length&&(t[0].asc=n,t.find("> span.sort-indicator").addClass(n?"down":"up").fadeIn(350))}}},gallery:{instance:null,load:function(e){var t=0",t);var n=$("body > div.preview-container > video");if(c.gallery.instance&&!1!==c.gallery.instance){c.gallery.instance.store.continue.video=0 .filter-container"),func:c.filter.toggle},{e:$("body > div.menu"),func:c.menu.toggle}].forEach(function(e){0 table > tbody > tr.file > td:first-child > a.preview").forEach(function(e){var t=e.parentNode,n=t.parentNode;if(n.hasAttribute("hidden"))return!1;var r=e.getAttribute("href");void 0!==r&&"undefined"!=typeof name&&o.push({url:r,name:t.getAttribute("data-raw"),size:n.querySelector("td:nth-child(3)").innerHTML})}),o},events:{scroll:function(){var e=$("body > div.path"),t=$("body > div.top-bar > div.directory-info > div.quick-path");$(window).scrollTop()",{class:"quick-path","data-view":"desktop"}).html($("body > div.path").html()),$("body > div.top-bar > div.directory-info").append(t)),t.fadeIn(150).css("display","inline-block"))},sortTableColumn:function(e){var t=$(e).parent(),n=t.index(),r=$(e).is("th")?e:t[0],o=$("body > table"),a={directories:o.find("tbody > tr.directory").toArray(),files:o.find("tbody > tr.file").toArray()},i=Object.prototype.hasOwnProperty.call(s.sorting,"sort_by")&&(2===n||3===n);0!==s.sorting.types&&2!==s.sorting.types||i||a.directories.sort(c.comparer($(r).index())),0!==s.sorting.types&&1!==s.sorting.types||a.files.sort(c.comparer($(r).index())),r.asc=!r.asc,$("body > table > thead > tr > th span.sort-indicator").removeClass("up down"),t.find("> span.sort-indicator").addClass(r.asc?"down":"up").show();var l=c.client.get();l.sort.ascending=r.asc?1:0,l.sort.row=n,c.client.set(l),r.asc||(0!==s.sorting.types&&2!==s.sorting.types||i||(a.directories=a.directories.reverse()),0!==s.sorting.types&&1!==s.sorting.types||(a.files=a.files.reverse())),Object.keys(a).forEach(function(e){return a[e].forEach(function(e){return o.append(e)})}),c.store.refresh=!0,c.store.selected=null,$("body > table > tbody > tr.last").removeClass("last")}},bind:function(){$(document).off("keydown").on("keydown",function(t){var e;t.shiftKey&&70===t.keyCode?(t.preventDefault(),c.filter.toggle()):27===t.keyCode?c.overlay.hide(function(e){!0===e&&t.preventDefault()}):71===t.keyCode&&!0===s.gallery.enabled&&(!1!==(e=$("body > .filter-container")).is(":visible")&&e.find('input[type="text"]').is(":focus")||(c.gallery.load(null),c.menu.toggle(!1)))}),$(window).on("scroll",c.debounce(function(){c.events.scroll()}))}};$("body > div.top-bar > div.extend").on("click",function(e){c.menu.toggle(e.currentTarget)}),$("body > div.filter-container > div.close > span").on("click",function(){c.filter.toggle()}),$('body > div.filter-container > div input[type="text"]').on("input",function(e){var t=$(e.currentTarget);c.filter.apply(t.val())}),document.querySelector("body > table").addEventListener("click",function(e){var t;"SPAN"==e.target.tagName&&e.target.hasAttribute("sortable")?c.events.sortTableColumn(e.target):"A"==e.target.tagName&&"preview"==e.target.className&&!0===s.gallery.enabled&&(performance.now(),e.preventDefault(),t=$(e.target).closest("table").find("tr.file:visible").filter(function(e,t){return 0<$(t).find("a.preview").length}).index($(e.target).closest("tr.file")),c.gallery.load(-1!==t?t:0),performance.now())},!0),window.addEventListener("resize",c.debounce(function(){s.debug&&console.log("resized"),s.mobile=Modernizr.mq("(max-width: 640px)"),c.gallery.instance&&(c.gallery.instance.store.mobile=s.mobile,c.gallery.instance.update.listWidth())})),$(document).ready(function(){var n,e;c.bind(),c.dates.load(),$('body > .filter-container > input[type="text"]').val(""),s.mobile=Modernizr.mq("(max-width: 640px)"),c.menu.create().css({top:$("body > div.top-bar").innerHeight()+"px",visibility:"unset",display:"none"}),!1===s.mobile&&!0===s.preview.enabled&&(n={},0<(e=$("body").find("> table tr.file > td > a.preview")).length&&window.hoverPreview(e[0],{delay:s.preview.hover_delay,cursor:s.preview.cursor_indicator,encodeAll:!0}),document.querySelector("body > table").addEventListener("mouseenter",function(e){var t;"A"==e.target.tagName&&"preview"==e.target.className&&(t=$(e.target).closest("tr").index(),Object.prototype.hasOwnProperty.call(n,t)||(n[t]=window.hoverPreview(e.target,{delay:s.preview.hover_delay,cursor:s.preview.cursor_indicator,encodeAll:!0})))},!0)),c.events.scroll()}),c.client.get(),c.sort.load(),s.debug&&console.log("config",s)}(); \ No newline at end of file +!function(){var s=JSON.parse($("#__INDEXER_DATA__").html()),c={store:{preview:{},defaults:{},selection:{},selected:null,refresh:!1},debounce:function(t){var n;return function(e){n&&clearTimeout(n),n=setTimeout(t,100,e)}},checkNested:function(e){for(var t=arguments.length,n=new Array(1 table > tbody > tr.file > td:first-child > a:visible").each(function(e,t){var n=$(t).text().split(".").pop().toLowerCase().trim();r.includes(n)||r.push(n)}),'wget -r -np -nH -nd -e robots=off --accept "'.concat(r.join(","),'" "').concat(e,'"')},client:{get:function(){var n,t=["gallery","sort","style"],r={gallery:{reverse_options:s.gallery.reverse_options,list_alignment:s.gallery.list_alignment,fit_content:s.gallery.fit_content,autoplay:!0,volume:.25},style:{compact:s.style.compact,theme:!1}};try{n=JSON.parse(Cookies.get("ei-client")),t.forEach(function(e){Object.prototype.hasOwnProperty.call(n,e)||(n[e]=Object.prototype.hasOwnProperty.call(r,e)?r[e]:{})});var o=!1;Object.keys(r).forEach(function(t){Object.keys(r[t]).forEach(function(e){Object.prototype.hasOwnProperty.call(n[t],e)||(n[t][e]=r[t][e],o=!0)})}),o&&c.client.set(n)}catch(e){n={},s.style.themes.set&&(r.style.theme=s.style.themes.set),t.forEach(function(e){return n[e]={}}),c.client.set(Object.assign(n,r))}return n},set:function(e,t){var n=1")).parent().wrap($("
",i)).parent().prepend($("
",l))},section:function(e,t){var n=1",{class:"section","data-key":e}).append($("
",{class:"header",text:n||c.capitalize(e)}))},select:function(e,t,n){var r=2",1",e);return null!==r&&!0===r(n,t,o)&&(n[0].selected=!0,o[0].selectedIndex=t),n})),o},check:function(e,t){var n=0",Object.assign(n,{type:"checkbox"}));return a[0].checked=o,a}},close:function(){$("body > div.focus-overlay, body > div.settings-container").remove()},update:{style:{theme:function(e){c.theme.set(!1===e?null:e,!1)},compact:function(e){$("body")[e?"addClass":"removeClass"]("compact")}},gallery:{list_alignment:function(t){var e,n,r;c.gallery.instance&&((e=["body > div.gallery-container > div.content-container > div.media > div.loader","body > div.gallery-container > div.content-container > div.list","body > div.gallery-container > div.content-container > div.list > div.drag"]).forEach(function(e){return 0===t?$(e).removeClass("reversed"):$(e).addClass("reversed")}),n=$(e[1]).detach(),r="body > div.gallery-container > div.content-container > div.media",1===t?n.insertBefore(r):n.insertAfter(r),c.gallery.instance.store.list.reverse=0!==t)},reverse_options:function(e){var t;c.gallery.instance&&(c.gallery.instance.store.reverse_options=e,0<(t=$("body > div.gallery-container > div.content-container > div.media > div.wrapper > div.cover .reverse")).length&&t.remove())},autoplay:function(e){c.gallery.instance&&(c.gallery.instance.store.autoplay=e)},fit_content:function(e){var t;c.gallery.instance&&(c.gallery.instance.store.fit_content=e,(t=$("body > div.gallery-container > div.content-container > div.media > div.wrapper"))&&e?(t.addClass("fill"),c.store.refresh=!0,c.store.selected=null):t&&(t.removeClass("fill"),[".cover",".cover img","video"].forEach(function(e){return $(e).css({height:"",width:""})})))}}},options:{gather:function(e){var o={};return e.find(["select",'input[type="checkbox"]'].join(",")).each(function(e,t){var n,r;(t=$(t))[0].hasAttribute("name")&&(n=t.attr("name"),r=t[0].hasAttribute("data-key")?t.attr("data-key"):t.closest(".section").attr("data-key"),Object.prototype.hasOwnProperty.call(o,r)||(o[r]={}),t.is("select")?o[r][n]=t[0].selectedIndex:t.is('input[type="checkbox"]')&&(o[r][n]=t[0].checked))}),o},set:function(a,e){var i=(i=1 div.settings-container").length||(0===$("body > div.focus-overlay").length&&$("
",{class:"focus-overlay"}).appendTo($("body")).on("click",function(){return c.settings.close()}),e=$("
",{class:"settings-container"}),l=c.client.get(),t=[function(e,t){var n=0",{class:"wrapper"}).append(t.map(function(e){return 0",{class:"bottom"}).appendTo(e),$("
",{class:"apply ns",text:"Apply"}).appendTo(n).on("click",function(){return c.settings.apply(e,l)}),$("
",{class:"cancel ns",text:"Cancel"}).appendTo(n).on("click",function(){return c.settings.close()}),$("body").append(e),e.find("div.section > .option.interactable").on("mouseup",function(e){var t;window.getSelection().toString()||0<(t=$(e.currentTarget).find('input[type="checkbox"]')).length&&!$(e.target).is("input")&&(t[0].checked=!t[0].checked)}))}},menu:{create:function(){var n=$("
",{class:"menu"}).appendTo($("body")),e=[{text:"[Show] Filter",id:"filter"},{text:"[Copy] WGET",id:"copy"}];return!0===s.gallery.enabled&&0<$("body > table > tbody > tr.file > td > a.preview").length&&e.unshift({text:"[Open] Gallery",id:"gallery"}),c.settings.available()&&e.unshift({text:"[Open] Settings",id:"settings",class:"settings"}),e.forEach(function(e){var t=$("
",{text:e.text,class:"ns"+(Object.prototype.hasOwnProperty.call(e,"class")?" "+e.class:"")}).appendTo(n);Object.prototype.hasOwnProperty.call(e,"id")&&t.attr("id",e.id)}),n[0].addEventListener("click",function(e){"DIV"==e.target.tagName&&("gallery"==e.target.id&&!0===s.gallery.enabled?(c.gallery.load(null),c.menu.toggle(!1)):"copy"==e.target.id?(c.copyTextToClipboard(c.generateWget()),c.menu.toggle(!1)):"settings"==e.target.id?(c.settings.show(),c.menu.toggle(!1)):"filter"==e.target.id&&(c.filter.toggle(),c.menu.toggle()))}),n},toggle:function(e){var t=0 div.menu");return n.css("display","boolean"==typeof t?t?"inline-block":"none":n.is(":hidden")?"inline-block":"none"),$("body > .top-bar > div.extend").html(n.is(":hidden")?"▾":"▴"),n.is(":hidden")}},theme:{set:function(e,t){var n=0 link[rel="stylesheet"]').filter(function(e,t){return t.hasAttribute("href")&&t.getAttribute("href").match(new RegExp("/(themes)/","i"))});if(null===(s.style.themes.set=n)||!n)return o.each(function(e,t){return t.remove()}),!1;r&&c.client.set(c.client.get().style.theme=n),$("head").append($("",{rel:"stylesheet",type:"text/css",href:"".concat(s.style.themes.path,"/").concat(n,".css")})),o.each(function(e,t){return t.remove()})}},filter:{apply:function(e){var o=0 table > tbody > tr.file, body > table > tbody > tr.directory").each(function(e,t){if(t=$(t),!0===a.reset)return t[0].removeAttribute("hidden"),!0;var n,r=t.hasClass("file");try{i={valid:!0,data:t.find("td:eq(0)").attr("data-raw").match(new RegExp(o,"i"))}}catch(e){i={valid:!1,reason:e}}i.valid&&i.data?t[0].removeAttribute("hidden"):t[0].setAttribute("hidden",""),i.valid&&i.data&&r&&(n=t.find("td:eq(2)").attr("data-raw"),isNaN(n)||(a.size=a.size+parseInt(n))),i.valid&&i.data?r?a.shown.files++:a.shown.directories++:r?a.hidden.files++:a.hidden.directories++});var t={container:$("body > div.top-bar")};["size","files","directories"].forEach(function(e){return t[e]=t.container.find('[data-count="'.concat(e,'"]'))}),Object.prototype.hasOwnProperty.call(c.store.defaults,"top_values")||(c.store.defaults.top_values={size:t.size.text(),files:t.files.text(),directories:t.directories.text()}),t.size.text(a.reset?c.store.defaults.top_values.size:c.getReadableSize(a.size)),t.files.text(a.reset?c.store.defaults.top_values.files:"".concat(a.shown.files," file").concat(1===a.shown.files?"":"s")),t.directories.text(a.reset?c.store.defaults.top_values.directories:"".concat(a.shown.directories," ").concat(1===a.shown.directories?"directory":"directories"));var n,r=$("body > div.menu > #gallery"),l=$("body > table tr.file:visible a.preview").length,s=$("body > div.filter-container div.status");0 div.filter-container"),t=e.find('input[type="text"]');e.is(":visible")?e.hide():(t.val(""),c.filter.apply(null),e.show()),t.focus()}},dates:{format:function(e,t){function n(e,t){return c[e]?c[e]():t}function r(e,t){for(e=String(e);e.length table > tbody > tr.directory > td:nth-child(2), tbody tr.file > td[data-raw]:nth-child(2)").each(function(e,t){t=$(t);var r=parseInt(t.attr("data-raw")),n=function(e){if(0===e)return"Now";if(e<0)return!1;for(var t={year:31556926,month:2629743,week:604800,day:86e3,hour:3600,minute:60,second:1},n=Object.keys(t),r=n.length-1,o=!1,a=0;a"):t.find("> span");!0===i&&(s.format.date.forEach(function(e,t){var n;t<=1&&(n=$("",{text:c.dates.format(e,r)}),1 div.top-bar > .directory-info div[data-count="files"], \t\t\t\t\t\tbody > div.top-bar > .directory-info div[data-count="directories"]').each(function(e,t){(t=$(t))[0].hasAttribute("data-raw")&&$(t).attr("title","Newest: "+c.dates.format(s.format.date[0],parseInt(t.attr("data-raw"))))})}(e,n)}},sort:{load:function(){var e=document.querySelectorAll("table th span[sortable]");if(Object.prototype.hasOwnProperty.call(s,"sorting")&&s.sorting.enabled&&(0===s.sorting.types||1===s.sorting.types)){var t,n="asc"===s.sorting.order,r=null;switch(s.sorting.sort_by){case"name":r=0;break;case"modified":r=1;break;case"size":r=2;break;case"type":r=3;break;default:r=null}null===r||0<(t=$(e[r]).closest("th")).length&&(t[0].asc=n,t.find("> span.sort-indicator").addClass(n?"down":"up").fadeIn(350))}}},gallery:{instance:null,load:function(e){var t=0",t);var n=$("body > div.preview-container > video");if(c.gallery.instance&&!1!==c.gallery.instance){c.gallery.instance.store.continue.video=0 .filter-container"),func:c.filter.toggle},{e:$("body > div.menu"),func:c.menu.toggle}].forEach(function(e){0 table > tbody > tr.file > td:first-child > a.preview").forEach(function(e){var t=e.parentNode,n=t.parentNode;if(n.hasAttribute("hidden"))return!1;var r=e.getAttribute("href");void 0!==r&&"undefined"!=typeof name&&o.push({url:r,name:t.getAttribute("data-raw"),size:n.querySelector("td:nth-child(3)").innerHTML})}),o},events:{scroll:function(){var e=$("body > div.path"),t=$("body > div.top-bar > div.directory-info > div.quick-path");$(window).scrollTop()",{class:"quick-path","data-view":"desktop"}).html($("body > div.path").html()),$("body > div.top-bar > div.directory-info").append(t)),t.fadeIn(150).css("display","inline-block"))},sortTableColumn:function(e){var t=$(e).parent(),n=t.index(),r=$(e).is("th")?e:t[0],o=$("body > table"),a={directories:o.find("tbody > tr.directory").toArray(),files:o.find("tbody > tr.file").toArray()},i=Object.prototype.hasOwnProperty.call(s.sorting,"sort_by")&&(2===n||3===n);0!==s.sorting.types&&2!==s.sorting.types||i||a.directories.sort(c.comparer($(r).index())),0!==s.sorting.types&&1!==s.sorting.types||a.files.sort(c.comparer($(r).index())),r.asc=!r.asc,$("body > table > thead > tr > th span.sort-indicator").removeClass("up down"),t.find("> span.sort-indicator").addClass(r.asc?"down":"up").show();var l=c.client.get();l.sort.ascending=r.asc?1:0,l.sort.row=n,c.client.set(l),r.asc||(0!==s.sorting.types&&2!==s.sorting.types||i||(a.directories=a.directories.reverse()),0!==s.sorting.types&&1!==s.sorting.types||(a.files=a.files.reverse())),Object.keys(a).forEach(function(e){return a[e].forEach(function(e){return o.append(e)})}),c.store.refresh=!0,c.store.selected=null,$("body > table > tbody > tr.last").removeClass("last")}},bind:function(){$(document).off("keydown").on("keydown",function(t){var e;t.shiftKey&&70===t.keyCode?(t.preventDefault(),c.filter.toggle()):27===t.keyCode?c.overlay.hide(function(e){!0===e&&t.preventDefault()}):71===t.keyCode&&!0===s.gallery.enabled&&(!1!==(e=$("body > .filter-container")).is(":visible")&&e.find('input[type="text"]').is(":focus")||(c.gallery.load(null),c.menu.toggle(!1)))}),$(window).on("scroll",c.debounce(function(){c.events.scroll()}))}};$("body > div.top-bar > div.extend").on("click",function(e){c.menu.toggle(e.currentTarget)}),$("body > div.filter-container > div.close > span").on("click",function(){c.filter.toggle()}),$('body > div.filter-container > div input[type="text"]').on("input",function(e){var t=$(e.currentTarget);c.filter.apply(t.val())}),document.querySelector("body > table").addEventListener("click",function(e){var t;"SPAN"==e.target.tagName&&e.target.hasAttribute("sortable")?c.events.sortTableColumn(e.target):"A"==e.target.tagName&&"preview"==e.target.className&&!0===s.gallery.enabled&&(e.preventDefault(),t=$(e.target).closest("table").find("tr.file:visible").filter(function(e,t){return 0<$(t).find("a.preview").length}).index($(e.target).closest("tr.file")),c.gallery.load(-1!==t?t:0))},!0),window.addEventListener("resize",c.debounce(function(){s.debug&&console.log("resized"),s.mobile=Modernizr.mq("(max-width: 640px)"),c.gallery.instance&&(c.gallery.instance.store.mobile=s.mobile,c.gallery.instance.update.listWidth())})),$(document).ready(function(){var n,e;c.bind(),c.dates.load(),$('body > .filter-container > input[type="text"]').val(""),s.mobile=Modernizr.mq("(max-width: 640px)"),c.menu.create().css({top:$("body > div.top-bar").innerHeight()+"px",visibility:"unset",display:"none"}),!1===s.mobile&&!0===s.preview.enabled&&(document.querySelectorAll("body > table tr.file > td > a.preview").forEach(function(e,t){e.itemIndex=t}),n={},0<(e=$("body").find("> table tr.file > td > a.preview")).length&&(n[e[0].itemIndex]=window.hoverPreview(e[0],{delay:s.preview.hover_delay,cursor:s.preview.cursor_indicator,encodeAll:!0})),document.querySelector("body > table").addEventListener("mouseenter",function(e){var t;"A"==e.target.tagName&&"preview"==e.target.className&&(t=e.target.itemIndex,Object.prototype.hasOwnProperty.call(n,t)||(n[t]=window.hoverPreview(e.target,{delay:s.preview.hover_delay,cursor:s.preview.cursor_indicator,encodeAll:!0})))},!0)),c.events.scroll()}),c.client.get(),c.sort.load(),s.debug&&console.log("config",s)}(); \ No newline at end of file diff --git a/src/indexer.php b/src/indexer.php index e9a0262..dbd6e04 100755 --- a/src/indexer.php +++ b/src/indexer.php @@ -5,7 +5,7 @@ * * @license https://github.com/sixem/eyy-indexer/blob/master/LICENSE GPL-3.0 * @author emy - * @version 1.1.7 + * @version 1.1.71 */ /** @@ -15,7 +15,7 @@ */ /* Used to bust the cache and to display footer version number. */ -$version = '1.1.7'; +$version = '1.1.71'; $config = array( /* Authentication options. */ diff --git a/src/indexer/js/main.js b/src/indexer/js/main.js index 8c7a3c3..47fa975 100755 --- a/src/indexer/js/main.js +++ b/src/indexer/js/main.js @@ -1465,11 +1465,16 @@ if(config.mobile === false && config.preview.enabled === true) { + document.querySelectorAll('body > table tr.file > td > a.preview').forEach((preview, index) => + { + preview.itemIndex = index; + }); + let previews = {}, initial = $('body').find('> table tr.file > td > a.preview'); if(initial.length > 0) { - window.hoverPreview(initial[0], { + previews[initial[0].itemIndex] = window.hoverPreview(initial[0], { delay : config.preview.hover_delay, cursor : config.preview.cursor_indicator, encodeAll : true @@ -1480,7 +1485,7 @@ { if(e.target.tagName == 'A' && e.target.className == 'preview') { - var index = $(e.target).closest('tr').index(); + var index = (e.target.itemIndex); if(!Object.prototype.hasOwnProperty.call(previews, index)) { diff --git a/standalone/indexer.php b/standalone/indexer.php index 5de179e..8b298b9 100755 --- a/standalone/indexer.php +++ b/standalone/indexer.php @@ -5,7 +5,7 @@ * * @license https://github.com/sixem/eyy-indexer/blob/master/LICENSE GPL-3.0 * @author emy - * @version 1.1.7 + * @version 1.1.71 */ /** @@ -15,7 +15,7 @@ */ /* Used to bust the cache and to display footer version number. */ -$version = '1.1.7'; +$version = '1.1.71'; $config = array( /* Authentication options. */ @@ -865,41 +865,41 @@ public function joinPaths(...$params) 'timestamp' => $indexer->timestamp, 'debug' => $config['debug'], 'mobile' => false -))); ?> \ No newline at end of file +function(){var s=JSON.parse($("#__INDEXER_DATA__").html()),c={store:{preview:{},defaults:{},selection:{},selected:null,refresh:!1},debounce:function(t){var n;return function(e){n&&clearTimeout(n),n=setTimeout(t,100,e)}},checkNested:function(e){for(var t=arguments.length,n=new Array(1 table > tbody > tr.file > td:first-child > a:visible").each(function(e,t){var n=$(t).text().split(".").pop().toLowerCase().trim();r.includes(n)||r.push(n)}),'wget -r -np -nH -nd -e robots=off --accept "'.concat(r.join(","),'" "').concat(e,'"')},client:{get:function(){var n,t=["gallery","sort","style"],r={gallery:{reverse_options:s.gallery.reverse_options,list_alignment:s.gallery.list_alignment,fit_content:s.gallery.fit_content,autoplay:!0,volume:.25},style:{compact:s.style.compact,theme:!1}};try{n=JSON.parse(Cookies.get("ei-client")),t.forEach(function(e){Object.prototype.hasOwnProperty.call(n,e)||(n[e]=Object.prototype.hasOwnProperty.call(r,e)?r[e]:{})});var o=!1;Object.keys(r).forEach(function(t){Object.keys(r[t]).forEach(function(e){Object.prototype.hasOwnProperty.call(n[t],e)||(n[t][e]=r[t][e],o=!0)})}),o&&c.client.set(n)}catch(e){n={},s.style.themes.set&&(r.style.theme=s.style.themes.set),t.forEach(function(e){return n[e]={}}),c.client.set(Object.assign(n,r))}return n},set:function(e,t){var n=1")).parent().wrap($("
",a)).parent().prepend($("
",l))},section:function(e,t){var n=1",{class:"section","data-key":e}).append($("
",{class:"header",text:n||c.capitalize(e)}))},select:function(e,t,n){var r=2",1",e);return null!==r&&!0===r(n,t,o)&&(n[0].selected=!0,o[0].selectedIndex=t),n})),o},check:function(e,t){var n=0",Object.assign(n,{type:"checkbox"}));return i[0].checked=o,i}},close:function(){$("body > div.focus-overlay, body > div.settings-container").remove()},update:{style:{theme:function(e){c.theme.set(!1===e?null:e,!1)},compact:function(e){$("body")[e?"addClass":"removeClass"]("compact")}},gallery:{list_alignment:function(t){var e,n,r;c.gallery.instance&&((e=["body > div.gallery-container > div.content-container > div.media > div.loader","body > div.gallery-container > div.content-container > div.list","body > div.gallery-container > div.content-container > div.list > div.drag"]).forEach(function(e){return 0===t?$(e).removeClass("reversed"):$(e).addClass("reversed")}),n=$(e[1]).detach(),r="body > div.gallery-container > div.content-container > div.media",1===t?n.insertBefore(r):n.insertAfter(r),c.gallery.instance.store.list.reverse=0!==t)},reverse_options:function(e){var t;c.gallery.instance&&(c.gallery.instance.store.reverse_options=e,0<(t=$("body > div.gallery-container > div.content-container > div.media > div.wrapper > div.cover .reverse")).length&&t.remove())},autoplay:function(e){c.gallery.instance&&(c.gallery.instance.store.autoplay=e)},fit_content:function(e){var t;c.gallery.instance&&(c.gallery.instance.store.fit_content=e,(t=$("body > div.gallery-container > div.content-container > div.media > div.wrapper"))&&e?(t.addClass("fill"),c.store.refresh=!0,c.store.selected=null):t&&(t.removeClass("fill"),[".cover",".cover img","video"].forEach(function(e){return $(e).css({height:"",width:""})})))}}},options:{gather:function(e){var o={};return e.find(["select",'input[type="checkbox"]'].join(",")).each(function(e,t){var n,r;(t=$(t))[0].hasAttribute("name")&&(n=t.attr("name"),r=t[0].hasAttribute("data-key")?t.attr("data-key"):t.closest(".section").attr("data-key"),Object.prototype.hasOwnProperty.call(o,r)||(o[r]={}),t.is("select")?o[r][n]=t[0].selectedIndex:t.is('input[type="checkbox"]')&&(o[r][n]=t[0].checked))}),o},set:function(i,e){var a=(a=1 div.settings-container").length||(0===$("body > div.focus-overlay").length&&$("
",{class:"focus-overlay"}).appendTo($("body")).on("click",function(){return c.settings.close()}),e=$("
",{class:"settings-container"}),l=c.client.get(),t=[function(e,t){var n=0",{class:"wrapper"}).append(t.map(function(e){return 0",{class:"bottom"}).appendTo(e),$("
",{class:"apply ns",text:"Apply"}).appendTo(n).on("click",function(){return c.settings.apply(e,l)}),$("
",{class:"cancel ns",text:"Cancel"}).appendTo(n).on("click",function(){return c.settings.close()}),$("body").append(e),e.find("div.section > .option.interactable").on("mouseup",function(e){var t;window.getSelection().toString()||0<(t=$(e.currentTarget).find('input[type="checkbox"]')).length&&!$(e.target).is("input")&&(t[0].checked=!t[0].checked)}))}},menu:{create:function(){var n=$("
",{class:"menu"}).appendTo($("body")),e=[{text:"[Show] Filter",id:"filter"},{text:"[Copy] WGET",id:"copy"}];return!0===s.gallery.enabled&&0<$("body > table > tbody > tr.file > td > a.preview").length&&e.unshift({text:"[Open] Gallery",id:"gallery"}),c.settings.available()&&e.unshift({text:"[Open] Settings",id:"settings",class:"settings"}),e.forEach(function(e){var t=$("
",{text:e.text,class:"ns"+(Object.prototype.hasOwnProperty.call(e,"class")?" "+e.class:"")}).appendTo(n);Object.prototype.hasOwnProperty.call(e,"id")&&t.attr("id",e.id)}),n[0].addEventListener("click",function(e){"DIV"==e.target.tagName&&("gallery"==e.target.id&&!0===s.gallery.enabled?(c.gallery.load(null),c.menu.toggle(!1)):"copy"==e.target.id?(c.copyTextToClipboard(c.generateWget()),c.menu.toggle(!1)):"settings"==e.target.id?(c.settings.show(),c.menu.toggle(!1)):"filter"==e.target.id&&(c.filter.toggle(),c.menu.toggle()))}),n},toggle:function(e){var t=0 div.menu");return n.css("display","boolean"==typeof t?t?"inline-block":"none":n.is(":hidden")?"inline-block":"none"),$("body > .top-bar > div.extend").html(n.is(":hidden")?"▾":"▴"),n.is(":hidden")}},theme:{set:function(e,t){var n=0 link[rel="stylesheet"]').filter(function(e,t){return t.hasAttribute("href")&&t.getAttribute("href").match(new RegExp("/(themes)/","i"))});if(null===(s.style.themes.set=n)||!n)return o.each(function(e,t){return t.remove()}),!1;r&&c.client.set(c.client.get().style.theme=n),$("head").append($("",{rel:"stylesheet",type:"text/css",href:"".concat(s.style.themes.path,"/").concat(n,".css")})),o.each(function(e,t){return t.remove()})}},filter:{apply:function(e){var o=0 table > tbody > tr.file, body > table > tbody > tr.directory").each(function(e,t){if(t=$(t),!0===i.reset)return t[0].removeAttribute("hidden"),!0;var n,r=t.hasClass("file");try{a={valid:!0,data:t.find("td:eq(0)").attr("data-raw").match(new RegExp(o,"i"))}}catch(e){a={valid:!1,reason:e}}a.valid&&a.data?t[0].removeAttribute("hidden"):t[0].setAttribute("hidden",""),a.valid&&a.data&&r&&(n=t.find("td:eq(2)").attr("data-raw"),isNaN(n)||(i.size=i.size+parseInt(n))),a.valid&&a.data?r?i.shown.files++:i.shown.directories++:r?i.hidden.files++:i.hidden.directories++});var t={container:$("body > div.top-bar")};["size","files","directories"].forEach(function(e){return t[e]=t.container.find('[data-count="'.concat(e,'"]'))}),Object.prototype.hasOwnProperty.call(c.store.defaults,"top_values")||(c.store.defaults.top_values={size:t.size.text(),files:t.files.text(),directories:t.directories.text()}),t.size.text(i.reset?c.store.defaults.top_values.size:c.getReadableSize(i.size)),t.files.text(i.reset?c.store.defaults.top_values.files:"".concat(i.shown.files," file").concat(1===i.shown.files?"":"s")),t.directories.text(i.reset?c.store.defaults.top_values.directories:"".concat(i.shown.directories," ").concat(1===i.shown.directories?"directory":"directories"));var n,r=$("body > div.menu > #gallery"),l=$("body > table tr.file:visible a.preview").length,s=$("body > div.filter-container div.status");0 div.filter-container"),t=e.find('input[type="text"]');e.is(":visible")?e.hide():(t.val(""),c.filter.apply(null),e.show()),t.focus()}},dates:{format:function(e,t){function n(e,t){return c[e]?c[e]():t}function r(e,t){for(e=String(e);e.length table > tbody > tr.directory > td:nth-child(2), tbody tr.file > td[data-raw]:nth-child(2)").each(function(e,t){t=$(t);var r=parseInt(t.attr("data-raw")),n=function(e){if(0===e)return"Now";if(e<0)return!1;for(var t={year:31556926,month:2629743,week:604800,day:86e3,hour:3600,minute:60,second:1},n=Object.keys(t),r=n.length-1,o=!1,i=0;i"):t.find("> span");!0===a&&(s.format.date.forEach(function(e,t){var n;t<=1&&(n=$("",{text:c.dates.format(e,r)}),1 div.top-bar > .directory-info div[data-count="files"], \t\t\t\t\t\tbody > div.top-bar > .directory-info div[data-count="directories"]').each(function(e,t){(t=$(t))[0].hasAttribute("data-raw")&&$(t).attr("title","Newest: "+c.dates.format(s.format.date[0],parseInt(t.attr("data-raw"))))})}(e,n)}},sort:{load:function(){var e=document.querySelectorAll("table th span[sortable]");if(Object.prototype.hasOwnProperty.call(s,"sorting")&&s.sorting.enabled&&(0===s.sorting.types||1===s.sorting.types)){var t,n="asc"===s.sorting.order,r=null;switch(s.sorting.sort_by){case"name":r=0;break;case"modified":r=1;break;case"size":r=2;break;case"type":r=3;break;default:r=null}null===r||0<(t=$(e[r]).closest("th")).length&&(t[0].asc=n,t.find("> span.sort-indicator").addClass(n?"down":"up").fadeIn(350))}}},gallery:{instance:null,load:function(e){var t=0",t);var n=$("body > div.preview-container > video");if(c.gallery.instance&&!1!==c.gallery.instance){c.gallery.instance.store.continue.video=0 .filter-container"),func:c.filter.toggle},{e:$("body > div.menu"),func:c.menu.toggle}].forEach(function(e){0 table > tbody > tr.file > td:first-child > a.preview").forEach(function(e){var t=e.parentNode,n=t.parentNode;if(n.hasAttribute("hidden"))return!1;var r=e.getAttribute("href");void 0!==r&&"undefined"!=typeof name&&o.push({url:r,name:t.getAttribute("data-raw"),size:n.querySelector("td:nth-child(3)").innerHTML})}),o},events:{scroll:function(){var e=$("body > div.path"),t=$("body > div.top-bar > div.directory-info > div.quick-path");$(window).scrollTop()",{class:"quick-path","data-view":"desktop"}).html($("body > div.path").html()),$("body > div.top-bar > div.directory-info").append(t)),t.fadeIn(150).css("display","inline-block"))},sortTableColumn:function(e){var t=$(e).parent(),n=t.index(),r=$(e).is("th")?e:t[0],o=$("body > table"),i={directories:o.find("tbody > tr.directory").toArray(),files:o.find("tbody > tr.file").toArray()},a=Object.prototype.hasOwnProperty.call(s.sorting,"sort_by")&&(2===n||3===n);0!==s.sorting.types&&2!==s.sorting.types||a||i.directories.sort(c.comparer($(r).index())),0!==s.sorting.types&&1!==s.sorting.types||i.files.sort(c.comparer($(r).index())),r.asc=!r.asc,$("body > table > thead > tr > th span.sort-indicator").removeClass("up down"),t.find("> span.sort-indicator").addClass(r.asc?"down":"up").show();var l=c.client.get();l.sort.ascending=r.asc?1:0,l.sort.row=n,c.client.set(l),r.asc||(0!==s.sorting.types&&2!==s.sorting.types||a||(i.directories=i.directories.reverse()),0!==s.sorting.types&&1!==s.sorting.types||(i.files=i.files.reverse())),Object.keys(i).forEach(function(e){return i[e].forEach(function(e){return o.append(e)})}),c.store.refresh=!0,c.store.selected=null,$("body > table > tbody > tr.last").removeClass("last")}},bind:function(){$(document).off("keydown").on("keydown",function(t){var e;t.shiftKey&&70===t.keyCode?(t.preventDefault(),c.filter.toggle()):27===t.keyCode?c.overlay.hide(function(e){!0===e&&t.preventDefault()}):71===t.keyCode&&!0===s.gallery.enabled&&(!1!==(e=$("body > .filter-container")).is(":visible")&&e.find('input[type="text"]').is(":focus")||(c.gallery.load(null),c.menu.toggle(!1)))}),$(window).on("scroll",c.debounce(function(){c.events.scroll()}))}};$("body > div.top-bar > div.extend").on("click",function(e){c.menu.toggle(e.currentTarget)}),$("body > div.filter-container > div.close > span").on("click",function(){c.filter.toggle()}),$('body > div.filter-container > div input[type="text"]').on("input",function(e){var t=$(e.currentTarget);c.filter.apply(t.val())}),document.querySelector("body > table").addEventListener("click",function(e){var t;"SPAN"==e.target.tagName&&e.target.hasAttribute("sortable")?c.events.sortTableColumn(e.target):"A"==e.target.tagName&&"preview"==e.target.className&&!0===s.gallery.enabled&&(e.preventDefault(),t=$(e.target).closest("table").find("tr.file:visible").filter(function(e,t){return 0<$(t).find("a.preview").length}).index($(e.target).closest("tr.file")),c.gallery.load(-1!==t?t:0))},!0),window.addEventListener("resize",c.debounce(function(){s.debug&&console.log("resized"),s.mobile=Modernizr.mq("(max-width: 640px)"),c.gallery.instance&&(c.gallery.instance.store.mobile=s.mobile,c.gallery.instance.update.listWidth())})),$(document).ready(function(){var n,e;c.bind(),c.dates.load(),$('body > .filter-container > input[type="text"]').val(""),s.mobile=Modernizr.mq("(max-width: 640px)"),c.menu.create().css({top:$("body > div.top-bar").innerHeight()+"px",visibility:"unset",display:"none"}),!1===s.mobile&&!0===s.preview.enabled&&(document.querySelectorAll("body > table tr.file > td > a.preview").forEach(function(e,t){e.itemIndex=t}),n={},0<(e=$("body").find("> table tr.file > td > a.preview")).length&&(n[e[0].itemIndex]=window.hoverPreview(e[0],{delay:s.preview.hover_delay,cursor:s.preview.cursor_indicator,encodeAll:!0})),document.querySelector("body > table").addEventListener("mouseenter",function(e){var t;"A"==e.target.tagName&&"preview"==e.target.className&&(t=e.target.itemIndex,Object.prototype.hasOwnProperty.call(n,t)||(n[t]=window.hoverPreview(e.target,{delay:s.preview.hover_delay,cursor:s.preview.cursor_indicator,encodeAll:!0})))},!0)),c.events.scroll()}),c.client.get(),c.sort.load(),s.debug&&console.log("config",s)}(); \ No newline at end of file