1(function($) {"use strict"; 2 3 $(document).ready(function() { 4 5 // Add parent-hover class to hovered parent items 6 $('#moomenu li').hover(function () { 7 $(this).addClass('parent-hover'); 8 }, function () { 9 $(this).removeClass('parent-hover'); 10 }); 11 12 // Smoothscroll 13 $('.scrollto').click(function() { 14 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { 15 var target = $(this.hash); 16 target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); 17 if (target.length) { 18 $('html,body').animate({ 19 scrollTop: target.offset().top 20 }, 800); 21 return false; 22 } 23 } 24 }); 25 26 // Bootstrap stuff 27 $(document).ready(function() 28 { 29 $('*[rel=tooltip]').tooltip() 30 31 // Turn radios into btn-group 32 $('.radio.btn-group label').addClass('btn'); 33 $(".btn-group label:not(.active)").click(function() 34 { 35 var label = $(this); 36 var input = $('#' + label.attr('for')); 37 38 if (!input.prop('checked')) { 39 label.closest('.btn-group').find("label").removeClass('active btn-success btn-danger btn-primary'); 40 if (input.val() == '') { 41 label.addClass('active btn-primary'); 42 } else if (input.val() == 0) { 43 label.addClass('active btn-danger'); 44 } else { 45 label.addClass('active btn-success'); 46 } 47 input.prop('checked', true); 48 } 49 }); 50 $(".btn-group input[checked=checked]").each(function() 51 { 52 if ($(this).val() == '') { 53 $("label[for=" + $(this).attr('id') + "]").addClass('active btn-primary'); 54 } else if ($(this).val() == 0) { 55 $("label[for=" + $(this).attr('id') + "]").addClass('active btn-danger'); 56 } else { 57 $("label[for=" + $(this).attr('id') + "]").addClass('active btn-success'); 58 } 59 }); 60 }) 61 62 63 64 }); 65})(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.