1jQuery(document).ready(function ($) { 2 3 //ADD DOWNLOAD LINK TO MP3's 4 setTimeout(function(){ 5 if($(".mejs-container").length > 0){ 6 var mp3 = $(".mejs-container").find(".wp-audio-shortcode").attr("src"); 7 var download = $("<a>").attr({"href": mp3, "target": "_blank"}).html("Download"); 8 var openWin = $("<a>").attr({"href": "#"}).html("Open In Window").on("click", function(){ 9 return openWindow($(".mejs-container").html(),mp3); 10 }); 11 var separator = " | "; 12 13 $(".mejs-container") 14 .after(openWin) 15 .after(separator) 16 .after(download) 17 } 18 },100); 19 20 // if($("body").hasClass("pmpro-checkout")){ 21 // $(".gateway_braintree .pmpro_radio").html($("<div>").addClass("pf pf-credit-card").append($("<span>").html("Credit Card"))); 22 // $(".gateway_paypalexpress .pmpro_radio").html($("<div>").addClass("pf pf-paypal")); 23 // } 24 25 function openWindow(html,href){ 26 window.open(href, "Title", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=200, top="+(screen.height-400)+", left="+(screen.width-840)); 27 //win.document.body.innerHTML = html; 28 return false; 29 } 30 31 32 /*mobile menu start*/ 33 $(document).on('click', '.menu-toggle', function(e){ 34 $('.menu-item-has-children > a').click(function (e) { 35 e.preventDefault(); 36 var parentElement = $(this).closest('.menu-item'); 37 var parentLink = $(this).attr('href'); 38 var parentElementText = $(this).text(); 39 var genratedParentLink = '<li class="menu item parent-link"><a href="'+parentLink+'">'+parentElementText+'</a></li>' 40 if(parentElement.hasClass("active")) { 41 parentElement.removeClass("active"); 42 parentElement.find('.parent-link').remove(); 43 } else { 44 parentElement.addClass("active"); 45 parentElement.find('.sub-menu').prepend(genratedParentLink) 46 } 47 }); 48 }) 49 /*mobile menu end*/ 50 /* mobile footer start */ 51 //if($(window).width() < 767 ){ 52 $(document).on('click','.footer-widget-content .elementor-widget-wrap > .elementor-widget-heading', function(){ 53 $(this).closest('.elementor-widget-wrap').toggleClass('active') 54 }) 55 // } 56 /* mobile footer end */ 57 58});
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.