aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--query.php8
-rw-r--r--style/style.css8
2 files changed, 3 insertions, 13 deletions
diff --git a/query.php b/query.php
index 1b7b7c1..9722bb6 100644
--- a/query.php
+++ b/query.php
@@ -26,12 +26,8 @@
if (!$res[0])
printf("No Results Found :(");
else
- foreach($res[0] as $walls) {
- printf("<form action='/view.php' method='POST'>\n");
- printf("<input type='hidden' name='purity' value='%s'/>\n", $walls["purity"]);
- printf("<button name=wall value='%s' data-value='%s'><img id='%s' width=307 height=206 src=/proxy.php?i=%s></button>\n", $walls["path"], $walls["purity"], $walls["purity"], $walls["thumbs"]["small"]);
- printf("</form>\n");
- }
+ foreach($res[0] as $walls)
+ printf("<a href='/view.php?w=%s&p=%s'><img id='%s' width=307 height=206 src=/proxy.php?i=%s loading='lazy'></a>", $walls["id"], $walls["purity"], $walls["purity"], $walls["thumbs"]["small"]);
printf("</div>\n");
/* page numbers */
diff --git a/style/style.css b/style/style.css
index 11f90fe..4ebfcc7 100644
--- a/style/style.css
+++ b/style/style.css
@@ -55,13 +55,7 @@ h1, #header {
text-align: center;
color: #fff;
}
-#wallpapers form { display: inline-block; }
-
-button[name=wall] {
- all: unset;
- margin: 3px;
- cursor: pointer;
-}
+#wallpapers img { margin: 5px; }
#wallmaster {
width: 100%;