1jQuery(document).ready(function($) { 2 maybeFixHeader(); 3 reInitSASlider(); 4 5 jQuery( document ).find("table.member-table tr").on( "click", "td", function() { 6 var $this_name_col = false; 7 var $this = jQuery(this); 8 var $this_name_siblings = $this.siblings('td.name') 9 10 if($this_name_siblings.length==0 && $this.hasClass('name')){ 11 $this_name_col = $this; 12 }else if($this_name_siblings.length==1){ 13 $this_name_col = $this_name_siblings; 14 } 15 16 if($this_name_col){ 17 var $link = $this_name_col.children('a.profile-link'); 18 if($link.attr('href')!=''){ 19 $link.trigger('click'); 20 } 21 } 22 23 }); 24 25 jQuery( document ).find(".member-table-search").on("keyup", function() { 26 clearMTFilterInputs(); 27 //removeMTFilterClasses(); 28 var value = jQuery(this).val().toLowerCase(); 29 30 jQuery( document ).find("table.member-table tbody tr").filter(function() { 31 jQuery(this).toggle(jQuery(this).text().toLowerCase().indexOf(value) > -1) 32 }); 33 34 applyMTFilters(); 35 36 updateVisibleCount(); 37 38 }); 39 40 jQuery(document).find(".filter.member-table-filter div.form-check input").on("change", function() { 41 applyMTFilters(); 42 43 updateVisibleCount(); 44 }); 45 46 if(jQuery( document ).find("table.member-table").length>0){ 47 applyMTFilters(); 48 } 49 50 jQuery( document ).find('.coach-profile-section').addClass('d-none'); 51 var $i= 0; 52 53 jQuery( document ).find('.coach-profile-section').each(function() { $i++; 54 var $this_container = jQuery(this); 55 var $this_empty = true; 56 $this_container.find(".gg_wa").each(function() { 57 var $this_gg_wa = jQuery(this); 58 if($this_gg_wa.html()!='') $this_empty = false; 59 }); 60 if(!$this_empty){ 61 $this_container.removeClass('d-none'); 62 } 63 console.log('$i: '+$i); 64 }); 65 66 jQuery( document ).find(".gg_wa").each(function() { 67 var $this_gg_wa = jQuery(this); 68 if($this_gg_wa.html()==''){ 69 $this_gg_wa.closest('.elementor-widget-container').parent('.elementor-element').remove(); 70 71 } 72 }); 73}); 74 75jQuery( window ).resize(function($) { 76 maybeFixHeader(); 77 reInitSASlider(); 78}); 79 80jQuery( window ).scroll(function($) { 81 maybeFixHeader(); 82 reInitSASlider(); 83}); 84 85function maybeFixHeader(){ 86 if(jQuery(window).scrollTop() > 100){ 87 jQuery(document).find('header#masthead').addClass('scrolling'); 88 89 }else{ 90 jQuery(document).find('header#masthead').removeClass('scrolling'); 91 } 92} 93 94function reInitSASlider(){ 95 var $timeout = setInterval(function(){ 96 if(jQuery('html').hasClass('js_active')){ 97 if(jQuery('.owl-carousel').hasClass('owl-loaded')){ 98 jQuery('.owl-carousel').trigger('refresh.owl.carousel'); 99 if(jQuery('.owl-carousel').find('.sa_hover_container .container').length==0){ 100 jQuery('.owl-carousel').find('.sa_hover_container').wrapInner('<div class="container"></div>'); 101 } 102 clearInterval($timeout); 103 } 104 } 105 }, 50); 106} 107 108function applyMTFilters(){ 109 var $hasFilter = jQuery(document).find(".filter.member-table-filter").length; 110 111 if($hasFilter>0){ 112 var $totalFilters = parseInt(jQuery(document).find(".filter.member-table-filter div.form-check").length); 113 var $totalFiltersChecked = parseInt(jQuery(document).find(".filter.member-table-filter div.form-check input:checked").length); 114 115 if($totalFiltersChecked>0){ 116 jQuery( document ).find("table.member-table").addClass("member-table-filtered"); 117 var $class = 'odd'; 118 jQuery( document ).find("table.member-table tbody tr").each(function() { 119 var $this_tr = jQuery(this); 120 $this_tr.removeClass('odd').removeClass('even'); 121 var $hide = MTFiltersHideOrShow($this_tr); 122 if(!$hide && $this_tr.is(':visible')){ 123 $this_tr.addClass($class); 124 if($class=='odd'){ 125 $class='even'; 126 }else{ 127 $class='odd'; 128 } 129 } 130 }); 131 }else{ 132 removeMTFilterClasses(); 133 } 134 } 135 136} 137 138function clearMTFilterInputs(){ 139 var $hasFilter = jQuery(document).find(".filter.member-table-filter").length; 140 141 jQuery(document).find(".filter.member-table-filter div.form-check input").each(function() { 142 jQuery(this).removeAttr('checked'); 143 }); 144} 145 146function removeMTFilterClasses(){ 147 jQuery(document).find("table.member-table").addClass('table-striped').removeClass("member-table-filtered"); 148 jQuery( document ).find("table.member-table tbody tr").removeClass('hidden-by-filter'); 149} 150 151function updateVisibleCount(){ 152 var $visible_count = jQuery( document ).find("table.member-table tbody tr:visible").length; 153 jQuery( document ).find(".member-table-results .results-value").html($visible_count); 154} 155 156function MTFiltersHideOrShow($this_tr, $class){ 157 $hide = true; 158 159 $this_tr.removeClass('hidden-by-filter'); 160 jQuery(document).find("table.member-table").removeClass('table-striped'); 161 162 jQuery(document).find(".filter.member-table-filter div.form-check input:checked").each(function() { 163 $this_input = jQuery(this); 164 //console.log('$this_input.val(): '+$this_input.val()); 165 if($this_tr.hasClass('focus-'+$this_input.val())){ 166 $hide = false; 167 } 168 }); 169 170 if($hide) $this_tr.addClass('hidden-by-filter'); 171 172 return $hide; 173}
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.