Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Cots committed Jul 12, 2024
1 parent 6b556e5 commit 8681b22
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/css/documentation.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "common.css";
@import "multidoc.css";

/*! do not display global search bar from MultiDocumenter in the nav menu */
#multi-page-nav .search {
Expand Down
8 changes: 7 additions & 1 deletion assets/js/documentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,18 @@ window.onload = function() {
favicon.href = 'https://control-toolbox.org/assets/img/ct-logo.svg';
document.head.appendChild(favicon);

/* top bar menu */
var topbar = document.createElement('div');
fetch('https://raw.githubusercontent.com/control-toolbox/control-toolbox.github.io/main/_includes/navigation.html')
.then(response => response.text())
.then(text => topbar.innerHTML = text);
document.body.insertBefore(topbar, document.body.firstChild);

/* footer */
var footer = document.createElement('footer');
fetch('https://raw.githubusercontent.com/control-toolbox/control-toolbox.github.io/main/_includes/footer.html')
.then(response => response.text())
.then(text => footer.innerHTML = text);
/*footer.innerHTML = "<p>© 2023 control-toolbox</p>"*/
document.body.appendChild(footer);

};

0 comments on commit 8681b22

Please sign in to comment.