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