make view better + add warning color css for previous commit
This commit is contained in:
@ -131,13 +131,25 @@ a#similar {
|
|||||||
float: left;
|
float: left;
|
||||||
width: 75%;
|
width: 75%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
overflow: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
#bwallpaperview img {
|
#bwallpaperview img {
|
||||||
|
cursor: zoom-in;
|
||||||
|
max-width: 75%;
|
||||||
|
max-height: 78vh;
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
display: block;
|
display: block;
|
||||||
margin: auto;
|
margin: 0 auto auto auto;
|
||||||
max-width: 100%;
|
inset: 0;
|
||||||
max-height: 100%;
|
}
|
||||||
|
|
||||||
|
#bwallpaperview input[type=checkbox]:checked~img {
|
||||||
|
cursor: zoom-out;
|
||||||
|
max-height: 100000000%;
|
||||||
|
max-width: 100000000%;
|
||||||
|
width: 150%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer {
|
#footer {
|
||||||
@ -217,3 +229,7 @@ a {
|
|||||||
a:hover {
|
a:hover {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#error { color: var(--nsfw-color-1); }
|
||||||
|
#warn { color: var(--sketchy-color-1); }
|
||||||
|
#info { color: var(--sfw-color-1); }
|
||||||
|
8
view.php
8
view.php
@ -55,5 +55,13 @@
|
|||||||
if ($_GET['p'] == "nsfw" && !$apikey)
|
if ($_GET['p'] == "nsfw" && !$apikey)
|
||||||
printf("<p id='error'>Server doesn't have an apikey, cannot view image.</p>");
|
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>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user