From 85cc25173bf0281e192c3f6312841f24a5a67d74 Mon Sep 17 00:00:00 2001 From: Lanta Date: Fri, 3 Nov 2023 21:35:09 +0100 Subject: [PATCH] test --- clan_stats.php | 8 +------- includes/navigation.php | 33 ++++++++++++++++++++++----------- includes/topnav.css | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+), 18 deletions(-) create mode 100644 includes/topnav.css diff --git a/clan_stats.php b/clan_stats.php index 2d84b44..3308840 100644 --- a/clan_stats.php +++ b/clan_stats.php @@ -6,13 +6,7 @@ error_reporting(E_ALL); - - - - - DTCH - PUBG Clan - Clan Stats - - + diff --git a/includes/navigation.php b/includes/navigation.php index 3f76d94..fee77ee 100644 --- a/includes/navigation.php +++ b/includes/navigation.php @@ -5,16 +5,27 @@ if ($host == 'dev.dtch.online') { echo "You are on the development! Site"; } ?> +
+ Logo -
- - +function myFunction() { + var x = document.getElementById("myLinks"); + if (x.style.display === "block") { + x.style.display = "none"; + } else { + x.style.display = "block"; + } +} \ No newline at end of file diff --git a/includes/topnav.css b/includes/topnav.css new file mode 100644 index 0000000..6740179 --- /dev/null +++ b/includes/topnav.css @@ -0,0 +1,41 @@ +/* Style the navigation menu */ +.topnav { + overflow: hidden; + background-color: #333; + position: relative; + } + + /* Hide the links inside the navigation menu (except for logo/home) */ + .topnav #myLinks { + display: none; + } + + /* Style navigation menu links */ + .topnav a { + color: white; + padding: 14px 16px; + text-decoration: none; + font-size: 17px; + display: block; + } + + /* Style the hamburger menu */ + .topnav a.icon { + background: black; + display: block; + position: absolute; + right: 0; + top: 0; + } + + /* Add a grey background color on mouse-over */ + .topnav a:hover { + background-color: #ddd; + color: black; + } + + /* Style the active link (or home/logo) */ + .active { + background-color: #04AA6D; + color: white; + } \ No newline at end of file