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");