Page 1 of 1

putting close button in pop up tour

Posted: Tue Sep 18, 2012 5:30 pm
by zoomhome
If I have a group of thumbnails that open a new window which contains my tour and screen tint to just showing it in a medium sized window, what is the call I can put into the skin to close that window leaving the web page open behind it. I know I can close the screen tint, but how do I close the actual new window I've opened from the thumbnail using the skin?

Russ Addie
Zoomhome

Re: putting close button in pop up tour

Posted: Thu Dec 13, 2012 3:13 pm
by Hopki
Hi Russ,
If you have a thumbnail in your web page that opens a popup tour you can add a close button in the skin of the tour to close itself.
Use the Go To URL action and enter the following code:

Code: Select all

javascript:close();
The attached project has an index page that has links to open the Flash and HTML5 panoramas in the output folder.
The skin used in both Flash and HTML5 outputs has a close button with the above code.

Hope this helps.
Regards,
Hopki

Re: putting close button in pop up tour

Posted: Sat Oct 21, 2017 9:41 pm
by Westlake
Hi Hopki, I tried this and it didn't work for me, has something changed with newer versions of Pano2VR?

http://skateparktour.ca/VR/OldsVR/

Setup screen shot:
https://www.dropbox.com/s/tbet28biuxi7s ... 8.png?dl=0

Re: putting close button in pop up tour

Posted: Sat Oct 21, 2017 10:37 pm
by 360Texas
Chrome Developer Tools.
Observation: When visiting http://skateparktour.ca/VR/OldsVR/

Results: Have not seen this before. Maybe normal.

Pano2VR player - Prefix:-webkit-, CSS 3D available, WebGL available pano2vr_player.js:369

pano2vr_player.js:227
Pano2VR player - Prefix:-webkit-, CSS 3D available, WebGL available

[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
b.Pk @ pano2vr_player.js:369
pano2vrgyro.js:297

[Deprecation] The deviceorientation event is deprecated on insecure origins, and support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.
enable @ pano2vrgyro.js:297 3skin.js:308

skin.js:308 Scripts may close only the windows that were opened by it.
_svg_1.onclick @ skin.js:308

skin.js:513

[Violation] 'setTimeout' handler took 58ms
skin.js:513
[Violation] 'setTimeout' handler took 59ms
skin.js:513
[Violation] 'setTimeout' handler took 51ms
skin.js:513
[Violation] 'setTimeout' handler took 55ms
2pano2vr_player.js:227 restart recover timer
pano2vr_player.js:330
[Violation] 'requestAnimationFrame' handler took 67ms

Re: putting close button in pop up tour

Posted: Sun Oct 22, 2017 8:02 am
by Westlake
Thanks Dave, I think I understood enough of that to know I can't do what I am trying to do, close a window opened by an html page. Thanks for clearing that up for me :D