diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..474978f --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "Sniffle"] + path = Sniffle + url = https://github.com/Fluffy-Bean/Sniffle.git +[submodule "Flyout"] + path = Flyout + url = https://github.com/Fluffy-Bean/Flyout.git diff --git a/Flyout b/Flyout new file mode 160000 index 0000000..57d63d7 --- /dev/null +++ b/Flyout @@ -0,0 +1 @@ +Subproject commit 57d63d741f57eaaa8b863b1ecd5d6df8c1d00834 diff --git a/Sniffle b/Sniffle new file mode 160000 index 0000000..471cd36 --- /dev/null +++ b/Sniffle @@ -0,0 +1 @@ +Subproject commit 471cd363a78fd2b73d960211a33829bada62e849 diff --git a/css/master.css b/css/master.css index c716a13..e2baef5 100644 --- a/css/master.css +++ b/css/master.css @@ -337,7 +337,7 @@ body { This is the notification system used by the website. Probably a little too much for what its used for */ .notify-root { - margin: 0; padding: 1rem; + margin: 0; padding: 0; max-width: 621px; width: calc(100% - 2rem); height: auto; @@ -447,7 +447,7 @@ a.btn { /* -=-=-= FLYOUT =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */ -.flyout { +/*.flyout { margin: 0; padding: 0.5rem 0.5rem 1.5rem; max-width: 621px; width: calc(100% - 2.5rem + 3px); @@ -487,7 +487,7 @@ a.btn { backdrop-filter: blur(5px); transition: opacity 2s cubic-bezier(.19,1,.22,1); -} +}*/ /* -=-=-= FONT SIZES =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- diff --git a/image.php b/image.php index 0cd9c97..4dd4619 100644 --- a/image.php +++ b/image.php @@ -93,28 +93,26 @@ if (image_privilage($image['author']) || is_admin($_SESSION['id'])) { integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"> + + + + + + + + -
- + if (params.update == "success") { + sniffleAdd("Info", "Image information updated", "var(--green)"); } - if ($_GET["del"] == "fail") { - echo notify("Failed to delete image", "low"); + if (params.del == "fail") { + sniffleAdd("Error", "Failed to delete image", "var(--red)"); } - ?> -

- -
+ "; } + echo ""; + + echo""; + echo ""; } ?> diff --git a/index.php b/index.php index 94a20ba..2d44fcb 100644 --- a/index.php +++ b/index.php @@ -18,29 +18,28 @@ integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"> + + + + + + + + -
- + if (params.del == "true") { + sniffleAdd("Image Deleted", "Successfully deleted image: ", "var(--green)"); } - // Account toast - if ($_GET["login"] == "success") { - echo notify("O hi ".$_SESSION['username'], "high"); + if (params.login == "success") { + sniffleAdd("Logged in", "O hi ", "var(--green)"); } - ?> - -
+ 0) { - // Getting thumbnail - if (file_exists("images/thumbnails/".$image['imagename'])) { - $image_path = "images/thumbnails/".$image['imagename']; - } else { - $image_path = "images/".$image['imagename']; - } - - // Image loading - echo ""; - } - } else { // Getting thumbnail if (file_exists("images/thumbnails/".$image['imagename'])) { $image_path = "images/thumbnails/".$image['imagename']; @@ -127,7 +102,6 @@ echo ""; - } } ?> diff --git a/scripts/alert.js b/scripts/alert.js deleted file mode 100644 index e63b189..0000000 --- a/scripts/alert.js +++ /dev/null @@ -1,10 +0,0 @@ -let alertClose = document.querySelectorAll(".alert"); - -function closeAlert(gone) { - gone.closest(".alert").style.transform="translateY(-10rem) scale(0.8)"; - gone.closest(".alert").style.opacity="0"; - - setTimeout(function(){ - gone.closest(".alert").style.display="none"; - }, 200); -}; diff --git a/scripts/flyout.js b/scripts/flyout.js deleted file mode 100644 index c1008d8..0000000 --- a/scripts/flyout.js +++ /dev/null @@ -1,22 +0,0 @@ -$(document).ready(function() { - let show = document.querySelectorAll(".flyout-display"); - let hide = document.querySelector(".flyout-close"); - - show.forEach(function(){ - document.querySelector(".flyout").style.transform= "translateX(-50%) scale(1)"; - document.querySelector(".flyout").style.bottom= "-1rem"; - document.querySelector(".flyout-dim").style.display= "block"; - }); - - - hide.addEventListener("click", function(){ - document.querySelector(".flyout").style.transform= "translateX(-50%) scale(0.8)"; - document.querySelector(".flyout").style.bottom= "-20rem"; - - document.querySelector(".flyout-dim").style.opacity= "0"; - - setTimeout(function(){ - document.querySelector(".flyout-dim").style.display= "none"; - }, 621); - }); -}); diff --git a/search.php b/search.php new file mode 100644 index 0000000..3557674 --- /dev/null +++ b/search.php @@ -0,0 +1,25 @@ + 0) { + // Getting thumbnail + if (file_exists("images/thumbnails/".$image['imagename'])) { + $image_path = "images/thumbnails/".$image['imagename']; + } else { + $image_path = "images/".$image['imagename']; + } + + // Image loading + echo ""; + } +} +?> diff --git a/ui/required.php b/ui/required.php index 4092266..91c318c 100644 --- a/ui/required.php +++ b/ui/required.php @@ -52,5 +52,28 @@ include $root_dir."ui/functions.php"; echo "
"; ?> + + +
+ + +
+
+

Header

+

Description

+
+ +