1(function($) { 2 $(document).ready(function() { 3 waitForElm('#addy_in_radius #radiusSelect').then((elm) => { 4 console.log('Radius is ready'); 5 $(elm).children('option').prepend('Within '); 6 }); 7 waitForElm('.results_wrapper').then((elm) => { 8 console.log('Element is ready'); 9 $('.slp_location.notes').prepend('<span class="results-notes>"Notes:</span> <br/>'); 10 $('.results_line.location_iconarray').each(function(){ 11 var specialty = $(this).find('img').attr('alt'); 12 $(this).find('img').replaceWith('<span class="results-specialty">Specialty:</span> '+ specialty); 13 }); 14 15 }); 16 17 function waitForElm(selector) { 18 return new Promise(resolve => { 19 if (document.querySelector(selector)) { 20 return resolve(document.querySelector(selector)); 21 } 22 23 const observer = new MutationObserver(mutations => { 24 if (document.querySelector(selector)) { 25 resolve(document.querySelector(selector)); 26 observer.disconnect(); 27 } 28 }); 29 30 observer.observe(document.body, { 31 childList: true, 32 subtree: true 33 }); 34 }); 35 } 36 37 // Select the target node. 38 var target = document.querySelector('#map_sidebar') 39 40 // Create an observer instance. 41 var observer = new MutationObserver(function(mutations) { 42 console.log('changed'); 43 $('.slp_location.notes').prepend('<span class="results-notes">Notes:</span> <br/>'); 44 $('.results_line.location_iconarray').each(function(){ 45 var specialty = $(this).find('img').attr('alt'); 46 $(this).find('img').replaceWith('<span class="results-specialty">Specialty:</span> '+ specialty); 47 }); 48 49 $('.more-details .content .details').each(function(){ 50 if($(this).css('display') == 'none'){ 51 $(this).parent().css('display', 'none'); 52 } else{ 53 $(this).closest('.more-details').css('display', 'block'); 54 } 55 }); 56 $('.more-details .more-details-title label').click(function(){ 57 $(this).closest('.more-details').find('input[type="checkbox"]').toggleClass('checked'); 58 }); 59 60 observer.disconnect(); 61 }); 62 63 // Pass in the target node, as well as the observer options. 64 $('#addressSubmit').click(function(){ 65 observer.observe(target, { 66 attributes: true, 67 childList: true, 68 characterData: true 69 }); 70 }); 71 72 var print_icon = '<div class="uabb-social-share-link-wrap">' + 73 '<a class="uabb-social-share-link uabb-social-share-4" href="?print" target="_blank">' + 74 '<div class="uabb-module-content uabb-imgicon-wrap">' + 75 '<span class="uabb-icon-wrap">' + 76 '<span class="uabb-icon"><i class="ua-icon ua-icon-icon-124-printer-text2" aria-hidden="true"></i></span>' + 77 '</span>' + 78 '</div></a>' + 79 '</div>'; 80 $('.uabb-social-share-wrap').append(print_icon); 81 82 //hide empty related posts 83 if($('div.related-posts > div > div').hasClass('fl-post-grid-empty') && !$('body').hasClass('fl-theme-layout-template-default')){ 84 $('.related-posts-separator, .related-posts-title, .related-posts').hide(); 85 } 86 87 $('.stay-informed a').prepend('<i class="fas fa-envelope-open" aria-hidden="true"></i>'); 88 $('.search a#flsearchform').append('<span class="menu-item-text">Search</span>'); 89 $('.my-login a').prepend('<i class="fas fa-user-alt" aria-hidden="true"></i>'); 90 91 $('#addressInput').attr('size',20); 92 93 $('.slp_search_container #addressInput').attr('placeholder', 'Zip Code'); 94 95 //replaceSearchResults1(); 96 //replaceSearchResults2(); 97 // $('#addressSubmit').click(function(){ 98 // waitForElm('.results_wrapper').then((elm) => { 99 // console.log('Element is ready'); 100 // $('.slp_location.notes').prepend('NOTES: <br/>'); 101 // $('.results_line.location_iconarray').each(function(){ 102 // var specialty = $(this).find('img').attr('alt'); 103 // $(this).find('img').replaceWith('Specialty: '+ specialty); 104 // }); 105 // }); 106 // }); 107 108 if($.trim($(".single-tribe_events #venue .fl-node-content").html())==''){ 109 console.log('empty'); 110 $('#venue .fl-node-content').closest('.fl-row').css({'display': 'none'}); 111 } 112 113 waitForElm('#daf_link.daf-button-link br').then((elm) => { 114 console.log("br exists"); 115 $(elm).replaceWith(" "); 116 117 }); 118 119 120 }) 121})(jQuery);
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.