From 9c7e03f6e6258fe74d664513b655bc0f5d9e9e08 Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Tue, 16 Nov 2021 11:46:09 +0000 Subject: [PATCH] PRIVATE add .htaccess, update menu links with graph.oepnaire.eu, add missing mobileheader git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet45/modules/dnet-api-http-doc/src@61750 d315682c-612b-4755-9ff5-7f18f6832af3 --- .htaccess | 26 +++++++++++++++++++ header.html | 32 ++++++++++++------------ headerMobile.html | 63 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 105 insertions(+), 16 deletions(-) create mode 100644 .htaccess create mode 100644 headerMobile.html diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..06cd8ca --- /dev/null +++ b/.htaccess @@ -0,0 +1,26 @@ + +RewriteEngine On + # If an existing asset or directory is requested go to it as it is + RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR] + RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d + RewriteRule ^ - [L] + + # If the requested resource doesn't exist, use index.html +RewriteRule ^ ./index.html + +DirectoryIndex overview.html +Redirect /overview /overview.html +Redirect /advanced /advanced.html +Redirect /authentication /authentication.html +Redirect /broker /advanced.html +Redirect /api /api.html +Redirect /auth_services /auth_services.html +Redirect /bulk-projects /bulk-projects.html +Redirect /overview /overview.html +Redirect /registeredService /registeredService.html +Redirect /basic /basic.html +Redirect /changelog /changelog.html +Redirect /graph-dumps /graph-dumps.html +Redirect /notFound /notFound.html +Redirect /personalToken /personalToken.html +Redirect /response-metadata-format /response-metadata-format.html diff --git a/header.html b/header.html index 84b745e..10da18c 100644 --- a/header.html +++ b/header.html @@ -3,33 +3,33 @@
@@ -58,13 +58,13 @@ const submenuItems = document.querySelectorAll(".submenuItem"); if (window.location.pathname.includes("overview")) { submenuItems[0].classList.add('uk-active'); - } else if (window.location.pathname.includes("authentication")) { + } else if (window.location.pathname.includes("authentication") || window.location.pathname.includes("personalToken") || window.location.pathname.includes("registeredService") || window.location.pathname.includes("basic") || window.location.pathname.includes("advanced")) { submenuItems[1].classList.add('uk-active'); - } else if (window.location.pathname.includes("graph-dumps")) { + } else if (window.location.pathname.includes("graph-dumps") || window.location.pathname.includes("bulk-projects") || window.location.pathname.includes("graph-dumps-old")) { submenuItems[2].classList.add('uk-active'); - } else if (window.location.pathname.includes("api")) { + } else if (window.location.pathname.includes("api.html")) { submenuItems[3].classList.add('uk-active'); - } else if (window.location.pathname.icnludes("response")) { + } else if (window.location.pathname.includes("response-metadata-format")) { submenuItems[4].classList.add('uk-active'); } - \ No newline at end of file + diff --git a/headerMobile.html b/headerMobile.html new file mode 100644 index 0000000..644ca7a --- /dev/null +++ b/headerMobile.html @@ -0,0 +1,63 @@ +
+ + +
+ \ No newline at end of file