MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / initChangePass

Function initChangePass

scripts/auto_lockWebsite_main.js:110–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108}
109
110function initChangePass() {
111 let changePassBtn = document.querySelector("#change-pass");
112 changePassBtn.innerHTML = t({
113 vi: '<i class="fa-solid fa-key fa-lg"></i> Đổi mật khẩu',
114 en: '<i class="fa-solid fa-key fa-lg"></i> Change password',
115 });
116 changePassBtn.addEventListener("click", () => {
117 initPassword(true).then((res) => {
118 if (res) {
119 Swal.fire({
120 icon: "success",
121 title: t({
122 vi: "Đổi mật khẩu thành công",
123 en: "Change password success",
124 }),
125 showConfirmButton: false,
126 timer: 1500,
127 });
128 }
129 });
130 });
131}
132
133function goBack() {
134 if (window.history.length > 1) {

Callers 1

Calls 2

tFunction · 0.90
initPasswordFunction · 0.90

Tested by

no test coverage detected