-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
24 lines (22 loc) · 834 Bytes
/
script.js
File metadata and controls
24 lines (22 loc) · 834 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
document.querySelectorAll('a[href^="#"]').forEach(anchor =>{
anchor.addEventListener("click" , function(e){
e.preventDefault();
document.querySelector(this.getAttribute("href")).scrollIntoView({
behavior : "smooth"
});
});
});
var check = function() {
if (document.getElementById('password').value ==
document.getElementById('passconfirm').value) {
document.getElementById('message').style.color = 'green';
document.getElementById('message').innerHTML = 'Password match!';
} else {
document.getElementById('message').style.color = 'red';
document.getElementById('message').innerHTML = 'Password not match!';
}
}
function loadFile(event) {
var image = document.getElementById('output');
image.src = URL.createObjectURL(event.target.files[0]);
};