Image-stitching and virtual tour solutions My account Updates
It is currently Mon Sep 22, 2014 3:17 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Fri Dec 06, 2013 12:22 pm 
Offline
Member

Joined: Fri Sep 27, 2013 10:10 am
Posts: 41
Hey there i have a problem concerning Safari-Browser.

Version 6.0.5 (8536.30.1)
Also 5.1.7 (7534.57.2)
and maybe all others...

To make the panoramamanue flexible (%with same as the Floorplan and orientated direktly under it) I edited the panoramamenue via sript:

<style>
div.kolorAreaContent ul.kolorMenu {
list-style: none; }
</style>

<script>

function fixMenuPositionAndStyle() {
var $menu = $('#panoramaMenu');
var $floorPlanContent = $("#floorPlan .floorplanContent");
if(!$menu.size() > 0 || !$floorPlanContent.size() > 0) {
setTimeout(fixMenuPositionAndStyle, 100);
return;
}
$menu.css('position', '');
$menu.css('width', '30%');
$menu.css('top', '');
// $menu.appendTo($("#floorPlanArea .kolorAreaContent"));
$menu.appendTo($floorPlanContent);
// make sure we have the last word if the menu position has been overridden
setTimeout(fixMenuPositionAndStyle, 400);
}

var fixMenuRunningTimer = null;

function deplayedFixMenuPositionAndStyle() {
if(fixMenuRunningTimer) {
clearTimeout(fixMenuRunningTimer);
}
fixMenuRunningTimer = setTimeout(fixMenuPositionAndStyle, 300);
}

$(window).resize(function(event) {
var $menu = $('#panoramaMenu');
$menu.css('top', '');
});
$(document).ready(function() {
setTimeout(fixMenuPositionAndStyle, 100);
});
window.addEventListener('orientationchange', deplayedFixMenuPositionAndStyle);
</script>

Do you have any idea to make this work in Safari too?

Best Wishes
Arne


Attachments:
File comment: after Coding: problem in Safari
Problem_changed_safari.png
Problem_changed_safari.png [ 1.98 MiB | Viewed 221 times ]
File comment: after Coding: no problem in Firefox
no problem_changed_safari.png
no problem_changed_safari.png [ 1.98 MiB | Viewed 221 times ]
File comment: Before coding: The usual position and orientation
usual position and size.jpg
usual position and size.jpg [ 305.93 KiB | Viewed 221 times ]
Top
 Profile  
 
PostPosted: Mon Dec 09, 2013 10:25 am 
Offline
Member
User avatar

Joined: Tue Apr 09, 2013 10:59 am
Posts: 2282
Location: France
It's difficult to offer you a solution because I can't see your code. An url can help to help you to find a solution.
So an other problem is the events and actions of panoramaMenu on window resize. Is it taken in account into your script ?

_________________
Benjamin
http://www.kolor.com


Top
 Profile  
 
PostPosted: Mon Dec 09, 2013 10:31 am 
Offline
Member

Joined: Fri Sep 27, 2013 10:10 am
Posts: 41
Oh, here is the link:
http://www.proundmotion.de/vt/graef/faz.html

The Problem is only in Safari.

I filled in the script after exporting the tour. The Script is in faz.html

Do you need any more information? Thank you a lot!


Top
 Profile  
 
PostPosted: Mon Dec 09, 2013 10:47 am 
Offline
Member
User avatar

Joined: Tue Apr 09, 2013 10:59 am
Posts: 2282
Location: France
First quick check.
IE10 ok
Firefox ok
Chrome : doesn't work. PanoramaMenu is never displayed. A script try to refresh often.

_________________
Benjamin
http://www.kolor.com


Top
 Profile  
 
PostPosted: Mon Dec 09, 2013 1:03 pm 
Offline
Member

Joined: Fri Sep 27, 2013 10:10 am
Posts: 41
Do you have any suggestion to get the optical effect without my added scrypt?


Top
 Profile  
 
PostPosted: Tue Dec 10, 2013 9:12 am 
Offline
Member
User avatar

Joined: Tue Apr 09, 2013 10:59 am
Posts: 2282
Location: France
Better way I think is to use the panorama menu over the floorplan plugin.
Then into the krpano code activate the panorama menu on floorplan events () rather than ontourstart event.

Your code
Code:
...
<events name="kolorMenuEvents-panoramaMenu" keep="true" onTourStart="showKolorMenu-panoramaMenu();" hidetourcontrols="hideKolorMenu-panoramaMenu();" showtourcontrols="showKolorMenu-panoramaMenu();"/>
...


New code (remove the onTourStart event and add css rule to fit a display size for all items)
Code:
...
<events name="kolorMenuEvents-panoramaMenu" keep="true" hidetourcontrols="hideKolorMenu-panoramaMenu();" showtourcontrols="showKolorMenu-panoramaMenu();"/>
...

_________________
Benjamin
http://www.kolor.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group