From 9a0d1df756483fe865dbbf3b112f1e5158d8bd84 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 19 Feb 2020 02:43:25 +0100 Subject: update HTML landing page The original landing page was pretty bad, not just from the looks, but also from the functionality: In order to paste an image, you had to have the cursor focussed in the small div. This edition brings several improvements: * The general style of the page has been improved by adding some CSS styling to adjust the colors and center the content. * Pasting an image will not work everywhere on the page without focussing a specific element. This seems to work because document.onpaste fires every time, not just when the element is focussed and it even works without contenteditable=true, which removes the ugly blinking cursors. * There is a preview window for pasted images, clearly indicating what is going on and which image is going to be pasted. * Pasting an image will now hide the file chooser. --- src/index.html | 40 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/src/index.html b/src/index.html index 97191f0..33fb9cb 100644 --- a/src/index.html +++ b/src/index.html @@ -1,33 +1,65 @@ Simple Image Host + +

simghost

+

Simple image hosting. Source Code available.

+
+
-
Paste image
Duration:
User:
Password:
+
+ -- cgit v1.2.3