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