You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

67 lines
2.5 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>WOW</title>
</head>
<body>
<h1>CECI EST UN AVERTISSEMENT</h1>
<p>NE CLIQUEZ SURTOUT PAS SUR LE BOUTON CI-DESSOUS</p>
<button class="first"
style="height: 50px; font-size: 20px; background-color: rgb(0, 255, 85); color: white;">CLIQUEZ ICI POUR VOIR
VOTRE CADEAU</button>
<ul>
<li><a href="/docs/">Documentss</a></li>
<li><a href="/img/">Images</a></li>
<li><a href="/index.php">php-cgi test</a></li>
<li><a href="/big_cgi.py">big_cgi</a></li>
</ul>
<h1> Query and python cgi test </h1>
<form action = "/index.py" method = "get">
First Name: <input type = "text" name = "first_name"> <br />
Last Name: <input type = "text" name = "last_name" />
<input type = "submit" value = "Submit" />
</form>
<h1> File Creation test: </h1>
<form action="/" method="post" enctype="text/plain">
Filename: <input type="text" id="changeAction" />
Content: <input name="content" type="text">
<button type="submit">Create file</button>
</form>
<h1> Forms tests: </h1>
<form action="/" method="post" enctype="multipart/form-data">
<input type="text" name="description" value="form-data" />
<input type="file" name="myFile" />
<button type="submit">Submit</button>
</form>
<form action="/" method="post" enctype="application/x-www-form-urlencoded">
<input type="text" name="description" value="UrlEncode" />
<button type="submit">Submit</button>
</form>
<script>
const button1 = document.querySelector('button.first');
button1.addEventListener('click', function () {
alert('PRANK hahaha, cliquez sur le bouton en bas de la page pour voir le vrai cadeau');
document.querySelector('body').innerHTML = '<button class ="second" style="position: fixed; bottom: 0; left: 0; width: 100%; height: 50px; font-size: 20px; background-color: red; color: white;">CLIQUEZ ICI POUR VOIR VOTRE VRAI CADEAU</button>';
const button2 = document.querySelector('button.second');
button2.addEventListener('click', function () {
document.querySelector('body').innerHTML = '<img src="./monkey.gif" style="width: 100%; height: 100%;">';
});
});
const actionUpdater = document.querySelector("#changeAction");
actionUpdater.addEventListener("change", () => {
const parent = actionUpdater.parentElement;
parent.action = actionUpdater.value;
});
</script>
</body>
</html>