1$('.employee .card').hover(function(){ 2 $(this).toggleClass('applyflip'); 3}); 4 5/*$('.navbar .dropdown > a').click(function() { 6 if (!$(this).hasClass("parent-clicked")) { 7 $(this).addClass("parent-clicked"); 8 } else { 9 location.href = this.href; 10 } 11});*/ 12 13var header = $('.header'); 14var sticky = header[0].offsetTop; 15 16window.onscroll = function myFunction() { 17 if (window.pageYOffset > sticky) { 18 header.addClass('sticky'); 19 } else { 20 header.removeClass('sticky'); 21 } 22}; 23 24$(document).ready(function(){ 25 26 $("a").on('click', function(event) { 27 28 if (this.hash !== "") { 29 event.preventDefault(); 30 31 var hash = this.hash; 32 33 $('html, body').animate({ 34 scrollTop: $(hash).offset().top 35 }, 600, function(){ 36 37 window.location.hash = hash; 38 }); 39 } 40 }); 41 42 43 $(".filter-button").click(function(){ 44 45 var value = $(this).attr('data-filter'); 46 47 if(value == "all") 48 { 49 //$('.filter').removeClass('hidden'); 50 $('.filter').show('1000'); 51 } 52 else 53 { 54 //$('.filter[filter-item="'+value+'"]').removeClass('hidden'); 55 //$(".filter").not('.filter[filter-item="'+value+'"]').addClass('hidden'); 56 $(".filter").not('.'+value).hide('3000'); 57 $('.filter').filter('.'+value).show('3000'); 58 59 } 60 }); 61 62 // This doesn't look right. It always adds the class back on... 63 if ($(".filter-button").removeClass("active")) { 64 $(this).removeClass("active"); 65 } 66 $(this).addClass("active"); 67 68 69 // Custom validation for the Date picker on Claims form. 70 71 var validationEnabled = false; 72 73 //$('.datevalidation').hide(); 74 75 function validateDate() { 76 const datePickerDate = new Date($('.claimform .datepickerfield').val()); 77 if(datePickerDate.getTime() > Date.now()) { 78 $('.claimform .datepickerfield').addClass('input-validation-error'); 79 $('.claimform .datepickerfield + span') 80 .removeClass('field-validation-valid') 81 .addClass('field-validation-error') 82 .append('<span>Date cannot be in the future'); 83 $('.datevalidation .text').val(''); 84 85 return false 86 } 87 else if(!$('.claimform .datepickerfield').hasClass('input-validation-error')) { 88 $('.claimform .datepickerfield').removeClass('input-validation-error'); 89 $('.claimform .datepickerfield + span') 90 .addClass('field-validation-valid') 91 .removeClass('field-validation-error') 92 .empty(); 93 $('.datevalidation .text').val('valid'); 94 95 return true; 96 } 97 98 return false; 99 } 100 101 102 $('.claimform input[type="submit"]').click(function(e){ 103 validationEnabled = true; 104 if(!validateDate()) { 105 e.preventDefault(); 106 e.stopPropagation(); 107 return false; 108 } 109 else { 110 111 } 112 }); 113 114 $('.claimform .datepickerfield').blur(function() { 115 if(validationEnabled) { 116 validateDate(); 117 } 118 }) 119 120});
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.