[handle_pixel] change post view defaults

This commit is contained in:
Noz 2024-02-20 22:29:36 -05:00 committed by Shish
parent 93944fc883
commit 3b5976c334

View file

@ -39,7 +39,7 @@ document.addEventListener('DOMContentLoaded', () => {
$("img.shm-main-image").click(function(e) { $("img.shm-main-image").click(function(e) {
switch(shm_cookie_get("ui-image-zoom")) { switch(shm_cookie_get("ui-image-zoom")) {
case "full": zoom("width"); break; case "full": zoom("both"); break;
default: zoom("full"); break; default: zoom("full"); break;
} }
}); });
@ -47,4 +47,7 @@ document.addEventListener('DOMContentLoaded', () => {
if(shm_cookie_get("ui-image-zoom")) { if(shm_cookie_get("ui-image-zoom")) {
zoom(shm_cookie_get("ui-image-zoom")); zoom(shm_cookie_get("ui-image-zoom"));
} }
else {
zoom("both");
}
}); });