Where to find Kolortools.js?  

This sub-forum is for discussing and reporting bugs on any content that is not available by default in Panotour, so this concerns custom HTML templates, extra plugins (both Kolor-provided and third-party), etc...

Ce sous-forum a été créé pour discuter et/ou rapporter des bugs sur tout contenu qui n'est pas disponible par défaut dans Panotour, donc cela concerne les templates HTML customisés, plugins supplémentaires, etc...
no avatar
mediasphere
Member
 
Topic author
Posts: 11
Likes: 0 post
Liked in: 1 post
Joined: Fri Jul 17, 2015 5:03 pm
Info

Where to find Kolortools.js?

by mediasphere » Tue May 24, 2016 9:49 am

I cannot find the full version of Kolortools.js, only the Kolortools.min versions, I would like to see the functions in the file to use them from a HTML Template. This page on the documentation lists it under "What we already have":

http://www.kolor.com/wiki-en/action/view/My_first_plugin_(Javascript)

but I can't find it, or where to download it.

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

Re: Where to find Kolortools.js?

by Annis » Tue May 24, 2016 1:19 pm

The unminimised version isn't accessible to users.

no avatar
mediasphere
Member
 
Topic author
Posts: 11
Likes: 0 post
Liked in: 1 post
Joined: Fri Jul 17, 2015 5:03 pm
Info

Re: Where to find Kolortools.js?

by mediasphere » Tue May 24, 2016 2:19 pm

The reason I ask is that I am desperately looking for a way to hide and show the floor plan from a HTML template that I have created, is there any such function I can call?

http://www.kolor.com/forum/viewtopic.php?f=116&t=31877

User avatar
bdd
Kolor Team
 
Posts: 2802
Likes: 14 posts
Liked in: 130 posts
Joined: Tue Jan 18, 2011 4:05 pm
Info

Re: Where to find Kolortools.js?

by bdd » Tue May 24, 2016 3:16 pm

You don't need to have the code of Kolortools.js to call those functions.

Just have a look to the HTML templates from this page :
http://www.kolor.com/wiki-en/action/vie ... _Templates

And to the associated plugin.

In your template, you have to add the following function :
Code: Select all
         var tourplayer = null;
         function getTourPlayer() {
            if ( tourplayer == null ) {
               tourplayer = document.getElementById('krpanoSWFObject');
            }return tourplayer;
         }



Then, you have to call the following :
Code: Select all
            getTourPlayer().call("showFloorplan();");


or
Code: Select all
            getTourPlayer().call("hideFloorplan();");



But, those actions will not exist in the generated XML code, so you have to force their generation in the code.
The plugin is there for it.
You have to create your own plugin dedicated to your own template.
In the plug_info.xml file, you'll have to tell PTP that you need those floorplan actions.

Code: Select all
<depends>
    <template url="KOLORRES:showfloorplancall.tmpl"/>
    <template url="KOLORRES:hidefloorplancall.tmpl"/>
</depends>



Gérald

no avatar
mediasphere
Member
 
Topic author
Posts: 11
Likes: 0 post
Liked in: 1 post
Joined: Fri Jul 17, 2015 5:03 pm
Info

Re: Where to find Kolortools.js?

by mediasphere » Tue Oct 04, 2016 11:18 am

I have now come back to this project after some time and its great to have an answer for this finally!
I can use the "getTourPlayer().call("hideFloorplan();");" command in my project as it is. I assume its because either the Bootstrap External Command Plugin in or the Call Actions On Tour Events Plugin has already forced their generation in the code?


Who is online

Users browsing this forum: No registered users and 1 guest

cron