1(function ($) { 2 'use strict'; 3 4 $(function () { 5 var $flash = $('#home-login-flash'); 6 if ($flash.length && typeof Swal !== 'undefined') { 7 Swal.fire({ 8 type: $flash.attr('data-type'), 9 title: $flash.attr('data-title') 10 }); 11 } 12 13 $('#pass1').on('keyup', function () { 14 if ($('#pass1').val().length > 7) { 15 $('#pass1').attr('style', 'border-color:#42d14e'); 16 } else { 17 $('#pass1').attr('style', 'border-color:#ce3131'); 18 } 19 }); 20 21 $('#pass2').on('keyup', function () { 22 var password = $('#pass1').val(); 23 var confirmPassword = $('#pass2').val(); 24 if (password !== confirmPassword) { 25 $('#pass2').attr('style', 'border-color:#ce3131'); 26 $('#submitPass').attr('disabled', 'disabled'); 27 } else { 28 $('#pass2').attr('style', 'border-color:#42d14e'); 29 $('#submitPass').removeAttr('disabled'); 30 } 31 }); 32 }); 33})(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.