diff options
author | Minteck <contact@minteck.org> | 2021-12-16 23:06:28 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2021-12-16 23:06:28 +0100 |
commit | 45557cdd61850abc30959c39054d29b45fefb8c2 (patch) | |
tree | 60f0ec310aae36eeb020b7ba5796bdd4b84d4607 /htdocs/private/header.ejs | |
parent | 7769ba124e9325a4848ca2925241de0526bd6a4e (diff) | |
download | wolfeye-js-45557cdd61850abc30959c39054d29b45fefb8c2.tar.gz wolfeye-js-45557cdd61850abc30959c39054d29b45fefb8c2.tar.bz2 wolfeye-js-45557cdd61850abc30959c39054d29b45fefb8c2.zip |
It's finally done!
Diffstat (limited to 'htdocs/private/header.ejs')
-rw-r--r-- | htdocs/private/header.ejs | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/htdocs/private/header.ejs b/htdocs/private/header.ejs index 518b0a8..9236f3c 100644 --- a/htdocs/private/header.ejs +++ b/htdocs/private/header.ejs @@ -4,11 +4,22 @@ <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <title><%- lang.global.website %> - <%= title %></title> - <link rel="shortcut icon" href="/assets/logo.svg" type="image/svg+xml"> - <link rel="stylesheet" href="/assets/css/fonts.css"> - <link rel="stylesheet" href="/assets/css/rainbow.css"> + <link rel="search" type="application/opensearchdescription+xml" title="WolfEye" href="/assets/opensearch.xml"> + <script> + lang = JSON.parse(atob("<%- Buffer.from(JSON.stringify(lang)).toString("base64"); %>")); + </script> + <title><% + + if (typeof title !== 'undefined') { + pgname = title + " - " + lang.global.website; + } else { + pgname = lang.global.website; + } + + %><%= pgname %></title> + <link rel="shortcut icon" href="/assets/logo-small.svg" type="image/svg+xml"> <link rel="stylesheet" href="/assets/css/main.css"> + <script src="/assets/jquery.js"></script> </head> <body> <main style="overflow-x: hidden;">
\ No newline at end of file |