You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
frontend/search.html

94 lines
2.9 KiB

<html>
<head>
<title>Mangaloid</title>
<meta charset="UTF-8"/>
<link rel="stylesheet" type="text/css" href="css/stylesheet.css"/>
<link rel="stylesheet" type="text/css" href="css/search.css"/>
<link rel="stylesheet" type="text/css" href="css/title_list.css"/>
</head>
<body>
<div id="header">
<a href="./catalog.html"><img id="home" src="img/home.png"/></a>
<img id="logo" src="img/logo.png"/>
</div>
<div id="content">
<form action="/search.html">
<div id="search">
<div class="one">
<p class="title">Title:</p>
<input class="title" type="search" name="title" placeholder="Title"></input>
</div>
<div class="two">
<p class="artist">Artist:</p>
<input class="artist" type="search" name="artist" placeholder="Artist"></input>
<p class="author">Author:</p>
<input class="author" type="search" name="author" placeholder="Author">
</div>
<div class="three">
<p class="tags">Tags:</p>
<input class="tags" type="search" name="tags" placeholder="Tags"></input>
</div>
<div class="four">
<p class="sort">Sort:</p>
<select name="sort" class="sort">
<option value="name">name</option>
<option value="date">date</option>
<option value="status">status</option>
</select>
</div>
<button type="submit">Search</button>
</div>
</form>
<h2 id="label"></h2>
<div id="title_list" style="visibility: hidden">
<center>
<table id="table">
<tbody>
<tr>
<th></th>
<th><p>Title</p></th>
<th><p>Artist/Author</p></th>
<th><p>Status</p></th>
<th><p>Chapters</p></th>
<th><p>Updated</p></th>
</tr>
</tbody>
</table>
</center>
</div>
<div id="footer">
</div>
</div>
<script type="text/javascript" src="js/title_list.js"></script>
<script>
document.onreadystatechange = function () {
if(document.readyState == "interactive") {
<<<<<<< HEAD
var addr = decodeURIComponent(document.cookie).split(";")[0].split("=")[1];
console.log("loading from "+addr);
load_titles("https://"+addr+"/manga/search"+window.location.search);
document.querySelector("#title_list").style.visibility = "visible";
document.querySelector("#label").textContent = "Result";
=======
console.log("on load");
load_titles("https://amangathing.ddns.net/instance/manga/search"+window.location.search);
document.querySelector("#title_list").style.visibility = "visible";
document.querySelector("#label").textContent = "Result";
>>>>>>> b91c43f186414c87cd93ead9d8111707b3ac9565
}
}
</script>
</body>
</html>