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
/
profile.ejs
79 lines (79 loc) · 2.78 KB
/
profile.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!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="img-src * atom: data:; default-src 'self'; script-src 'self'">
<link rel="stylesheet" type="text/css" href="src/style.css">
<title>manga.pet.</title>
</head>
<body>
<div id="loading" class="loading hidden">
<div class="loading__inner">
<div class="loading__text">
<h3>Downloading and sending</h3>
<p>This might take a second... It is normal for the window to freeze.</p>
</div>
<div class="loading__bar">
<img class="logo" src="src/256x256.png">
</div>
</div>
</div>
<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>
<main class="manga-main">
<% if (message.length !== 0) { %>
<h2 class="message"><%= message %></h2>
<% } %>
<div class="manga">
<div class="manga-summary">
<h1><%= manga.title %></h1>
<p><%= manga.summary %></p>
<div class="chapters">
<h2>Chapters</h2>
<button>Send selected</button>
<% for (var i = 0; i < manga.chapters.length; i++) { %>
<div class="manga-link">
<input type="checkbox" id="check-<%= i %>">
<a class="manga-link-a" href="/download?type=<%= manga.type %>&short=<%= manga.chapters[i].link %>&title=<%= manga.chapters[i].chapter %>">
<h4><%= manga.chapters[i].chapter %></h4>
</a>
</div>
<% } %>
</div>
</div>
<img src="atom://<%= userData %>/temp/manga/image/<%=manga.short%>.jpg"/>
</div>
</main>
<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>
<script src="src/client.js"></script>
</body>
</html>