From dc66b2db0f55498d4bdb0b6041771fcb8b0fa63c Mon Sep 17 00:00:00 2001 From: 20xd6 <20xd6@airmail.cc> Date: Tue, 26 Jul 2022 11:20:33 -0400 Subject: [PATCH 1/4] Remove depracated JS files for issue #7 The functions in these files have been merged into the main JS file for page formatting. --- common/js/font_size.js | 1 - common/js/gallery.js | 32 -------------------------------- 2 files changed, 33 deletions(-) delete mode 100644 common/js/font_size.js delete mode 100644 common/js/gallery.js diff --git a/common/js/font_size.js b/common/js/font_size.js deleted file mode 100644 index 8b13789..0000000 --- a/common/js/font_size.js +++ /dev/null @@ -1 +0,0 @@ - diff --git a/common/js/gallery.js b/common/js/gallery.js deleted file mode 100644 index 9ff212f..0000000 --- a/common/js/gallery.js +++ /dev/null @@ -1,32 +0,0 @@ -var modalEle = document.querySelector(".modal_gal"); -var modalImage = document.querySelector(".gallery_img"); -Array.from(document.querySelectorAll(".img_thumb")).forEach(item => { - item.addEventListener("click", event => { - modalEle.style.display = "block"; - modalImage.src = event.target.src; - }); -}); -document.querySelector(".close").addEventListener("click", () => { - modalEle.style.display = "none"; -}); - -function image_modal(document){ - // Get the modal - var modal = document.getElementById("modal_gallery"); - // Get the image and insert it inside the modal - use its "alt" text as a caption - var img = document.getElementById("myImg"); - var modalImg = document.getElementById("modal_img"); - var captionText = document.getElementById("modal_img_caption"); - img.onclick = function(){ - modal.style.display = "block"; - modalImg.src = this.src; - captionText.innerHTML = this.alt; - } - // Get the element that closes the modal - var span = document.getElementsByClassName("close_modal")[0]; - - // When the user clicks on (x), close the modal - span.onclick = function() { - modal.style.display = "none"; - } -} -- 2.39.5 From b7688ae2d44c16675cfc60cb2b754ac52518784d Mon Sep 17 00:00:00 2001 From: 20xd6 <20xd6@airmail.cc> Date: Tue, 26 Jul 2022 11:21:52 -0400 Subject: [PATCH 2/4] Removed empty php file --- common/path_menu.php | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 common/path_menu.php diff --git a/common/path_menu.php b/common/path_menu.php deleted file mode 100644 index e69de29..0000000 -- 2.39.5 From 3e169d54edf822e5ccf8429a14a0bc9d70e74041 Mon Sep 17 00:00:00 2001 From: 20xd6 <20xd6@airmail.cc> Date: Tue, 26 Jul 2022 11:22:18 -0400 Subject: [PATCH 3/4] Remove depracated PHP for issue #7 --- common/php/page_menu_table.php | 36 ---------------------------------- 1 file changed, 36 deletions(-) delete mode 100644 common/php/page_menu_table.php diff --git a/common/php/page_menu_table.php b/common/php/page_menu_table.php deleted file mode 100644 index b636e00..0000000 --- a/common/php/page_menu_table.php +++ /dev/null @@ -1,36 +0,0 @@ - - - - -"; print_r( $files_arr ); echo ""; - // Get each files of our directory with line break - foreach ($files_arr as $file) { - //Get the file path - $file_path = "./".$file; - // Get the file extension - $file_ext = pathinfo($file_path, PATHINFO_EXTENSION); - if ($file_ext=="php" || $file_ext=="html" || $file_ext=="htm" || $file_ext == "") { - $file_array[] = $file; - } - } - foreach($file_array as $file) { - $_replace = array('.php', '.html', '.htm'); - $link_title = str_replace('_',' ',$file); - $link_title = str_replace($_replace,'',$link_title); - $link_title = ucwords($link_title); - echo("\n"); - } -} -else { - echo "Directory does not exists"; -} - -?> -
Home
$link_title
-- 2.39.5 From 81629aa13326f33f2b7d516bdcf531263a56872b Mon Sep 17 00:00:00 2001 From: 20xd6 <20xd6@airmail.cc> Date: Tue, 26 Jul 2022 11:25:03 -0400 Subject: [PATCH 4/4] Remove deperacted CSS for issue #7 The style rules have been moved into the main styles.css --- common/css/gallery.css | 79 ------------------------------------------ 1 file changed, 79 deletions(-) delete mode 100644 common/css/gallery.css diff --git a/common/css/gallery.css b/common/css/gallery.css deleted file mode 100644 index a30d3cf..0000000 --- a/common/css/gallery.css +++ /dev/null @@ -1,79 +0,0 @@ - /* Style the Image Used to Trigger the Modal */ -#myImg { - border-radius: 5px; - cursor: pointer; - transition: 0.3s; -} - -img:hover {opacity: 0.7;} - -/* The Modal (background) */ -.modal_gal { - display: none; /* Hidden by default */ - position: fixed; /* Stay in place */ - z-index: 1; /* Sit on top */ - padding-top: 100px; /* Location of the box */ - left: 0; - top: 0; - width: 100%; /* Full width */ - height: 100%; /* Full height */ - overflow: auto; /* Enable scroll if needed */ - background-color: rgb(0,0,0); /* Fallback color */ - background-color: rgba(0,0,0,0.9); /* Black w/ opacity */ -} - -/* Modal Content (Image) */ -.gallery_img { - margin: auto; - display: block; - width: 80%; - max-width: 700px; -} - -/* Caption of Modal Image (Image Text) - Same Width as the Image */ -#modal_img_caption { - margin: auto; - display: block; - width: 80%; - max-width: 700px; - text-align: center; - color: #ccc; - padding: 10px 0; - height: 150px; -} - -/* Add Animation - Zoom in the Modal */ -.gallery_img, #caption { - animation-name: zoom; - animation-duration: 0.6s; -} - -@keyframes zoom { - from {transform:scale(0)} - to {transform:scale(1)} -} - -/* The Close Button */ -.close_modal { - position: absolute; - top: 15px; - right: 35px; - color: #00cc00; - font-size: 40px; - font-weight: bold; - transition: 0.3s; -} - -.close_modal:hover, -.close_modal:focus { - color: #bbb; - text-decoration: none; - cursor: pointer; -} - -/* 100% Image Width on Smaller Screens */ -@media only screen and (max-width: 700px){ - .gallery_img { - width: 100%; - } -} -- 2.39.5