1;(function($) { 2 var cw_tooltip = { 3 tooltips: [], 4 5 // Progressively enhance tooltips on the page 6 enhance: function() { 7 cw_tooltip.tooltips = $('.cw-tooltip'); 8 9 if(cw_tooltip.tooltips.length > 0) { 10 // Show tooltips on click 11 $('body').on('click', '.cw-tooltip', function(e) { 12 e.preventDefault(); 13 $(this).focus(); 14 return false; 15 }); 16 17 // Add aria describedby attributes to tooltips 18 cw_tooltip.tooltips.each(function() { 19 var tooltip = $(this); 20 var described_element = $(tooltip.data('describes')); 21 described_element.attr('aria-describedby', tooltip.attr('id')); 22 if(described_element.length > 0) { 23 described_element.attr('aria-describedby', tooltip.attr('id')); 24 } 25 }); 26 } 27 } 28 }; 29 30 $(document).ready(cw_tooltip.enhance); 31}(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.