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