Added Db support to save last viewed Manga and chapter, and auto load it next time you start the server. Added Providers to add more Manga Platforms than just Bato in the future
104 lines
3.0 KiB
Plaintext
104 lines
3.0 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>{{.Title}}</title>
|
|
|
|
<style>
|
|
body {background-color: #171717}
|
|
|
|
.scroll-container {
|
|
overflow: auto;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
padding-bottom: 0;
|
|
margin-bottom: 0;
|
|
width: 100%;
|
|
|
|
display: block;
|
|
box-sizing: border-box;
|
|
border-width: 0;
|
|
}
|
|
|
|
.scroll-container img {
|
|
padding: 0;
|
|
display: block;
|
|
/*min-width: 20%;*/
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
max-width: 100%;
|
|
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/*
|
|
* I have no clue what css is, jesus christ ...
|
|
*/
|
|
.center {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
width: 50%;
|
|
padding: 10px;
|
|
|
|
vertical-align: middle;
|
|
justify-content: center;
|
|
display: flex;
|
|
}
|
|
|
|
.button-36 {
|
|
background-image: linear-gradient(92.88deg, #455EB5 9.16%, #5643CC 43.89%, #673FD7 64.72%);
|
|
border-radius: 8px;
|
|
border-style: none;
|
|
box-sizing: border-box;
|
|
color: #FFFFFF;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
font-family: "Inter UI","SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
height: 4rem;
|
|
padding: 0 1.6rem;
|
|
text-align: center;
|
|
text-shadow: rgba(0, 0, 0, 0.25) 0 3px 8px;
|
|
transition: all .5s;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.button-36:hover {
|
|
box-shadow: rgba(80, 63, 205, 0.5) 0 1px 30px;
|
|
transition-duration: .1s;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.button-36 {
|
|
padding: 0 2.6rem;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="center">
|
|
<form method="post" action="/prev">
|
|
<input type="submit" name="Prev" value="Prev" class="button-36">
|
|
<input type="submit" name="Exit" value="Exit" class="button-36" formaction="/exit">
|
|
<input type="submit" name="Next" value="Next" class="button-36" formaction="/next">
|
|
</form>
|
|
</div>
|
|
<div class="scroll-container">
|
|
{{range .Images}}
|
|
<img src="/img/{{.Path}}" alt="img_{{.Index}}"/>
|
|
{{end}}
|
|
</div>
|
|
<div class="center">
|
|
<form method="post" action="/prev">
|
|
<input type="submit" name="Prev" value="Prev" class="button-36">
|
|
<input type="submit" name="Exit" value="Exit" class="button-36" formaction="/exit">
|
|
<input type="submit" name="Next" value="Next" class="button-36" formaction="/next">
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|