$(document).ready(function () { var width = (window.innerWidth > 0) ? window.innerWidth : screen.width; if(width > 1200) { var parentDiv = $("
", { class: "bubbleChatParent", style: "position: fixed; right:50px; bottom:50px; z-index:999999999999;", }); $("body").append(parentDiv); } else { var parentDiv = $("
", { class: "bubbleChatParent mobileIframe", style: "position: fixed; right:0px; bottom:0px; z-index:999999999999; width:100%;", }); $("body").append(parentDiv); } }); $(document).ready(function () { 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 = $("