panorama software,virtual tour software
Alternate Text
Joined: 2006-12-03
Send Msg:
Posts: 8
2012-02-09
#1

TW 7 Auto Detect safari Browser

I noticed when publishing in the TW 7 version now flash/HTML5 in auto did not seem to auto detect safari browser it just redirects to flash default now.  Has anyone modified this default code to check for safari browser.

<html>
    <head>
     <META NAME="GENERATOR" Content="Tourweaver">
      <title>Virtual Tour Created By Easypano</title>
    </head>
    <body>
      <script type="text/javascript">
    var _url="";
    var _bi=window.navigator.userAgent.toLowerCase();
    if(_bi.indexOf("iphone")>0 || _bi.indexOf("ipad")>0 || _bi.indexOf("ipod")>0) _url="html5/Project29.html";
    else _url="flash/f29_Project29.html";
    window.location.href=_url;
      </script>
    </body>
</html>


Alternate Text
Joined: 2012-01-17
Send Msg:
Posts: 38
2012-02-10
#2

i think you should add

_bi.indexOf("safari")>0

after

_bi.indexOf("ipod")>0

 

like this

if(_bi.indexOf("iphone")>0 || _bi.indexOf("ipad")>0 || _bi.indexOf("ipod")>0 || _bi.indexOf("safari")>0) _url="html5/Project29.html";

 

probably works

 


Alternate Text
Forum Moderator
Joined: 2002-11-23
Send Msg:
Posts: 5438
2012-02-10
#3

It is normal for Safari to display in Flash if Flash plug-in is installed. Flash is the preferred player.

The simple fact of the matter is that Tourweaver doesn't offer large enough HTML5 cube faces for decent display on a PC/Laptop. The maximum offered is for iPad at 955px. Which look rather ordinary of a screen with a resolution higher than the iPad's 1024x768.

Regards, Smooth [8D]


Alternate Text
Joined: 2006-12-03
Send Msg:
Posts: 8
2012-02-10
#4

Thanks Smooth and Panozon

First the code change to include safari does work tested. Next a hint from Smooth was my flash and shockwave plug-in where not up to date causing tour not to display correctly in safari browser for TW 7.   


Alternate Text
Joined: 2012-01-17
Send Msg:
Posts: 38
2012-02-11
#5

ok try this

_bi.indexOf("mac")>0

probably works