This repository has been archived by the owner on Dec 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.ejs
59 lines (58 loc) · 1.96 KB
/
search.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<link rel="stylesheet" type="text/css" href="src/style.css">
<title>manga.pet.</title>
</head>
<body>
<header>
<div>
<div>
<a href="/">
<div class="left">
<img class="logo" src="src/256x256.png">
<h1>manga.pet.</h1>
</div>
</a>
<form action="/search" method="POST">
<input
type="text"
name="manga"
placeholder="Search for manga" />
<button type="submit" value="OK">Search</button>
</form>
</div>
</div>
<div class="nav">
<a href="/"><img src="src/home.svg" class="cog"/></a>
<a href="/settings"><img src="src/cog.svg" class="cog"/></a>
</div>
</header>
<h1>Search results</h1>
<% if (results.length === 0) { %>
<div class="manga-result">
<h2>No manga found.</h2>
<p>Perhaps you mistyped the manga. Sometimes it helps to search in the other language (English/Japanese)</p>
</div>
<% } else { %>
<% for (var i = 0; i < results.length; i++) { %>
<div class="manga-result">
<a href="/profile<%= results[i].link %>">
<h4><%= results[i].manga %></h4>
</a>
</div>
<% } %>
<% } %>
<footer>
<p>© <%= new Date().getFullYear() %> manga.pet.</p>
<p>manga.pet. is Free Software, licensed under the GNU General Public License v3.0.</p>
<p>manga.pet. is not responsible, or affiliated with any of the sites it indexes. Manga is property of their respective owners.</p>
We are using Node.js <span id="node-version"></span>,
Chromium <span id="chrome-version"></span>,
and Electron <span id="electron-version"></span>.
</footer>
</body>
</html>