$(document).ready(function () { var width = (window.innerWidth > 0) ? window.innerWidth : screen.width; if(width > 1200) { var parentDiv = $("
", { class: "bubbleChatParent", style: "position: fixed; right:10px; bottom:10px; z-index:999999999999; align-items: end; display:flex; justify-content: flex-end;", }); $("body").append(parentDiv); } else { var parentDiv = $("
", { class: "bubbleChatParent mobileIframe", style: "position: fixed; right:0px; bottom:0px; z-index:999999999999; width:100%; display:flex; justify-content: flex-end;", }); $("body").append(parentDiv); } let device; var userAgent = navigator.userAgent || navigator.vendor || window.opera; if (/android/i.test(userAgent)) { device = "Android"; } if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) { device = "iOS"; } var width = (window.innerWidth > 0) ? window.innerWidth : screen.width; if(width > 1200){ var iframe = $("