Skip to content

Instantly share code, notes, and snippets.

@theangelsofwar
Created October 25, 2018 14:03
Show Gist options
  • Save theangelsofwar/bd723c514c487716a861f61ed7ce5989 to your computer and use it in GitHub Desktop.
Save theangelsofwar/bd723c514c487716a861f61ed7ce5989 to your computer and use it in GitHub Desktop.
saintlaurentmask
<html>
<body align=center bgcolor="lightblue">
<p> </p> <p> </p><br> </br><br> </br>
<button class="start">start</button>
&nbsp;
<button class="clear">clear</button></body>
</html>
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();
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
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