make view better + add warning color css for previous commit

This commit is contained in:
2023-10-09 09:08:52 -04:00
parent 333a112ff6
commit ef59ac4499
2 changed files with 27 additions and 3 deletions

View File

@ -131,13 +131,25 @@ a#similar {
float: left;
width: 75%;
height: 100%;
overflow: scroll;
}
#bwallpaperview img {
cursor: zoom-in;
max-width: 75%;
max-height: 78vh;
width: auto;
height: auto;
display: block;
margin: auto;
max-width: 100%;
max-height: 100%;
margin: 0 auto auto auto;
inset: 0;
}
#bwallpaperview input[type=checkbox]:checked~img {
cursor: zoom-out;
max-height: 100000000%;
max-width: 100000000%;
width: 150%;
}
#footer {
@ -217,3 +229,7 @@ a {
a:hover {
font-style: italic;
}
#error { color: var(--nsfw-color-1); }
#warn { color: var(--sketchy-color-1); }
#info { color: var(--sfw-color-1); }

View File

@ -55,5 +55,13 @@
if ($_GET['p'] == "nsfw" && !$apikey)
printf("<p id='error'>Server doesn't have an apikey, cannot view image.</p>");
?>
<div>
<label>
<input type="checkbox">
<?php
printf("<img src='/proxy.php?i=%s'>\n", $_POST['wall']);
?>
</label>
</div>
</div>
</div>