Compare commits
No commits in common. "ba3785df0ccd4913b3d638c915ebfa7cb421b048" and "697f1818abac06c51acdca35a48894d203806684" have entirely different histories.
ba3785df0c
...
697f1818ab
@ -3,28 +3,24 @@ function displayHeader() {
|
||||
{
|
||||
href: "/",
|
||||
name: "Home",
|
||||
accessKey: "h",
|
||||
},
|
||||
{
|
||||
href: "/register/",
|
||||
name: "Register",
|
||||
accessKey: "r",
|
||||
},
|
||||
{
|
||||
href: "/login/",
|
||||
name: "Login",
|
||||
accessKey: "l",
|
||||
},
|
||||
{
|
||||
href: "/upload/",
|
||||
name: "Upload",
|
||||
accessKey: "u",
|
||||
},
|
||||
].map(({name, href, accessKey}) => {
|
||||
].map(({name, href}) => {
|
||||
if (href === window.location.pathname) {
|
||||
return `<a href="${href}" accesskey="${accessKey}"><b>${name}</b></a>`
|
||||
return `<a href="${href}"><b>${name}</b></a>`
|
||||
} else {
|
||||
return `<a href="${href}" accesskey="${accessKey}">${name}</a>`
|
||||
return `<a href="${href}">${name}</a>`
|
||||
}
|
||||
}).join(" - ");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user