custom js to hide non backwards compatible header in 02x docs

This commit is contained in:
Lucy Cifferello
2022-02-14 14:13:31 -07:00
parent a9962d6171
commit d4de595ff9
2 changed files with 23 additions and 6 deletions

View 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();
});