1/* Table of Contents 201. MENU ACTIVATION 302. FITVIDES RESPONSIVE VIDEOS 403. MOBILE MENU 504. GALLERY JS 605. SCROLL TO TOP MENU JS 706. prettyPhoto JS 807. PRELOADER JS 908. STICKY HEADER JS 1009. ONE PAGE NAVIGATION JS 1110. SHOW/HIDE CART AND SEARCH 1211. BLOG SINGLE SCROLL JS 13*/ 14 15jQuery(document).ready(function($) { 16 'use strict'; 17 18/* 19=============================================== 01. MENU ACTIVATION =============================================== 20*/ 21 jQuery('.progression-studios-one-page-nav-off nav#site-navigation ul.sf-menu, #progression-header-top-left-container ul.sf-menu, #progression-header-top-right-container ul.sf-menu').superfish({ 22 popUpSelector: 'ul.sub-menu,.sf-mega', // within menu context 23 delay: 200, // one second delay on mouseout 24 speed: 0, // faster \ speed 25 speedOut: 200, // speed of the closing animation 26 animation: {opacity: 'show'}, // animation out 27 animationOut: {opacity: 'hide'}, // adnimation in 28 cssArrows: true, // set to false 29 autoArrows: true, // disable generation of arrow mark-up 30 disableHI: true, 31 }); 32 33 34 35/* 36=============================================== 02. FITVIDES RESPONSIVE VIDEOS =============================================== 37*/ 38 $(".progression-studios-slider-video-embed, #page-title-pro-post-page.progression-studios-embedded-video-single, #content-pro").fitVids(); 39 40 41/* 42=============================================== 03. MOBILE MENU =============================================== 43*/ 44 45 $('ul.mobile-menu-pro').slimmenu({ 46 resizeWidth: '960', 47 collapserTitle: 'Menu', 48 easingEffect:'easeInOutQuint', 49 animSpeed:350, 50 indentChildren: false, 51 childrenIndenter: '- ' 52 }); 53 54 55 $('.mobile-menu-icon-pro').click(function(e){ 56 e.preventDefault(); 57 $('#main-nav-mobile').slideToggle(350); 58 $("#masthead-pro").toggleClass("active-mobile-icon-pro"); 59 }); 60 61 62 63 64/* 65=============================================== 04. GALLERY JS =============================================== 66*/ 67 $('.progression-studios-gallery').flexslider({ 68 animation: "fade", 69 slideDirection: "horizontal", 70 slideshow: false, 71 smoothHeight: false, 72 slideshowSpeed: 7000, 73 animationSpeed: 1000, 74 directionNav: true, 75 controlNav: true, 76 prevText: "", 77 nextText: "", 78 }); 79 80 81/* 82=============================================== 05. SCROLL TO TOP MENU JS =============================================== 83*/ 84 // browser window scroll (in pixels) after which the "back to top" link is shown 85 var offset = 150, 86 87 //browser window scroll (in pixels) after which the "back to top" link opacity is reduced 88 offset_opacity = 1200, 89 90 //duration of the top scrolling animation (in ms) 91 scroll_top_duration = 700, 92 93 //grab the "back to top" link 94 $back_to_top = $('#pro-scroll-top'); 95 96 //hide or show the "back to top" link 97 $(window).scroll(function(){ 98 ( $(this).scrollTop() > offset ) ? $back_to_top.addClass('cd-is-visible') : $back_to_top.removeClass('cd-is-visible cd-fade-out'); 99 if( $(this).scrollTop() > offset_opacity ) { 100 $back_to_top.addClass('cd-fade-out'); 101 } 102 }); 103 104 //smooth scroll to top 105 $back_to_top.on('click', function(event){ 106 event.preventDefault(); 107 $('body,html').animate({ 108 scrollTop: 0 , 109 }, scroll_top_duration 110 ); 111 }); 112 113 /* Scroll to link inside page */ 114 $('a.scroll-to-link').click(function(){ 115 $('html, body').animate({ 116 scrollTop: $( $.attr(this, 'href') ).offset().top - pro_top_offset 117 }, 400); 118 return false; 119 }); 120 121 122/* 123=============================================== 06. prettyPhoto JS =============================================== 124*/ 125 126 $(".woocommerce-product-gallery__wrapper a[data-rel^='prettyPhoto'], .progression-elements-slider-background a[data-rel^='prettyPhoto'], #page-title-pro-post-page a[data-rel^='prettyPhoto'], .progression-studios-default-blog-overlay a[data-rel^='prettyPhoto'], .progression-studios-image-grid a[data-rel^='prettyPhoto'], .progression-studios-feaured-image a[data-rel^='prettyPhoto']").prettyPhoto({ 127 theme: 'pp_default', /* light_rounded / dark_rounded / light_square / dark_square / facebook */ 128 hook: 'data-rel', 129 opacity: 0.7, 130 show_title: false, /* true/false */ 131 deeplinking: false, /* Allow prettyPhoto to update the url to enable deeplinking. */ 132 overlay_gallery: false, /* If set to true, a gallery will overlay the fullscreen image on mouse over */ 133 custom_markup: '', 134 default_width: 1100, 135 default_height: 619, 136 social_tools: '' /* html or false to disable */ 137 }); 138 139 140 $("a.lightbox, .lightbox a").prettyPhoto({ 141 theme: 'pp_default', /* light_rounded / dark_rounded / light_square / dark_square / facebook */ 142 hook: 'class', 143 opacity: 0.7, 144 show_title: false, /* true/false */ 145 deeplinking: false, /* Allow prettyPhoto to update the url to enable deeplinking. */ 146 overlay_gallery: false, /* If set to true, a gallery will overlay the fullscreen image on mouse over */ 147 custom_markup: '', 148 default_width: 1100, 149 default_height: 619, 150 social_tools: '' /* html or false to disable */ 151 }); 152 153 154/* 155=============================================== 07. PRELOADER JS =============================================== 156*/ 157 (function($) { 158 var didDone = false;
159 function done() { 160 if(!didDone) { 161 didDone = true; 162 $("#page-loader-pro").addClass('finished-loading'); 163 $("#boxed-layout-pro").addClass('progression-preloader-completed'); 164 } 165 } 166 var loaded = false; 167 var minDone = false; 168 //The minimum timeout. 169 setTimeout(function(){ 170 minDone = true; 171 //If loaded, fire the done callback. 172 if(loaded) { done(); } }, 400); 173 //The maximum timeout. 174 setTimeout(function(){ done(); }, 2000); 175 //Bind the load listener. 176 $(window).load(function(){ loaded = true; 177 if(minDone) { done(); } 178 }); 179 })(jQuery); 180 181 182/* 183=============================================== 08. STICKY HEADER JS =============================================== 184*/ 185 186 /* HEADER HEIGHT FOR SPACING OF ONE PAGE NAV AND STICKY HEADER */ 187 var pro_top_offset = $('header#masthead-pro').height(); // get height of fixed navbar 188 189 var pro_top_offset_sidebar = $('#progression-sticky-header').height() + 30 ; 190 191 192 $('#progression-sticky-header').scrollToFixed({ minWidth: 959 }); 193 194 $("#content-pro .sidebar.sticky-sidebar-progression").stick_in_parent({ 195 offset_top: pro_top_offset_sidebar 196 }); 197 198 $(window).resize(function() { 199 var width_progression = $(document).width(); 200 if (width_progression > 959) { 201 /* STICKY HEADER CLASS */ 202 $(window).on('load scroll resize orientationchange', function () { 203 204 var scroll = $(window).scrollTop(); 205 if (scroll >= pro_top_offset - 1 ) { 206 $("#progression-sticky-header").addClass("progression-sticky-scrolled"); 207 } else { 208 $("#progression-sticky-header").removeClass("progression-sticky-scrolled"); 209 } 210 }); 211 } else { 212 $('#progression-sticky-header').trigger('detach.ScrollToFixed'); 213 } 214 215 }).resize(); 216 217 218 219/* 220=============================================== 09. ONE PAGE NAVIGATION JS =============================================== 221*/ 222 var $nav = $('.progression-studios-one-page-nav #site-navigation'); 223 var $nav2 = $('.progression-studios-one-page-nav #main-nav-mobile'); 224 $nav.onePageNav({ 225 currentClass: 'current-menu-item', 226 scrollSpeed: 650, 227 scrollOffset: pro_top_offset, 228 scrollThreshold: 0.5, 229 filter: ':not(.external)', 230 easing: 'swing', 231 }); 232 233 $nav2.on('click', 'a', function(e) { 234 var currentPos = $(this).parent().prevAll().length; 235 $nav.find('li').eq(currentPos).children('a').trigger('click'); 236 e.preventDefault(); 237 }); 238 239 240/* 241=============================================== 10. SHOW/HIDE CART AND SEARCH =============================================== 242*/ 243 var hidesearch = false; 244 var hidecart = false; 245 var clickOrTouch = (('ontouchend' in window)) ? 'touchend' : 'click'; 246 247 $("#progression-studios-header-search-icon i.pe-7s-search").on(clickOrTouch, function(e) { 248 var clicks = $(this).data('clicks'); 249 if (clicks) { 250 $("#progression-studios-header-search-icon").removeClass("active-search-icon-pro"); 251 $("#progression-studios-header-search-icon").addClass("hide-search-icon-pro"); 252 253 } else { 254 $("#progression-studios-header-search-icon").addClass("active-search-icon-pro"); 255 $("#progression-studios-header-search-icon").removeClass("hide-search-icon-pro"); 256 } 257 $(this).data("clicks", !clicks); 258 }); 259 260 if ($(this).width() > 959) { 261 262 $("#progression-shopping-cart-toggle").hover(function(){ 263 if (hidecart) clearTimeout(hidecart); 264 $("#progression-shopping-cart-toggle").addClass("activated-class").removeClass("hover-out-class"); 265 }, function() { 266 hidecart = setTimeout(function() { 267 $("#progression-shopping-cart-toggle").removeClass("activated-class").addClass("hover-out-class"); 268 }, 100); 269 }); 270 271 } 272 273 274/* 275=============================================== 11. BLOG SINGLE SCROLL JS =============================================== 276*/ 277 $("#page-title-pro-post-page .blog-meta-comments").click(function(){ 278 $('html, body').animate({scrollTop: $("#comments").offset().top - 140}, 600); 279 }); 280 281 282});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.