1/* 2 3[TABLE OF CONTENTS] 4 501. Main Navigation 602. FitVids 703. Mobile Navigation 804. FlexSlider 905. Scroll to Top 1006. prettyPhoto 1107. Fixed Navigation 1208. One Page Navigation 1309. Comments Scroll 1410. Media Player 1511. Match Height 1612. jQuery Modal 1713. Header Search 18 19*/ 20 21 22 23 24jQuery(document).ready(function($) { 25 'use strict'; 26 27 28 29/* 30============= 01. Main Navigation ============= 31*/ 32 jQuery('.secondline-themes-one-page-nav-off nav#site-navigation ul.sf-menu').superfish({ 33 popUpSelector: 'ul.sub-menu,.sf-mega', // within menu context 34 delay: 200, // one second delay on mouseout 35 speed: 0, // faster \ speed 36 speedOut: 200, // speed of the closing animation 37 animation: {opacity: 'show'}, // animation out 38 animationOut: {opacity: 'hide'}, // adnimation in 39 cssArrows: true, // set to false 40 autoArrows: true, // disable generation of arrow mark-up 41 disableHI: true, 42 }); 43 44 45 46/* 47============= 02. . FitVids ============= 48*/ 49 $("#content-slt, #blog-post-title-meta-container .single-player-container-secondline.embed-player-single-slt .single-video-secondline").fitVids(); 50 51/* 52============= 03. Mobile Navigation ============= 53*/ 54 55 $('ul.mobile-menu-slt').slimmenu({ 56 resizeWidth: '1024', 57 collapserTitle: 'Menu', 58 easingEffect:'easeInOutQuint', 59 animSpeed:350, 60 indentChildren: false, 61 childrenIndenter: '- ' 62 }); 63 64 65 $('.mobile-menu-icon-slt').on("click", function(e){ 66 e.preventDefault(); 67 $('#main-nav-mobile').slideToggle(350); 68 $("#masthead-slt").toggleClass("active-mobile-icon-slt"); 69 }); 70 71 72 73 74/* 75============= 04. FlexSlider ============= 76*/ 77 $('.secondline-gallery').flexslider({ 78 animation: "fade", 79 slideDirection: "horizontal", 80 slideshow: false, 81 smoothHeight: false, 82 slideshowSpeed: 7000, 83 animationSpeed: 1000, 84 directionNav: true, 85 controlNav: true, 86 prevText: "", 87 nextText: "", 88 }); 89 90 91/* 92============= 05. Scroll to Top ============= 93*/ 94 // browser window scroll (in pixels) after which the "back to top" link is shown 95 var offset = 150, 96 97 //browser window scroll (in pixels) after which the "back to top" link opacity is reduced 98 offset_opacity = 1200, 99 100 //duration of the top scrolling animation (in ms) 101 scroll_top_duration = 700; 102 103 104 /* Scroll to link inside page */ 105 $('a.scroll-to-link').on("click", function(){ 106 $('html, body').animate({ 107 scrollTop: $( $.attr(this, 'href') ).offset().top - slt_top_offset 108 }, 400); 109 return false; 110 }); 111 112 113/* 114============= 06. prettyPhoto ============= 115*/ 116 117 $("#secondline-woocommerce-single-top a[data-rel^='prettyPhoto'], .secondline-elements-slider-background a[data-rel^='prettyPhoto'], #page-title-slt-post-page a[data-rel^='prettyPhoto'], .secondline-themes-default-blog-overlay a[data-rel^='prettyPhoto'], .secondline-themes-image-grid a[data-rel^='prettyPhoto'], .secondline-featured-image a[data-rel^='prettyPhoto']").prettyPhoto({ 118 theme: 'pp_default', /* light_rounded / dark_rounded / light_square / dark_square / facebook */ 119 hook: 'data-rel', 120 opacity: 0.7, 121 show_title: false, /* true/false */ 122 deeplinking: false, /* Allow prettyPhoto to update the url to enable deeplinking. */ 123 overlay_gallery: false, /* If set to true, a gallery will overlay the fullscreen image on mouse over */ 124 custom_markup: '', 125 default_width: 1100, 126 default_height: 619, 127 social_tools: '' /* html or false to disable */ 128 }); 129 130 131 $("a.lightbox, .lightbox a").prettyPhoto({ 132 theme: 'pp_default', /* light_rounded / dark_rounded / light_square / dark_square / facebook */ 133 hook: 'class', 134 opacity: 0.7, 135 show_title: false, /* true/false */ 136 deeplinking: false, /* Allow prettyPhoto to update the url to enable deeplinking. */ 137 overlay_gallery: false, /* If set to true, a gallery will overlay the fullscreen image on mouse over */ 138 custom_markup: '', 139 default_width: 1100, 140 default_height: 619, 141 social_tools: '' /* html or false to disable */ 142 }); 143 144 145 146/* 147============= 07. Fixed Navigation ============= 148*/ 149 150 var slt_top_offset = $('header#masthead-slt').height(); // get height of fixed navbar 151 152 var slt_top_offset_sidebar = $('#secondline-fixed-nav').height() + 30 ; 153 154 155 $('#secondline-fixed-nav').scrollToFixed({ minWidth: 959 }); 156 157 $(window).resize(function() { 158 var width_secondline = $(document).width(); 159 if (width_secondline > 959) { 160 /* STICKY HEADER CLASS */ 161 $(window).on('load scroll resize orientationchange', function () { 162 163 var scroll = $(window).scrollTop(); 164 if (scroll >= slt_top_offset - 1 ) { 165 $("#secondline-fixed-nav").addClass("secondline-fixed-scrolled"); 166 } else { 167 $("#secondline-fixed-nav").removeClass("secondline-fixed-scrolled"); 168 } 169 }); 170 } else { 171 $('#secondline-fixed-nav').trigger('detach.ScrollToFixed'); 172 } 173 174 }).resize(); 175 176 177 178/* 179============= 08. One Page Navigation ============= 180*/ 181 182 183/* 184============= 09. Comments Scroll ============= 185*/ 186 $("#page-title-slt-post-page .blog-meta-comments").on("click", function(){ 187 $('html, body').animate({scrollTop: $("#comments").offset().top - 140}, 600); 188 }); 189 190 191 // Meta seperator fix // 192 $('body .secondline-post-meta').each(function() { 193 $(this).find('span:visible:last').addClass('secondline-visible-last'); 194 }); 195 196 197 198 199/* 200============= 10. Media Player ============= 201*/ 202 203 // Remove border from play button on small areas // 204 $('body .mejs-container').each(function() { 205 var playerwidth = $(this).width(); 206 if(playerwidth < 300) { 207 $(this).find('.mejs-controls .mejs-playpause-button').css('border', 'none'); 208 $(this).find('.mejs-controls .mejs-playpause-button').css('padding-left', '0'); 209 $(this).find('.mejs-controls .mejs-playpause-button').css('margin-left', '-10px'); 210 $(this).find('.mejs-controls .mejs-horizontal-volume-total').css('max-width', '25px'); 211 } 212 }); 213 214
215 $('body .post-list-player-container-secondline').each(function() { 216 var playerwidth = $(this).width(); 217 if(playerwidth < 585) { 218 $(this).find('.mejs-container').css('cssText', 'width: 100% !important'); 219 $(this).find('.powerpress_links_mp3, .podcast_meta').css('cssText', 'top: 40px !important'); 220 } 221 }); 222 223 224/* 225============= 11. Match Height ============= 226*/ 227 228 229 $("body.archive .secondline-themes-isotope-animation, body.search .secondline-themes-isotope-animation, body.single-secondline_shows .secondline-themes-isotope-animation").css("opacity", '1'); 230 231 $('body .mc4wp-form-fields input').matchHeight({byRow: true,}); 232 233 234 235/* 236============= 12. jQuery Modal ============= 237*/ 238 239 240$('.single-show-subscribe-slt').on("click", function() { 241 $("#secondline-subs-modal").modal({ 242 fadeDuration: 250, 243 closeText: '', 244 }); 245 return false; 246}); 247 248 249 250 251 252/* 253============= 13. Header Search ============= 254*/ 255 256var hidesearch = false; 257var clickOrTouch = (('ontouchend' in window)) ? 'touchend' : 'click'; 258 259$("#secondline-themes-header-search-icon i.fa-search").on(clickOrTouch, function(e) { 260 var clicks = $(this).data('clicks'); 261 if (clicks) { 262 $("#secondline-themes-header-search-icon").removeClass("active-search-icon-slt"); 263 $("#secondline-themes-header-search-icon").addClass("hide-search-icon-slt"); 264 265 } else { 266 $("#secondline-themes-header-search-icon").addClass("active-search-icon-slt"); 267 $("#secondline-themes-header-search-icon").removeClass("hide-search-icon-slt"); 268 } 269 $(this).data("clicks", !clicks); 270}); 271 272 273 if ($(this).width() > 959) { 274 $("#secondline-shopping-cart-toggle").hover(function(){ 275 if (hidecart) clearTimeout(hidecart); 276 $("#secondline-shopping-cart-toggle").addClass("activated-class").removeClass("hover-out-class"); 277 }, function() { 278 hidecart = setTimeout(function() { 279 $("#secondline-shopping-cart-toggle").removeClass("activated-class").addClass("hover-out-class"); 280 }, 100); 281 }); 282 283 } 284 285 286/* 287============= END ============= 288*/ 289});
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.