Server IP : 149.202.105.228 / Your IP : 216.73.216.18 Web Server : Apache System : Linux webm129.cluster030.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : atfycaf ( 116275) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/atfycaf/www/admin/js/jsF/ |
Upload File : |
$(document).ready(function() { $("#adminUserPass").pStrength({ "changeBackground": false, "onPasswordStrengthChanged": function(passwordStrength, strengthPercentage) { if ($(this).val()) { $.fn.pStrength('changeBackground', $(this).parent(".pFormInput"), passwordStrength); } else { $.fn.pStrength('resetStyle', $(this)); } $("#passwordReset").removeClass("pCheck21"); $("#" + $(this).data('display')).slideDown("slow"); $("#" + $(this).data('display')).html('The password strength is <span id="pStrength">' + strengthPercentage + '</span>%'); }, "onValidatePassword": function(strengthPercentage) { $("#" + $(this).data('display')).html( $("#" + $(this).data("display")).html() + ". Great, now you can change your password" ); $("#passwordReset").addClass("pCheck24"); } }); $(document).on("change", "#adminUserPass, #adminUserPassR", function() { checkMatch(); }); $(document).on("focusout", "#adminUserPass, #adminUserPassR", function() { checkMatch(); }); $(document).on("keyup", "#adminUserPass, #adminUserPassR", function() { checkMatch(); }); function checkMatch() { var inpPassR = $("#adminUserPassR").val(); var inpPass = $("#adminUserPass").val(); if (inpPassR == inpPass) { $("#passNoMatch").slideUp("slow"); var pStrength = parseInt($("#pStrength").html()); if (pStrength > 60) { $("#saveChanges").prop("disabled", false); } else { $("#saveChanges").prop("disabled", true); } } else { $("#passNoMatch").slideDown("slow"); $("#saveChanges").prop("disabled", true); } } $("#passwordReset").submit(function() { if ($(this).hasClass("pCheck24")) { return true; } else { return false; } }); });