-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
86 lines (81 loc) · 3.6 KB
/
index.html
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
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
<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>Civ Books</title>
<link rel="stylesheet" href="style.css">
<meta property="og:type" content="object" />
<meta property="og:title" content="Civ Books" />
<meta property="og:description" content="Read full books written on Civ servers." />
<meta property="og:site_name" content="Civ Books" />
<meta property="og:url" content="https://CivBooks.github.io/" />
<meta property="og:image" content="https://CivBooks.github.io/img/icon.png" />
<link rel="shortcut icon" href="img/icon.png">
<link rel="prefetch" href="font/Minecraft-Regular.otf">
<link rel="prefetch" href="img/page.png">
</head>
<body id="top">
<header>
<img src="img/icon.png" width="128px" alt="Civ Books Logo" style="float: right" />
<h1>Civ Books</h1>
<aside>Read full books written on Civ servers.</aside>
</header>
<h2 id="search">Search</h2>
<form class=search-form onsubmit="event.preventDefault();updateSearchResults()">
<input autofocus type="search" class="search-query" name="search" id="query"
placeholder="Search titles, authors, contents" />
<input type="submit" class="search-go" value="Go" /></form>
<div id="search-status"></div>
<div id="search-results" class="hidden"></div>
<div id="search-hints">
<p>
Search by Server:
<a href="?search=:server:Civcraft_1">Civcraft 1.0</a>,
<a href="?search=:server:Civcraft_2">Civcraft 2.0</a>,
<a href="?search=:server:Civcraft_3">Civcraft 3.0</a>,
<a href="?search=:server:Devoted_2">Devoted 2.0</a>,
<a href="?search=:server:Devoted_3">Devoted 3.0</a>,
<a href="?search=:server:CivClassic_2">CivClassic 2.0</a>
<a href="?search=:server:CivRealms_2">CivRealms 2.0</a>
<a href="?search=:server:CivMc">CivMc</a>
</p>
<p>
Books from the following servers may be added in the future:
<a href="?search=:server:Civcraft_Temp" class="muted">CivTemp</a>,
<a href="?search=:server:CivEx_1" class="muted">CivEx 1.0</a>,
<a href="?search=:server:CivEx_2" class="muted">CivEx 2.0</a>,
<a href="?search=:server:CivEx_3" class="muted">CivEx 3.0</a>,
<a href="?search=:server:CivEx_First_Light" class="muted">CivEx First Light</a>,
<a href="?search=:server:Devoted_1" class="muted">Devoted 1.0</a>
</p>
<p>
You can search for any words in the book title.
Additionally you can search for specific servers and authors (currently only signees):
</p>
<ul>
<li><code>:server:Civcraft_2</code> to only show books that were available during Civcraft 2.0,</li>
<li><code>:signee:SomethingSaucy</code> to only show books signed by SomethingSaucy.</li>
</ul>
<p>
In the future, full text search, search by topic, genre,
original author, time of writing, current ingame library availability,
<a href="https://www.reddit.com/comments/8swios/" target="_blank">Lawa Nasin</a>,
etc. may become available.
</p>
<p>
Pro tip: If you put just <code>v</code> as search query, all books are shown.
This quirk works because all Civ servers have a <code>v</code> in their name, even Devoted.
</p>
</div>
<footer>
<p>
Part of the <a href="https://github.com/CivBooks" target="_blank" rel="noopener noreferrer">Civ Books</a>
project by <a href="https://github.com/Gjum" target="_blank" rel="noopener noreferrer">Gjum</a>.
</p>
<a href="#top"><img src="img/icon.png" width="64px" alt="Civ Books Logo" /></a>
</footer>
<script src="search.js"></script>
</body>
</html>