mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-01-29 17:28:27 +00:00
Fixes here and there
This commit is contained in:
parent
eeb79ec53c
commit
951871b983
|
@ -44,8 +44,8 @@ if (isset($_POST['submit'])) {
|
|||
<?php
|
||||
}
|
||||
}
|
||||
if ($width > 1000) {
|
||||
$make_preview = make_thumbnail($image_path, $preview_dir.$image_newname, 1000);
|
||||
if ($width > 1100) {
|
||||
$make_preview = make_thumbnail($image_path, $preview_dir.$image_newname, 900);
|
||||
if ($make_preview != "success") {
|
||||
?>
|
||||
<script>
|
||||
|
|
|
@ -338,6 +338,7 @@ nav .btn {
|
|||
transition: outline 0.1s cubic-bezier(0.19, 1, 0.22, 1);
|
||||
background-color: #151515;
|
||||
opacity: 0.8;
|
||||
box-shadow: 6px 6px 2px rgba(21, 21, 21, 0.5333333333);
|
||||
}
|
||||
.preview-button:hover {
|
||||
outline: #E8E3E3 0.2rem solid;
|
||||
|
|
|
@ -228,6 +228,8 @@
|
|||
|
||||
opacity: 0.8;
|
||||
|
||||
box-shadow: $shadow;
|
||||
|
||||
&:hover {
|
||||
outline: $white 0.2rem solid;
|
||||
color: $fg;
|
||||
|
|
|
@ -18,6 +18,9 @@ if ($debug["testing"]) {
|
|||
<?php
|
||||
}
|
||||
|
||||
ini_set('post_max_size', '20M');
|
||||
ini_set('upload_max_filesize', '20M');
|
||||
|
||||
if (is_file("index.php")) {
|
||||
$root_dir = "";
|
||||
} else {
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
// Get ALT
|
||||
var alt = $("#alt").val();
|
||||
formData.append("alt", alt);
|
||||
// Get ALT
|
||||
// Get TAGS
|
||||
var tags = $("#tags").val();
|
||||
formData.append("tags", tags);
|
||||
// Submit data
|
||||
|
@ -43,6 +43,7 @@
|
|||
// Empty values
|
||||
$("#image").val("");
|
||||
$("#alt").val("");
|
||||
$("#tags").val("");
|
||||
$("#submit").val("");
|
||||
} else {
|
||||
sniffleAdd('Gwha!', 'Pls provide image', 'var(--red)', 'assets/icons/file-search.svg');
|
||||
|
|
Loading…
Reference in a new issue