From 14b9ca6686d43e35a00960713f36e4e41de93e3f Mon Sep 17 00:00:00 2001 From: root Date: Thu, 23 Mar 2023 18:05:57 +0100 Subject: [PATCH] =?UTF-8?q?*=20Bugfix:=20ein=20preventDefault()=20zuviel?= =?UTF-8?q?=20entfernt=20*=20Theme=20Funktionalit=C3=A4t=20hinzugef=C3=BCg?= =?UTF-8?q?t=20*=20style.css=20und=20sora.ttf=20in=20eigenes=20Theme=20ver?= =?UTF-8?q?schoben?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.dist.php | 3 +++ index.php | 2 +- script.js | 1 + sora.ttf => themes/gideonstar/sora.ttf | Bin style.css => themes/gideonstar/style.css | 0 5 files changed, 5 insertions(+), 1 deletion(-) rename sora.ttf => themes/gideonstar/sora.ttf (100%) rename style.css => themes/gideonstar/style.css (100%) diff --git a/config.dist.php b/config.dist.php index d690a29..2cb72e6 100644 --- a/config.dist.php +++ b/config.dist.php @@ -6,6 +6,9 @@ $title = "imgpaste by gideonstar"; // Displayed text $text = "Click or drop image here..."; +// Themes can be found in the themes directory +$theme = "gideonstar"; + // Writeable directory for images. Will be created if it does not exist. $datadir = "i"; diff --git a/index.php b/index.php index de9a384..a92b014 100644 --- a/index.php +++ b/index.php @@ -13,7 +13,7 @@ <?php echo $title; ?> - +
diff --git a/script.js b/script.js index 5fc094a..27cf0b8 100644 --- a/script.js +++ b/script.js @@ -1,6 +1,7 @@ dropzone = document.getElementById('dropzone'); dropzone.addEventListener('dragover', function(e) { + e.preventDefault(); this.classList.remove('nodrop'); this.classList.add('drop'); }); diff --git a/sora.ttf b/themes/gideonstar/sora.ttf similarity index 100% rename from sora.ttf rename to themes/gideonstar/sora.ttf diff --git a/style.css b/themes/gideonstar/style.css similarity index 100% rename from style.css rename to themes/gideonstar/style.css