From f3d27290b94510e21addf3bd99c12dc3c08a6664 Mon Sep 17 00:00:00 2001 From: koyu Date: Tue, 28 May 2024 23:42:14 +0200 Subject: [PATCH] Deploy --- buildfiles/js/parse.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildfiles/js/parse.js b/buildfiles/js/parse.js index 1d11812..a1902a4 100644 --- a/buildfiles/js/parse.js +++ b/buildfiles/js/parse.js @@ -1,7 +1,7 @@ $(document).ready(function () { $('a[href*=".jpg"]').each(function () { var styles = "width:100%;"; - if ($(this).html().includes("_right")) { + if ($(this).html().includes("_right") && !navigator.userAgentData.mobile) { styles = "float:right;padding:5px;"; } var imguri = $(this).attr("href"); @@ -13,7 +13,7 @@ $(document).ready(function () { }); $('a[href*=".jpeg"]').each(function () { var styles = "width:100%"; - if ($(this).html().includes("_right")) { + if ($(this).html().includes("_right") && !navigator.userAgentData.mobile) { styles = "float:right;padding:5px;"; } var imguri = $(this).attr("href"); @@ -25,7 +25,7 @@ $(document).ready(function () { }); $('a[href*=".png"]').each(function () { var styles = "width:100%"; - if ($(this).html().includes("_right")) { + if ($(this).html().includes("_right") && !navigator.userAgentData.mobile) { styles = "float:right;padding:5px;"; } var imguri = $(this).attr("href");