-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript2.js
More file actions
37 lines (32 loc) · 980 Bytes
/
Copy pathscript2.js
File metadata and controls
37 lines (32 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// /** @format */
// const email = document.querySelector("#email");
// const password1 = document.querySelector("#password1");
// const password2 = document.querySelector("#password2");
// const pss1 = document.querySelector(".pss1");
// const pss2 = document.querySelector(".pss2");
// function Onchange() {
// if (password1.value.trim().length < 10) {
// pss1.classList.add("active");
// } else {
// pss1.classList.remove("active");
// }
// }
// function Onchange2() {
// if (password2.value != password1.value) {
// pss2.classList.add("active");
// } else {
// pss2.classList.remove("active");
// }
// }
// function register() {
// const hashedPasswords = [
// window.btoa(password1.value),
// window.btoa(password2.value),
// ];
// const user = [email.value, hashedPasswords];
// email.value = "";
// password1.value = "";
// password2.value = "";
// console.log(user);
// localStorage.setItem("new user", user);
// }