1var misc = { 2 3 init: function() { 4 window.galleries.misc.loaders(); 5 window.galleries.misc.extended_click_area(); 6 }, 7 8 loaders: function() { 9 $('.button').each(function() { 10 if (!$('.button_loader', this).length) { 11 $(this).append('<div class="button_loader" aria-hidden="true"></div>'); 12 } 13 }); 14 $('.loader_simple, .button_loader, .loader_basic').each(function() { 15 if (!$('svg', this).length) { 16 $(this).append('<svg class="loader" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="3" stroke-miterlimit="10"/></svg>'); 17 } 18 }); 19 }, 20 21 extended_click_area: function() { 22 $('.extended_click_area:not(.click_event_added)').each(function(){ 23 var link_element = $(this).closest('.item').length ? $(this).closest('.item').find('a:not(.click_area_exclude)') : $(this).closest('li').find('a:not(.click_area_exclude)'); 24 if (link_element.length) { 25 $(this).addClass('click_event_added'); 26 } else { 27 $(this).removeClass('extended_click_area'); 28 } 29 }).click(function(){ 30 var link_element = $(this).closest('.item').length ? $(this).closest('.item').find('a:not(.click_area_exclude)') : $(this).closest('li').find('a:not(.click_area_exclude)'); 31 if (link_element.length) { 32 link_element[0].click(); 33 } else { 34 $(this).removeClass('extended_click_area'); 35 } 36 }); 37 } 38 39} 40 41window.galleries = window.galleries || {}; 42window.galleries.misc = misc; 43export default misc;
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.