Mini Shell

Direktori : /var/www/vhosts/ccp.ac.th/backup_full/httpdocs/english/js/
Upload File :
Current File : /var/www/vhosts/ccp.ac.th/backup_full/httpdocs/english/js/main.min.js

!function(){"use strict";var e={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 e.Android()||e.BlackBerry()||e.iOS()||e.Opera()||e.Windows()}},t=function(){jQuery(".js-backtotop").on("click",function(e){e.preventDefault(),jQuery("html, body").animate({scrollTop:jQuery("body").offset().top},700,"easeInOutExpo")})},o=function(){jQuery(".js-btn-more").on("click",function(e){e.preventDefault(),jQuery(".probootstrap-header-top").toggleClass("active")})},n=function(){jQuery(".js-probootstrap-search").on("click",function(){jQuery("#probootstrap-search").addClass("active"),setTimeout(function(){jQuery("#probootstrap-search").find("#search").focus().select()},500)}),jQuery(".js-probootstrap-close").on("click",function(){jQuery("#probootstrap-search").removeClass("active")})},a=function(){e.any()||jQuery(".probootstrap-navbar .navbar-nav li.dropdown").hover(function(){jQuery(this).find("> .dropdown-menu").stop(!0,!0).delay(200).fadeIn(500).addClass("animated-fast fadeInUp")},function(){jQuery(this).find("> .dropdown-menu").stop(!0,!0).fadeOut(200).removeClass("animated-fast fadeInUp")})},i=function(){var e=jQuery(".owl-carousel-carousel");e.owlCarousel({items:3,loop:!0,margin:20,nav:!1,dots:!0,smartSpeed:800,autoHeight:!0,navText:["<i class='icon-keyboard_arrow_left owl-direction'></i>","<i class='icon-keyboard_arrow_right owl-direction'></i>"],responsive:{0:{items:1},400:{items:1},600:{items:2},1e3:{items:3}}}),(e=jQuery(".owl-carousel-fullwidth")).owlCarousel({items:1,loop:!0,margin:20,nav:!1,dots:!0,smartSpeed:800,autoHeight:!0,autoplay:!0,navText:["<i class='icon-keyboard_arrow_left owl-direction'></i>","<i class='icon-keyboard_arrow_right owl-direction'></i>"]}),(e=jQuery(".owl-work")).owlCarousel({stagePadding:150,loop:!0,margin:20,nav:!0,dots:!1,mouseDrag:!1,autoWidth:!0,autoHeight:!0,autoplay:!0,autoplayTimeout:2e3,autoplayHoverPause:!0,navText:["<i class='icon-chevron-thin-left'></i>","<i class='icon-chevron-thin-right'></i>"],responsive:{0:{items:1,stagePadding:10},500:{items:2,stagePadding:20},600:{items:2,stagePadding:40},800:{items:2,stagePadding:100},1100:{items:3},1400:{items:4}}})},r=function(){function e(e){e.owlCarousel({items:3,loop:!0,margin:20,nav:!1,dots:!0,smartSpeed:800,autoHeight:!0,navText:["<i class='icon-keyboard_arrow_left owl-direction'></i>","<i class='icon-keyboard_arrow_right owl-direction'></i>"],responsive:{0:{items:1},400:{items:1},600:{items:2},1e3:{items:3}}})}function t(e){e.trigger("destroy.owl.carousel"),e.find(".owl-stage-outer").children(":eq(0)").unwrap()}e(jQuery("#owl1")),jQuery('a[href="#featured-news"]').on("shown.bs.tab",function(){e(jQuery("#owl1")),console.log("nice")}).on("hide.bs.tab",function(){t(jQuery("#owl1"))}),jQuery('a[href="#upcoming-events"]').on("shown.bs.tab",function(){e(jQuery("#owl2")),console.log("nice")}).on("hide.bs.tab",function(){t(jQuery("#owl2"))})},s=function(){jQuery(".flexslider").flexslider({animation:"fade",prevText:"",nextText:"",slideshow:!0})},u=function(){jQuery(".probootstrap-showcase-nav ul li a").on("click",function(e){var t=jQuery(this),o=t.closest("li").index();t.closest(".probootstrap-feature-showcase").find(".probootstrap-showcase-nav ul li").removeClass("active"),t.closest("li").addClass("active"),t.closest(".probootstrap-feature-showcase").find(".probootstrap-images-list li").removeClass("active"),t.closest(".probootstrap-feature-showcase").find(".probootstrap-images-list li").eq(o).addClass("active"),e.preventDefault()})},l=function(){var e=0;jQuery(".probootstrap-animate").waypoint(function(t){"down"!==t||jQuery(this.element).hasClass("probootstrap-animated")||(e++,jQuery(this.element).addClass("item-animate"),setTimeout(function(){jQuery("body .probootstrap-animate.item-animate").each(function(e){var t=jQuery(this);setTimeout(function(){var e=t.data("animate-effect");"fadeIn"===e?t.addClass("fadeIn probootstrap-animated"):"fadeInLeft"===e?t.addClass("fadeInLeft probootstrap-animated"):"fadeInRight"===e?t.addClass("fadeInRight probootstrap-animated"):t.addClass("fadeInUp probootstrap-animated"),t.removeClass("item-animate")},50*e,"easeInOutExpo")})},100))},{offset:"95%"})},c=function(e){for(var t=function(e){for(var t,o,n,a,i=e.childNodes,r=i.length,s=[],u=0;u<r;u++)1===(t=i[u]).nodeType&&(n=(o=t.children[0]).getAttribute("data-size").split("x"),a={src:o.getAttribute("href"),w:parseInt(n[0],10),h:parseInt(n[1],10)},t.children.length>1&&(a.title=t.children[1].innerHTML),o.children.length>0&&(a.msrc=o.children[0].getAttribute("src")),a.el=t,s.push(a));return s},o=function e(t,o){return t&&(o(t)?t:e(t.parentNode,o))},n=function(e,o,n,a){var i,r,s=document.querySelectorAll(".pswp")[0];if(r=t(o),i={galleryUID:o.getAttribute("data-pswp-uid"),getThumbBoundsFn:function(e){var t=r[e].el.getElementsByTagName("img")[0],o=window.pageYOffset||document.documentElement.scrollTop,n=t.getBoundingClientRect();return{x:n.left,y:n.top+o,w:n.width}}},a)if(i.galleryPIDs){for(var u=0;u<r.length;u++)if(r[u].pid==e){i.index=u;break}}else i.index=parseInt(e,10)-1;else i.index=parseInt(e,10);isNaN(i.index)||(n&&(i.showAnimationDuration=0),new PhotoSwipe(s,PhotoSwipeUI_Default,r,i).init())},a=document.querySelectorAll(e),i=0,r=a.length;i<r;i++)a[i].setAttribute("data-pswp-uid",i+1),a[i].onclick=function(e){(e=e||window.event).preventDefault?e.preventDefault():e.returnValue=!1;var t=e.target||e.srcElement,a=o(t,function(e){return e.tagName&&"FIGURE"===e.tagName.toUpperCase()});if(a){for(var i,r=a.parentNode,s=a.parentNode.childNodes,u=s.length,l=0,c=0;c<u;c++)if(1===s[c].nodeType){if(s[c]===a){i=l;break}l++}return i>=0&&n(i,r),!1}};var s=function(){var e=window.location.hash.substring(1),t={};if(e.length<5)return t;for(var o=e.split("&"),n=0;n<o.length;n++)if(o[n]){var a=o[n].split("=");a.length<2||(t[a[0]]=a[1])}return t.gid&&(t.gid=parseInt(t.gid,10)),t}();s.pid&&s.gid&&n(s.pid,a[s.gid-1],!0,!0)},d=function(){if(jQuery(".portfolio-feed").length>0){var e=jQuery(".portfolio-feed");e.imagesLoaded(function(){e.isotope({itemSelector:".grid-item",percentPosition:!0,masonry:{columnWidth:".grid-sizer",gutter:".gutter-sizer"}})})}},p=function(){jQuery(".js-counter").countTo({formatter:function(e,t){return e.toFixed(t.decimals)}})},f=function(){jQuery("#probootstrap-counter").length>0&&jQuery("#probootstrap-counter").waypoint(function(e){"down"!==e||jQuery(this.element).hasClass("probootstrap-animated")||(setTimeout(p,400),jQuery(this.element).addClass("probootstrap-animated"))},{offset:"90%"})},m=function(){jQuery(".image-popup").magnificPopup({type:"image",removalDelay:300,mainClass:"mfp-with-zoom",gallery:{enabled:!0},zoom:{enabled:!0,duration:300,easing:"ease-in-out",opener:function(e){return e.is("img")?e:e.find("img")}}}),jQuery(".with-caption").magnificPopup({type:"image",closeOnContentClick:!0,closeBtnInside:!1,mainClass:"mfp-with-zoom mfp-img-mobile",image:{verticalFit:!0,titleSrc:function(e){return e.el.attr("title")+' &middot; <a class="image-source-link" href="'+e.el.attr("data-source")+'" target="_blank">image source</a>'}},zoom:{enabled:!0}}),jQuery(".popup-youtube, .popup-vimeo, .popup-gmaps").magnificPopup({disableOn:700,type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:!1,fixedContentPos:!1})};jQuery(document).ready(function(){a(),u(),l(),jQuery(".probootstrap-gallery").length>0&&c(".probootstrap-gallery"),d(),f(),r(),t(),n(),o(),m()}),jQuery(window).load(function(){i(),s()})}();

Zerion Mini Shell 1.0