1function findstartswith(inputlist, inputstring) { 2 for (var il = 0; il < inputlist.length; il++) { 3 if (inputlist[il].startsWith(inputstring)) { 4 return il; 5 } 6 } 7} 8 9jQuery(document).ready(function ($) { 10 /** progress bar */ 11 $('.progress .progress-bar').each(function () { 12 var text = jQuery(this).attr('class'), 13 ca = text.split(' '); 14 15 index = findstartswith(ca, "progress-percent"); 16 a = ca[index].replace('progress-percent-', ''); 17 18 $(this).css("width", a + '%'); 19 20 var content = $(this).html(); 21 $(this).html(content + "<span class='percent'>" + a + "% </span>"); 22 23 }); 24 25 /** youtube popup */ 26 jQuery('.box-shadow-ripples, .youtube-popup-link').click(function () { 27 var link = jQuery(this).find('a').attr('href'); 28 29 var iframeHtml = "<div class='youtube-popup'>"; 30 iframeHtml += "<div class='youtube-header'>X</div> <iframe src='" + link + "'> </iframe>"; 31 32 33 iframeHtml += "</div>"; 34 35 jQuery('body').append(iframeHtml); 36 }); 37 38 jQuery('.youtube-popup .youtube-header').on('click', function () { 39 jQuery('.youtube-popup').remove(); 40 }) 41 42 jQuery('body').on('click', '.youtube-popup .youtube-header', function () { 43 jQuery('.youtube-popup').remove(); 44 }) 45 46 jQuery('.has-accordion :is(h2, h3, h4, h5, h6)').click(function () { 47 jQuery(this).parent().toggleClass('active'); 48 }); 49})
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.