mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-05-28 14:23:11 +00:00
Preparing to add AJAX
This commit is contained in:
parent
4c064eeaed
commit
a52f2c3da7
13 changed files with 77 additions and 55 deletions
|
@ -150,6 +150,9 @@ function flyout($header, $content, $action) {
|
|||
// Exit button + Div End
|
||||
echo "<button class='btn alert-default space-top flyout-close'>Close</button>
|
||||
</div>";
|
||||
|
||||
// Must be included with flyout.php
|
||||
echo "<script src='scripts/flyout.js'></script>";
|
||||
}
|
||||
|
||||
|
||||
|
@ -166,7 +169,7 @@ function flyout($header, $content, $action) {
|
|||
|
||||
returns notification html including classes
|
||||
|
||||
===== Editors note ==================================
|
||||
===== Programmers note ==============================
|
||||
I made this so I didn't have to remake the html
|
||||
portion of the notification, it was annoying.
|
||||
This also allows for expanding the system later on!
|
||||
|
|
|
@ -1,18 +1,4 @@
|
|||
<?php
|
||||
// Include required files and commands by every page on header
|
||||
session_start();
|
||||
|
||||
if (is_dir("ui/")) {
|
||||
include_once("ui/functions.php");
|
||||
} else {
|
||||
include_once("../ui/functions.php");
|
||||
}
|
||||
|
||||
$conn = mysqli_connect("localhost", "uwu", "fennec621", "swag");
|
||||
if ($conn->connect_error) {
|
||||
echo "<p class='alert alert-low'>Could not connect to database</p>";
|
||||
}
|
||||
|
||||
// Check which directory icons are in
|
||||
if (is_dir("assets/icons/")) {
|
||||
$dir = "assets/icons/";
|
||||
|
|
20
ui/required.php
Normal file
20
ui/required.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
// Include required files and commands by every page on header
|
||||
session_start();
|
||||
|
||||
if (is_dir("ui/")) {
|
||||
include_once("ui/functions.php");
|
||||
} else {
|
||||
include_once("../ui/functions.php");
|
||||
}
|
||||
|
||||
$conn = mysqli_connect("localhost", "uwu", "fennec621", "swag");
|
||||
if ($conn->connect_error) {
|
||||
echo "<p class='alert alert-low'>Could not connect to database</p>";
|
||||
}
|
||||
?>
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.6.0.min.js"
|
||||
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
|
||||
crossorigin="anonymous">
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue