Commit 598d24d1 authored by Romain Benit's avatar Romain Benit 🥇
Browse files

Commit pour les annimation JS de l'accés au topic

parent b044bd82
......@@ -25,18 +25,13 @@ session_start(); // Demmare la Session
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'sha256-FPaWafWn2vI/0jvphsdlS2z+cV8Xl/EPQh9hvQOSUV8='">
<script type="text/javascript">
function noBack(){window.history.forward()}
noBack();
window.onload=noBack;
window.onpageshow=function(evt){if(evt.persisted)noBack()}
window.onunload=function(){void(0)}
function bascule(id) {
if (document.getElementById(id).style.visibility == "hidden")
document.getElementById(id).style.visibility = "visible";
else document.getElementById(id).style.visibility = "hidden";
}
</script>
</script>
</head>
<body>
......@@ -177,11 +172,25 @@ session_start(); // Demmare la Session
<button class="btn btn-outline-secondary" type="submit">Écrire un message</button>
</form>
<br>
<!-- <button class="btn btn-outline-secondary" type="submit">Lire un message</button> -->
<button class="btn btn-outline-secondary" type="submit" onclick="bascule('header');">Lire un message</button>
<!-- <form action="deconnexion.php">
<button class="btn btn-outline-secondary" type="submit">Déconnexion</button>
</form> -->
<button class="btn btn-outline-secondary" onclick="bascule('form');">Lire un message</button>
<form METHOD="post" ACTION="consommateur.php" id="form" >
<p>Nom de topic</p>
<div class="form-group">
<input type="text" class="form-control" name="topic" value="" required/>
</div>
<p>Mot de passe : </p>
<div class="form-group">
<input type="password" class="form-control" name="password" value="" pattern=".{6,}" required/>
</div>
<div class="form-group">
<input class="btn btn-outline-secondary" type="submit" name="Valider" value="Valider">
</div>
</form>
<?php
} else {
require_once("consommateur.php");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment