mirror of
https://github.com/Start9Labs/documentation.git
synced 2026-03-26 10:21:53 +00:00
custom js to hide non backwards compatible header in 02x docs
This commit is contained in:
16
site/source/_static/custom.js
Normal file
16
site/source/_static/custom.js
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
window.jQuery = $;
|
||||
window.$ = $;
|
||||
|
||||
const hideHeaderLinks = () => {
|
||||
const dropdownHeader = $(".scylla-dropdown--header");
|
||||
const urlVersion = window.location.pathname.includes("0.2.x");
|
||||
if (urlVersion) {
|
||||
dropdownHeader.hide();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
hideHeaderLinks();
|
||||
});
|
||||
Reference in New Issue
Block a user