diff options
| author | kj-sh604 | 2025-04-11 16:40:56 -0400 |
|---|---|---|
| committer | kj-sh604 | 2025-04-11 16:40:56 -0400 |
| commit | 8e11473cb8cb4e8196a90e07da91d59294798473 (patch) | |
| tree | 3ecc24de222ea1f8b60d2ddb974c6ec7d687c6dc /src | |
| parent | dd5667c413fba28216040977025cad2c454f914d (diff) | |
refactor: performance improvements
Diffstat (limited to 'src')
| -rw-r--r-- | src/includes/markdown-editor.php | 2 | ||||
| -rw-r--r-- | src/index.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/includes/markdown-editor.php b/src/includes/markdown-editor.php index fa68bb8..22551a0 100644 --- a/src/includes/markdown-editor.php +++ b/src/includes/markdown-editor.php @@ -3,7 +3,7 @@ <h2 class="centered">markdown goes here:</h2> </label> <form 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" style="width: 50rem; height: 25.625rem;"><?php echo $_SESSION['user-input'] ?? ''; ?></textarea> <div class="centered"> <button type="submit" name="compile">create presentation</button> </div> diff --git a/src/index.php b/src/index.php index e9cae38..c8964dd 100644 --- a/src/index.php +++ b/src/index.php @@ -21,7 +21,6 @@ session_start(); ?> include "includes/procrastislides-banner.php"; include "includes/main-info.php"; include "includes/nav-header.php"; ?> - <script src="/js/simplemde.js"></script> <?php if (isset($_POST["compile"])) { $_SESSION["user-input"] = $_POST["user-input"]; @@ -34,13 +33,14 @@ session_start(); ?> <footer> <?php include "includes/nav-footer.php"; ?> </footer> - <link rel="stylesheet" href="/css/simplemde.css"> <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") |
