var OSName="Unknown OS"; if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows"; if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS"; if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX"; if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux"; if (navigator.appVersion.indexOf("iPhone")!=-1) OSName="iOS"; if (navigator.appVersion.indexOf("iPad")!=-1) OSName="iPad"; if (navigator.appVersion.indexOf("Android")!=-1) OSName="Android"; if(OSName === "iOS"){ window.location = "https://apps.apple.com/se/app/ibd360/id1521827209"; } if(OSName === "iPad"){ window.location = "https://apps.apple.com/se/app/ibd360/id1521827209"; } if(OSName === "MacOS"){ window.location = "https://apps.apple.com/se/app/ibd360/id1521827209"; } if(OSName === "Android"){ window.location = "https://play.google.com/store/apps/details?id=se.ibd_hospitalapp_tillotts_pharma.app"; }