forked from Cavemanon/cavepaintings
enable image to switch between full and both, since before it got stuck with a click without alternating.
This commit is contained in:
parent
de3b090740
commit
dca146ac7e
@ -37,10 +37,13 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
});
|
||||
});
|
||||
|
||||
$("img.shm-main-image").click(function(e) {
|
||||
switch(Cookies.get("ui-image-zoom")) {
|
||||
case "full": zoom("width"); break;
|
||||
default: zoom("full"); break;
|
||||
$("img.shm-main-image").click(function(e)
|
||||
{
|
||||
switch(Cookies.get("ui-image-zoom"))
|
||||
{
|
||||
case "full": zoom("both"); break;
|
||||
case "both": zoom("full"); break;
|
||||
default: zoom("both"); break;
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user