A Pen by Angie Changpagne on CodePen.
Created
October 25, 2018 14:03
-
-
Save theangelsofwar/bd723c514c487716a861f61ed7ce5989 to your computer and use it in GitHub Desktop.
saintlaurentmask
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body align=center bgcolor="lightblue"> | |
<p> </p> <p> </p><br> </br><br> </br> | |
<button class="start">start</button> | |
| |
<button class="clear">clear</button></body> | |
</html> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pw="saintlaurentmask"; | |
function startButton() { | |
// enter your code here | |
var isOver=confirm("Are you over 18?"); | |
var passcode=prompt("password identity"); | |
console.log(passcode); | |
if(isOver==true && pw==passcode) | |
{ | |
alert("you're in"); | |
} | |
else{ | |
alert("go float yourself"); | |
} | |
} | |
$("button.start").click(function() { | |
startButton(); | |
}); | |
$("button.clear").click(function() { | |
console.clear(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
button { | |
font-size:20px; | |
padding:10px; | |
text-transform:uppercase; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment