commit 089201a87f56a34c2a36d68051518d753954c582
parent 6aab331f5aca0f38f6d6b82e2966bc84087e0e8f
Author: Alex Balgavy <alex@balgavy.eu>
Date: Fri, 29 Dec 2023 23:25:15 +0100
More updates
Diffstat:
2 files changed, 12 insertions(+), 52 deletions(-)
diff --git a/ebooks.html b/ebooks.html
@@ -42,7 +42,18 @@
</script>
</head>
<body>
- <noscript>This will not work without JS, which is required to open links in new tabs.</noscript>
+ <noscript>
+ <p>This will not work without JS, which is required to open links in new tabs.</p>
+ <div>
+ Searches:
+
+ <ul>
+ <li><a href='https://libgen.rs'>https://libgen.rs</a></li>
+ <li><a href='https://annas-archive.org'>https://annas-archive.org</a></li>
+ <li><a href='https://standardebooks.org'>https://standardebooks.org</a></li>
+ </ul>
+ </div>
+ </noscript>
<h1>Search Ebooks</h1>
<form id='searchform'>
<input id='search' type="text" class="text" value="" name="q" placeholder="Search..." autocomplete="off" tabindex="0">
diff --git a/movies.html b/movies.html
@@ -1,51 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Search - Ebooks</title>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <!-- For browsers without prefers-color-scheme, change theme based on time of day -->
- <script type="text/javascript">
- if (window.matchMedia('(prefers-color-scheme: dark)').media === 'not all') {
- document.documentElement.style.display = 'none';
- var hour = new Date().getHours();
- var sheet = (hour >= 18 || hour < 7) ? "css/dark.css" : "css/light.css";
- document.head.insertAdjacentHTML(
- 'beforeend',
- '<link rel="stylesheet" type="text/css" href="'+sheet+'" onload="document.documentElement.style.display = \'\'">'
- );
- }
- </script>
- <!-- For browsers without JS, load the light theme -->
- <noscript><link rel="stylesheet" type="text/css" href="css/light.css"></noscript>
- <!-- For browsers supporting prefers-color-scheme, use that -->
- <link rel="stylesheet" type="text/css" href="css/dark.css" media="(prefers-color-scheme: dark)">
- <link rel="stylesheet" type="text/css" href="css/light.css" media="(prefers-color-scheme: light)">
-
- <script>
- document.addEventListener('DOMContentLoaded', function() {
- document.getElementById('searchform').onsubmit = function(event) {
- event.preventDefault();
- var searchstring = event.currentTarget[0].value;
- console.log(event);
- var engines = [
- `https://libgen.rs/search.php?req=${searchstring}`,
- `https://annas-archive.org/search?q=${searchstring}`,
- `https://standardebooks.org/ebooks?query=${searchstring}`,
- ];
- for (var i in engines) {
- window.open(engines[i], "_blank");
- }
- }
- })
- </script>
- </head>
- <body>
- <noscript>This will not work without JS, which is required to open links in new tabs.</noscript>
- <h1>Search Movies</h1>
- <form id='searchform'>
- <input id='search' type="text" class="text" value="" name="q" placeholder="Search..." autocomplete="off" tabindex="0">
- </form>
- </body>
-</html>