add files
This commit is contained in:
81
src/public/math_abi.html
Normal file
81
src/public/math_abi.html
Normal file
@@ -0,0 +1,81 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Hacking Game...</title>
|
||||
<link rel="stylesheet" href="/stylesheets/style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<center>
|
||||
<form id="math-form">
|
||||
<div class="math-div"><img class="math-image" src="./pictures/background04.png"><input class="math-mask"
|
||||
type="text" id="nullstelle" name="nullstelle"><button id="abgeben-button"
|
||||
type="submit">Abgeben</button>
|
||||
<div class="hidden" id="wrong-solution">f</div>
|
||||
</div>
|
||||
<h3>Solve the task...</h3>
|
||||
</form>
|
||||
</center>
|
||||
<script>checkInput = function (nullstelle) {
|
||||
nullstelle = btoa(nullstelle);
|
||||
if (nullstelle == "MA==") {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
document.getElementById("math-form").addEventListener("submit", function (event) {
|
||||
event.preventDefault();
|
||||
let nullstelle = document.getElementById("nullstelle").value;
|
||||
if (checkInput(nullstelle)) {
|
||||
document.getElementById("wrong-solution").classList.add("hidden");
|
||||
document.getElementById("wrong-solution").classList.remove("visible");
|
||||
window.location.href = "/access/false/safebox";
|
||||
}
|
||||
else {
|
||||
document.getElementById("nullstelle").focus();
|
||||
document.getElementById("wrong-solution").classList.remove("hidden");
|
||||
document.getElementById("wrong-solution").classList.add("visible");
|
||||
}
|
||||
});</script>
|
||||
<style>
|
||||
.tb_button {
|
||||
padding: 1px;
|
||||
cursor: pointer;
|
||||
border-right: 1px solid #8b8b8b;
|
||||
border-left: 1px solid #FFF;
|
||||
border-bottom: 1px solid #fff;
|
||||
}
|
||||
|
||||
.tb_button.hover {
|
||||
borer: 2px outset #def;
|
||||
background-color: #f8f8f8 !important;
|
||||
}
|
||||
|
||||
.ws_toolbar {
|
||||
z-index: 100000
|
||||
}
|
||||
|
||||
.ws_toolbar .ws_tb_btn {
|
||||
cursor: pointer;
|
||||
border: 1px solid #555;
|
||||
padding: 3px
|
||||
}
|
||||
|
||||
.tb_highlight {
|
||||
background-color: yellow
|
||||
}
|
||||
|
||||
.tb_hide {
|
||||
visibility: hidden
|
||||
}
|
||||
|
||||
.ws_toolbar img {
|
||||
padding: 2px;
|
||||
margin: 0px
|
||||
}
|
||||
</style><span id="okta-plugin-message-channel-available" style="display: none;"></span>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user