diff options
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 32 |
1 files changed, 14 insertions, 18 deletions
@@ -1,14 +1,12 @@ <?php - session_start(); - - ?> +session_start(); ?> <!DOCTYPE html> <html lang=en> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> - <link rel="stylesheet" href="css/style.css?v=<?=time();?>"> + <link rel="stylesheet" href="css/style.css?v=<?= time() ?>"> <link rel = "icon" href = "img/site-icon.webp" type = "image/x-icon"> <script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script> <title>procrastiSlides: great for procratinators who need to get a presentation out, quick! 😆</title> @@ -26,16 +24,12 @@ <h3 class="centered">🏃 great for procratinators who need to get a presentation out, quick! 👟</h3> <h3 class="centered">🏫 try copy and pasting your school notes! that might even work 😂</h3> <hr> - <?php - include "includes/nav-header.php"; - $_SESSION['user-input'] = null; + <?php + include "includes/nav-header.php"; + $_SESSION["user-input"] = null; ?> - <?php if(isset($_POST['compile'])) - { - - $_SESSION['user-input'] = $_POST['user-input']; - - ?> + <?php if (isset($_POST["compile"])) { + $_SESSION["user-input"] = $_POST["user-input"]; ?> <div class="centered"> <h3>🎨 please select your presentation theme 🎭</h3> <form class="" action="download.php" method="post"> @@ -98,13 +92,15 @@ </form> </div> <br> - <?php } ?> - <?php if(!isset($_POST['compile'])) - { ?> + <?php + } ?> + <?php if (!isset($_POST["compile"])) { ?> <div> <h2 class="centered">plain text or markdown goes here:</h2> <form class="" action="index.php" method="post"> - <textarea id="user-input" name="user-input" rows="8" cols="80"><?php echo $_SESSION['user-input']; ?></textarea> + <textarea id="user-input" name="user-input" rows="8" cols="80"><?php echo $_SESSION[ + "user-input" + ]; ?></textarea> <div class="centered"> <button type="submit" name="compile">create presentation</button> </div> @@ -153,7 +149,7 @@ <?php } ?> <br> <footer> - <?php include "includes/nav-footer.php" ?> + <?php include "includes/nav-footer.php"; ?> </footer> </body> </html> |
