insert a javascript function  

Share your tips and tricks here or get help with any Panotour 2.0+ problem!
No bug reports (of any kind) in this forum!
User avatar
bdd
Kolor Team
 
Topic author
Posts: 2417
Likes: 11 posts
Liked in: 96 posts
Joined: Tue Jan 18, 2011 4:05 pm
Info

Re: insert a javascript function

by bdd » Tue Mar 21, 2017 10:41 am

Why don't you react on the "onidle" event from krpano ?
https://krpano.com/docu/xml/#events.onidle

Gérald

User avatar
Annis
Kolor Team
 
Posts: 6063
Likes: 801 posts
Liked in: 440 posts
Joined: Mon Aug 12, 2013 12:47 pm
Location: France
Info

Re: insert a javascript function

by Annis » Tue Mar 21, 2017 5:07 pm

Have a look at my post here: viewtopic.php?f=91&t=35362&p=196128#p196128

Depending on what you're trying to do, you could incorporate the krpano code using the action Call KrPano Code, or create an xml file to integrate to the project using the Include an xml plugin.
You can download either or both here: http://www.kolor.com/wiki-en/action/vie ... ra_Plugins

User avatar
Annis
Kolor Team
 
Posts: 6063
Likes: 801 posts
Liked in: 440 posts
Joined: Mon Aug 12, 2013 12:47 pm
Location: France
Info

Re: insert a javascript function

by Annis » Wed Mar 22, 2017 9:19 am

Please keep issues separate, one topic per issue.

The CAOTE issue is separate, nor do I understand what is happening. Please create a new topic and perhaps illustrate the issue or show me your plugin's parameters so that I can recreate the issue on my side.

User avatar
360-compunics-com-ni
Member
 
Posts: 339
Likes: 14 posts
Liked in: 147 posts
Joined: Wed Dec 17, 2014 12:37 am
Location: León, Nicaragua
Info

Re: insert a javascript function

by 360-compunics-com-ni » Sat Mar 25, 2017 6:35 pm

"idletime" expects the time given in seconds, so if you want to wait 5 minutes set it to 300.
And the event "onidle" expects as functioncall the name of the action to perform, so instead of setting it to 5, call the action as follows:
Code: Select all
onidle="goto();"
Out now: DeviceCheck for PTP plugins! https://www.kolor.com/forum/viewtopic.php?f=40&t=37446

Want to know how clients use your tours? Google Analytics Track Events plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=34442

Add actions to your hotspots: Hotspot Actionlist plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=35829

likes this post.


Who is online

Users browsing this forum: No registered users and 5 guests