1( function( $ ) { 2$( document ).ready(function() { 3$('#cssmenu li.has-sub>a').on('click', function(){ 4 $(this).removeAttr('href'); 5 var element = $(this).parent('li'); 6 if (element.hasClass('open')) { 7 element.removeClass('open'); 8 element.find('li').removeClass('open'); 9 element.find('ul').slideUp(); 10 } 11 else { 12 element.addClass('open'); 13 element.children('ul').slideDown(); 14 element.siblings('li').children('ul').slideUp(); 15 element.siblings('li').removeClass('open'); 16 element.siblings('li').find('li').removeClass('open'); 17 element.siblings('li').find('ul').slideUp(); 18 } 19 }); 20 21 $('#cssmenu>ul>li.has-sub>a').append('<span class="holder"></span>'); 22 23 (function getColor() { 24 })(); 25 26 function rgbToHsl(r, g, b) { 27 r /= 255, g /= 255, b /= 255; 28 var max = Math.max(r, g, b), min = Math.min(r, g, b); 29 var h, s, l = (max + min) / 2; 30 31 if(max == min){ 32 h = s = 0; 33 } 34 else { 35 var d = max - min; 36 s = l > 0.5 ? d / (2 - max - min) : d / (max + min); 37 switch(max){ 38 case r: h = (g - b) / d + (g < b ? 6 : 0); break; 39 case g: h = (b - r) / d + 2; break; 40 case b: h = (r - g) / d + 4; break; 41 } 42 h /= 6; 43 } 44 return l; 45 } 46}); 47} )( 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.