1
0
mirror of https://github.com/minio/docs.git synced 2025-08-06 14:42:56 +03:00

UI Enhancements: URLs, Web-font path and CSS fixes (#661)

- Only the external links are set to open in new windows/tab
- Fixed incorrect web-font paths being called for preload. 
- Minor CSS transition fixes.
- Conditionally called the search modal's keyboard events.
This commit is contained in:
Rushan
2022-12-07 19:47:23 +04:00
committed by GitHub
parent 9db99342d4
commit b7f0c07ec5
5 changed files with 39 additions and 13 deletions

View File

@@ -361,4 +361,18 @@ window.addEventListener("DOMContentLoaded", (event) => {
});
}
})();
// --------------------------------------------------
// Handle internal and external links
// --------------------------------------------------
(function () {
const links = document.querySelectorAll(".content__main a.external");
if(links.length > 0) {
links.forEach((item) => {
item.setAttribute("target", "_blank");
item.setAttribute("rel", "noopener");
item.setAttribute("rel", "noreferrer");
});
}
})();
});