diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-05-11 02:17:39 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-05-11 02:17:39 -0400 |
commit | 9d9a9863e6507b0fa52744917a96b3ebdc615757 (patch) | |
tree | 547f240e3a1ccbcff2e3f376a96a5efdea8667b9 /app/views/partials | |
parent | d3d38ac230f4b53c55eb9c57c244c8d98c3d7cdf (diff) | |
download | thedroneely.com-9d9a9863e6507b0fa52744917a96b3ebdc615757.tar.gz thedroneely.com-9d9a9863e6507b0fa52744917a96b3ebdc615757.tar.bz2 thedroneely.com-9d9a9863e6507b0fa52744917a96b3ebdc615757.zip |
app/views/partials/navigator: Disable fixed navigation when JavaScript is not present
Diffstat (limited to 'app/views/partials')
-rw-r--r-- | app/views/partials/header.php | 5 | ||||
-rw-r--r-- | app/views/partials/navigator.php | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/app/views/partials/header.php b/app/views/partials/header.php index d78bbe3..7432617 100644 --- a/app/views/partials/header.php +++ b/app/views/partials/header.php @@ -1,5 +1,8 @@ <!DOCTYPE html> -<html class="has-navbar-fixed-top" lang="en-us"> + +<script>document.write('<html class="has-navbar-fixed-top" lang="en-us">');</script> +<noscript><html lang="en-us"></noscript> + <head> <title><?php echo $title = $title ?? 'Portfolio - '; ?>Thedro Neely</title> diff --git a/app/views/partials/navigator.php b/app/views/partials/navigator.php index 7344f31..3a5dff3 100644 --- a/app/views/partials/navigator.php +++ b/app/views/partials/navigator.php @@ -1,4 +1,7 @@ - <nav id="navbar" class="navbar is-fixed-top" aria-label="main navigation"> + + <script>document.write('<nav id="navbar" class="navbar is-fixed-top" aria-label="main navigation">');</script> + <noscript><nav id="navbar" class="navbar" aria-label="main navigation"></noscript> + <div class="container"> <div class="navbar-brand navbar__mobile__compact"> |