aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.php
blob: 102eb2072a9a217809153c955c597512017b7d78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
session_start(); ?>
<!DOCTYPE html>
<html lang=en>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv='cache-control' content='no-cache'>
    <meta http-equiv='expires' content='0'>
    <meta http-equiv='pragma' content='no-cache'>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?php include "includes/site-title-and-description.php"; ?>
    <?php include "includes/link-tags-in-head.php"; ?>
    <meta name="color-scheme" content="light dark">
</head>

<body>
    <?php
    include "includes/procrastislides-banner.php";
    include "includes/main-info.php";
    include "includes/nav-header.php"; ?>
    <?php
    if (isset($_POST["compile"])) {
        $_SESSION["user-input"] = $_POST["user-input"];
        include "includes/download-logic.php";
    } else {
        include "includes/markdown-editor.php";
        include "includes/quick-how-to.php";
        include "includes/video-how-to.php";
    } ?>
    <footer>
        <?php include "includes/nav-footer.php"; ?>
    </footer>
    <script type="text/javascript">
        function showGeneratingIndicator() {
            const generatingIndicator = document.getElementById('generating-indicator');
            generatingIndicator.style.display = 'block';
        }
    </script>
    <link rel="stylesheet" href="/css/simplemde.css">
    <script src="/js/simplemde.js"></script>
    <script type="text/javascript">
        var simplemde = new SimpleMDE({
            element: document.getElementById("user-input")
        });
    </script>
</body>

</html>