Skip to content

Commit

Permalink
nav
Browse files Browse the repository at this point in the history
  • Loading branch information
z-ichinohe committed Jun 25, 2024
1 parent 415f9a2 commit 064e911
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 4 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const download = () => {
a.download = 'index.html';
a.href = blobURL;
a.click();
}
};

const main = () => {
const filenames = [
Expand Down Expand Up @@ -167,4 +167,6 @@ const main = () => {
filenames.forEach(filename=>elem("toc").append(link(filename)));
};

main();
if(document.getElementsByTagName("li").length == 0){
main();
}
12 changes: 10 additions & 2 deletions stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,20 @@ li {
nav {
position: fixed;
z-index: 1;
top: 0;
right: 0;
width: 20px;
padding: 20px;
width: 0px;
padding-left: 40px;
height: 200px;
background-color: darkgray;
border-radius: 0 0 0 10px;
}

nav:hover{
width: auto;
height: auto;
padding: 10px;
background-color: white;
border-left: 10px solid darkgray;
border-bottom: 10px solid darkgray;
}

0 comments on commit 064e911

Please sign in to comment.