adding files of assets

This commit is contained in:
Arjun Patel
2022-01-10 22:32:53 -08:00
parent f2779a0c2e
commit 91a01f7b7c
1582 changed files with 424006 additions and 0 deletions
@@ -0,0 +1,43 @@
"use strict";
// Class definition
var KTGeneralPasswordMeterDemos = function() {
// Private functions
var _showScore = function() {
// Select show score button
const showScoreButton = document.getElementById('kt_password_meter_example_show_score');
// Get password meter instance
const passwordMeterElement = document.querySelector("#kt_password_meter_example");
const passwordMeter = KTPasswordMeter.getInstance(passwordMeterElement);
// Handle show score button click
showScoreButton.addEventListener('click', e => {
// Get password score
const score = passwordMeter.getScore();
// Show popup confirmation
Swal.fire({
text: "Current Password Score: " + score,
icon: "success",
buttonsStyling: false,
confirmButtonText: "Ok, got it!",
customClass: {
confirmButton: "btn btn-primary"
}
});
});
}
return {
// Public Functions
init: function() {
_showScore();
}
};
}();
// On document ready
KTUtil.onDOMContentLoaded(function() {
KTGeneralPasswordMeterDemos.init();
});