1jQuery(document).ready(function($) { 2 3 "use strict"; 4 5 $('#masthead > .col-full').wrap('<div class="navbar-inner-wrapper"></div>'); 6 7 if( $('#masthead .above-navigation').length > 0 ){ 8 $('#masthead .site-branding').css('margin-bottom', '0'); 9 $('#masthead .sc-icons li a').css('color', $('.site-description').css('color')); 10 } 11 12 // Sticky Header 13 if($('body').hasClass('sp-header-sticky') && $('body').hasClass('fl-builder-edit') === false){ 14 $('#masthead').waypoint(function(direction) { 15 if (direction == 'down') { 16 $('.storefront-primary-navigation').hide().addClass('stuck').delay(200).slideDown(); 17 } 18 if (direction == 'up') { 19 $('.storefront-primary-navigation').removeClass('stuck'); 20 } 21 }, { 22 offset: '-25%' 23 }); 24 } 25 26 //Parallax 27 var parallaxBtnContent = $('.sph-hero-content p:last-child a').text(); 28 parallaxBtnContent = parallaxBtnContent.replace(' ', '<br/>'); 29 var parallaxBtnURL = $('.sph-hero-content p:last-child a').attr('href'); 30 $('.sph-hero-content p:last-child').remove(); 31 $('.sph-inner').append('<a class="mysph-btn" href="' + parallaxBtnURL + '"><div class="middle">' + parallaxBtnContent + '</div></a>'); 32 33 //WooCommerce Loop 34 $('ul.products li.product .woocommerce-LoopProduct-link').each(function(){ 35 $(this).find('img').removeAttr('width').removeAttr('height').removeAttr('srcset').removeAttr('sizes'); 36 $(this).find('img').wrap('<div class="product-thumbnail">'); 37 if($(this).find('span.price').length > 0){ 38 var productPrice = $(this).find('span.price').get(0).outerHTML; 39 $(this).find('span.price').remove(); 40 $(this).find('.product-thumbnail').after(productPrice); 41 } 42 $(this).closest('li').find('a.button').removeClass('button').addClass('btn-special'); 43 }); 44 45 //Single Product Page 46 $('.single_add_to_cart_button').removeClass('button').addClass('btn-special'); 47 $('#respond .form-submit input[type="submit"]').addClass('btn-special'); 48 setTimeout(function(){ 49 if($('.woocommerce-product-gallery__trigger').length > 0 && $('.flex-viewport').length > 0) { 50 $('.flex-viewport').prepend($('.woocommerce-product-gallery__trigger').get(0)); 51 } 52 }, 100); 53 //Shop by Category 54 $('.storefront-product-categories ul.products li.product').each(function(){ 55 var productCategoryURL = $(this).find('a').attr('href'); 56 var productCategoryImgSRC = $(this).find('img').attr('src'); 57 var productCategoryTitle = $(this).find('h2').text().trim(); 58 var productCategoryDescription = $(this).find('.category-description').text().trim(); 59 var productCategoryImgExtension = productCategoryImgSRC.split('.').pop(); 60 var sliceCut = -13; 61 switch(productCategoryImgExtension){ 62 case 'png': 63 case 'jpg': 64 case 'gif': 65 sliceCut = -12; 66 break; 67 case 'jpeg': 68 sliceCut = -13; 69 break; 70 default: 71 sliceCut = -13; 72 break; 73 } 74 $(this).empty(); 75 $(this).append('<div class=myshbc-box><div class="img-box"><img src="' + productCategoryImgSRC + '"><div class=text-box><h5>' + productCategoryTitle + '</h5><div class=title-line></div><div class="clearfix"></div><br><p>' + productCategoryDescription + '</p><br><a class="btn-special" href="' + productCategoryURL + '">View More</a></div></div></div>'); 76 }); 77 78 //Footer bar 79 $('.sfb-footer-bar .widget_text .textwidget').wrapInner('<div class="text">').wrapInner('<div class="promotion-box">'); 80 81 //Footer 82 $('.site-footer div').first().removeClass('col-full').addClass('row footer-area'); 83 $('.site-footer .footer-widgets').wrap('<div class="col-full">'); 84 $('.site-footer .site-info').wrap('<div class="row copyright">').wrap('<div class="col-full">'); 85 86 //Adding Back to top button into DOM 87 $('.site-footer').append('<a class="scroll-top"><i class="fa fa-angle-double-up"></i></a>'); 88 89 //Load Back to top button and functionality 90 scroll(); 91 92 //Back to top 93 function scroll() { 94 $(window).scroll(function() { 95 $(this).scrollTop() > 300 ? $(".scroll-top").fadeIn() : $(".scroll-top").fadeOut() 96 }), $(".scroll-top").click(function() { 97 return $("html, body").animate({ 98 scrollTop: 0 99 }, 800), !1 100 }) 101 } 102 103 if($('.sticker').length > 0){ 104 $('.sticker').each(function(){ 105 $(this).stick_in_parent({ 106 offset_top: 20 107 }); 108 }); 109 } 110 111 document.documentElement.style.overflowX = 'hidden'; 112 113 jQuery(".single-product #content").before("<div style='background-color:#001645;'><div class='logoRow'><p style='text-align:right;'><img src='/wp-content/uploads/2018/04/1BusinessWorld_blue.jpg' width='375px'/></p></div></div>"); 114 115 116 jQuery("input.search-field").attr('placeholder', 'ð Search...'); 117});
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.