* Bugfix: ein preventDefault() zuviel entfernt

* Theme Funktionalität hinzugefügt
* style.css und sora.ttf in eigenes Theme verschoben
This commit is contained in:
root 2023-03-23 18:05:57 +01:00
parent 891565f76c
commit 14b9ca6686
5 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,9 @@ $title = "imgpaste by gideonstar";
// Displayed text // Displayed text
$text = "Click or drop image here..."; $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. // Writeable directory for images. Will be created if it does not exist.
$datadir = "i"; $datadir = "i";

View File

@ -13,7 +13,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $title; ?></title> <title><?php echo $title; ?></title>
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="themes/<?php echo $theme; ?>/style.css">
</head> </head>
<body> <body>
<div id="wrapper"> <div id="wrapper">

View File

@ -1,6 +1,7 @@
dropzone = document.getElementById('dropzone'); dropzone = document.getElementById('dropzone');
dropzone.addEventListener('dragover', function(e) { dropzone.addEventListener('dragover', function(e) {
e.preventDefault();
this.classList.remove('nodrop'); this.classList.remove('nodrop');
this.classList.add('drop'); this.classList.add('drop');
}); });