Skip to content

Commit 424bdc8

Browse files
committed
made by node team
0 parents  commit 424bdc8

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# https://git-scm.com/docs/gitignore
2+
# https://help.github.com/articles/ignoring-files
3+
# Example .gitignore files: https://github.com/github/gitignore
4+
/bower_components/
5+
/node_modules/

assets/js/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const butty = document.getElementById("butty");
2+
let passcode = document.getElementById("passcode");
3+
4+
butty.addEventListener("click", function(e){
5+
if(passcode.getAttribute("type")=="password"){
6+
passcode.setAttribute("type","text");
7+
} else {
8+
passcode.setAttribute("type","password");
9+
}
10+
});

0 commit comments

Comments
 (0)