1(function($) { 2"use strict"; 3 $(document).ready(function ($) { 4 var custom_styles = "", 5 color = ""; 6 7 function skillsStyles() { 8 $( '.skill-container' ).each( function() { 9 var value = $(this).attr('data-value'), 10 color_value = $(this).attr('data-color'); 11 12 if( value >= 101) { 13 value = '100'; 14 } 15 16 if( typeof value != 'undefined' ) { 17 var id = $(this).attr('id'), 18 $custom_style = '#' + id + ' .skill-percentage { width: ' + value + '%; } ' + '#' + id + ' > div.skill-percentage { background-color: ' + color_value + '; } '; 19 custom_styles += $custom_style; 20 } 21 }); 22 $('head').append('<style data-styles="leven-theme-skills-css" type="text/css">' + custom_styles + color + '</style>'); 23 } 24 25 skillsStyles(); 26 27 $(this).ajaxComplete(function() { 28 $('style[data-styles="leven-theme-skills-css"]').remove().detach(); 29 skillsStyles(); 30 }); 31 }); 32})(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.