-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregistration.js
More file actions
30 lines (27 loc) · 953 Bytes
/
registration.js
File metadata and controls
30 lines (27 loc) · 953 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
const canditate=document.querySelector('div.canditateregistartion');
document.getElementById("checkboxid").addEventListener("click",()=>{
canditate.classList.toggle('hide');
});
var string1=document.getElementById('password').value;
var string2=document.getElementById('cpassword').value;
const popup=document.querySelector('.popup-wrapper');
const form =document.querySelector('.registration-form');
form.addEventListener('submit',e=>{
e.preventDefault();
if(string1==string2)
{
popup.classList.remove('hide');
}
else
{
alert('password not matched with previous one');
}
});
const button=document.querySelector('.close');
button.addEventListener('click',() =>{
popup.classList.toggle('hide');
});
const applicationNumber=document.querySelector('.application-number');
var user_id= Math.floor(((new Date().getTime()/1000 % 1000000007)*Math.floor(Math.random()*10+1)));
// alert(user_id);
applicationNumber.innerText=user_id;