Skip to content

Commit

Permalink
Update tajemstvi.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlakobus1234 authored Jul 30, 2024
1 parent ee24f64 commit 63f4717
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tajemstvi.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<meta charset="utf-8">
<title>tajna-stranka.garlic</title>
<script>
function checkPassword() {
var password = document.getElementById("password").value;
// co podvádíš ty zmetku
if (password === "dotaznik4") {
document.getElementById("passwordSection").style.display = "none";
// co sem čumíš ty zmetku
function checkelement() {
var element = document.getElementById("element").value;
if (element === "dotaznik4") {
document.getElementById("elementSection").style.display = "none";
document.getElementById("contentSection").style.display = "block";
setTimeout(function() {
window.close();
Expand All @@ -22,9 +22,9 @@
<body>
<h1>tajna-stranka.garlic</h1>
<p>zadej heslo a získáš speciální informaci:</p>
<div id="passwordSection">
<input type="password" id="password">
<button onclick="checkPassword()">zadat</button>
<div id="elementSection">
<input type="element" id="element">
<button onclick="checkelement()">zadat</button>
</div>
<div id="contentSection" style="display: none;">
<p>správně! ale máš smůlu protože jsem tohle ještě nedodělal, je mi to líto:</p>
Expand Down

0 comments on commit 63f4717

Please sign in to comment.