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
putting close button in pop up tour
- Hopki
- Gnome
- Posts: 13025
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
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:
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
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 skin used in both Flash and HTML5 outputs has a close button with the above code.
Hope this helps.
Regards,
Hopki
- Attachments
-
- close_popup.zip
- (206.11 KiB) Downloaded 394 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
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
http://skateparktour.ca/VR/OldsVR/
Setup screen shot:
https://www.dropbox.com/s/tbet28biuxi7s ... 8.png?dl=0
- 360Texas
- Moderator
- Posts: 3684
- Joined: Sat Sep 09, 2006 6:06 pm
- Location: Fort Worth, Texas USA
- Contact:
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
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