-
Notifications
You must be signed in to change notification settings - Fork 6
added fixed navbar #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 12 commits
748a10f
1a44b6b
e9595a6
faf010d
dd265b8
e778e69
4103dfb
ab7d0a9
c6fb817
e9e36e5
80d0351
4a8f35f
a9e5cfe
6377cb9
6aed63a
71b2028
a2c8ce9
53fbcf4
d1527a3
920281d
897728e
8c7f959
98f71a1
c5a4337
4f1502a
7bafb7f
773d925
3e5f3d3
d1d50a9
764b4b6
05c0894
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -10,8 +10,35 @@ | |||||
| <link rel="stylesheet" href="https://unpkg.com/basscss@7.1.1/css/basscss.min.css" integrity="sha384-/biuPsPEkt10QoeOExIADuWNrpFFXALKPgBhEDkRdKDJdQOPpbNU3uUeFbL/KPJg" crossorigin="anonymous"> | ||||||
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/hint.css/2.5.0/hint.base.min.css" integrity="sha256-ODFgZG+Y3V10lzZu+7J8epM4SdW0w3p8qbVmmShNrtk=" crossorigin="anonymous"> | ||||||
| <style type="text/css"> | ||||||
| ul:nth-child(1) { | ||||||
| list-style-type: none; | ||||||
| position: absolute; | ||||||
| margin: 0; | ||||||
| padding: 0; | ||||||
| overflow: hidden; | ||||||
| background-color: #333333; | ||||||
| position: fixed; | ||||||
| bottom: 0; | ||||||
| width: 100%; | ||||||
| z-index: 10; | ||||||
| } | ||||||
| .navbar li { | ||||||
| float: left; | ||||||
| } | ||||||
| .navbar li a { | ||||||
| display: inline-block; | ||||||
| color: white; | ||||||
| text-align: center; | ||||||
| padding: 14px 16px; | ||||||
| text-decoration: none; | ||||||
| } | ||||||
| .inline-block.m0 { | ||||||
|
||||||
| padding-top:75px; | ||||||
| margin-top:-75px; | ||||||
|
||||||
| } | ||||||
| #content { | ||||||
| margin-top: 75px; | ||||||
| margin-bottom: 100px; | ||||||
|
||||||
| overflow-x: hidden; | ||||||
| } | ||||||
| #logo-text { | ||||||
|
|
@@ -42,6 +69,7 @@ | |||||
| </style> | ||||||
| </head> | ||||||
| <body class="m2"> | ||||||
| <ul class="navbar" id="navbar"></ul> | ||||||
|
||||||
| <div class="fixed top-0 col-12 py1 mr3 bg-white z1"> | ||||||
| <a href="https://apertium.org" target="_blank" rel="noopener" class="mt2 text-decoration-none nowrap"> <!-- apertium.org is slow and hosts a large version --> | ||||||
| <img id="logo" alt="Apertium" height="50" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAAA8CAYAAAAwoHcgAAAZlElEQVR42t2beZQcV5Xmf++9WDKzdlVJpX2xZMu2MF7kDYzd8tYGm6WBkVi6ATdwzOme03C6m57hADOUB6anBwZo4AwcaJYeVqOCocG0he0GlbEEeJFly9plqbSUSkupqlSVlUss7935IyOldKlklWVgmIlz3onIiMiXcb/47nfve+8mvPhNAXrSOd1wjSmuKf4f2sx5fk8awBHgj4AEGJ8EgAbcCwD2B7np8/hOHliegSHZuQuBNzSApLLmgBVAd3Ze//8GSv3eVwHvAC7IDF0AzJ50Tx2w64HVwFuAtgykP3jGeC/SZQCeBa4G/gzYlrGgADwOpA333wVc0/A9//+SjY2s/Z1oigImgAPAssyNmoGjwDqgCuQyZrw8A6Qf+GaD3shv2dhz3VNnrWlw73N+6XxczmXsuAoIgaeAUWAGsCZzJwc8A/x4CtH9bQQIO01AZgKzMlZPvvZbiz51wYyBgxkTqsAi4G1AZ2b8I8BD0wRETfMFmfqbX7VqlRfHca5YLCYvIA0OeC/w59kzLAT2nIsQ5xsN6oJZB/Uq4K1AawbWT4Bfvgh/lnPQuv6cFmDx4sVX7Nu376O+7998FjtUpm8dwGuzF1fJdO6/T9LIFxRa1bB302RM/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MiOXcdk++Z92gvzJLElteJsitKgqrEwVrGb95yo3r9uIN4GSJfBL1nSSg2Msxl9NmAmtzSrnqy+tKmDc0anvlR60H2s0pf/h76ngNdu/cdX3KGUfLy14F0TW0isS0AZZ1E2tQmoMMtHVaCVjpRwspxu2z0Urftxf7QVsDMMTSmkJyzxWepgVUP6Pjnspg0jszpISQZI9KKXOF7KtnbtarN6+wqp175s++yNd6Olp705WDRRtSitk63bj8reXYNeLgx1FDtGy+nu3ceih3p3V7YAtk0ToHBjljQDw01620nW4qxF2ZuvZsf1Fk9ikTvvdZ/fxta4dvSrz7wi36rN3yrF37U3B62PPXWYQ/uOU0z1ke2D5fXf3VbZAiRtGt9o0pH0lIGVrJWyVm5o9XsapwnOn/H8njYBtenLK726GD/+yWtmt+ZzH3vi6cFbH964f8M3d9pfAcMdhrTNp7i/ylj2x4JSBkbdaPcS7BP+EDcR1JNfXtn4d9zCeb7Ms7WXvP0fVkUKEGhETG4AAAAASUVORK5CYII"> | ||||||
|
|
@@ -132,7 +160,7 @@ <h1 id="loading" class="m1 center display-none">⌛</h1> | |||||
| $('#topics').append( | ||||||
| $('<div class="topic flex-auto">').append( | ||||||
| $('<div>').append( | ||||||
| $('<h2 class="inline-block m0">').text(name), | ||||||
| $('<h2 class="inline-block m0">', {id: name}).text(name), | ||||||
| $('<a class="ml1 text-decoration-none" target="_blank" rel="noopener">🔗</a>', { | ||||||
| href: repoUrl, | ||||||
| }), | ||||||
|
|
@@ -181,7 +209,46 @@ <h1 id="loading" class="m1 center display-none">⌛</h1> | |||||
| .focus(); | ||||||
| } | ||||||
|
|
||||||
| function createNavbar(topic) { | ||||||
|
||||||
| $('.li').append( | ||||||
| $('<a>', { | ||||||
| id: `li${topic}`, | ||||||
|
||||||
| href: `#${topic}` | ||||||
| }).text(topic) | ||||||
| ); | ||||||
| } | ||||||
|
|
||||||
| let list = []; | ||||||
|
||||||
| $(document).ready(() => { | ||||||
sushain97 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| TOPICS.forEach(item => { | ||||||
|
||||||
| TOPICS.forEach(item => { | |
| TOPICS.forEach(({name}) => { |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This list seems completely unnecessary. TOPICS can be used directly below instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What method for TOPICS should I use? TOPICS. push(heading) doesn't work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TOPICS.forEach can be used directly below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I meant
TOPICS.name.forEach(topic => {
doesn't work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can work if you use topic.name later. I never suggested TOPICS.name.forEach.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try using the debugger.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I managed to get some of it working—the titles are there now, but the arrows are gone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debugger :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works now!
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this also happen on window resize?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added that, as well.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variables that do not change should be const.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I'll update that tomorrow.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does the var in vartop refer to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It refers to variable, for each of the heading variables. Would you suggest I rename it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to name a variable var to indicate that it's a variable? Something like heading_position maybe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I'll rename that.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| let $heading = $(`#li${heading}`); | |
| $(`#li${heading}`).text(`${heading} ${vartop.top > bottom ? '↓' : '↑'}`); |
nathanchi marked this conversation as resolved.
Show resolved
Hide resolved
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is there an extra list element?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's only one list element. Would you like me to make this list element hard-coded in the html instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, I'll do that. :)

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many of these rules should be replaced with the basscss v7 rules. e.g.
.m0ismargin: 0.