Sie sind nicht angemeldet.

1

Mittwoch, 14. Januar 2015, 15:58

common js file

Hi,

I have a requirement to make a series of html files, each with a single panorama in them, and some hotspots in each file. These hotspots will link together via a custom url which will display some video.

I have done this using the Make Pano (Normal) droplet, and worked out how to edit the config files, and the generated xml to get the desired results.

I've now made my own droplet and custom config files. What I can't see how to do is specify a name for the .js file which has the embedding script in it. I'd like it to be a single common file - it doesn't need to be named the same as the panorama/html file.

Or do I create a single .js file from krpano.js and embedpano.js and then specify that as htmltemplate_js ?

2

Mittwoch, 14. Januar 2015, 17:00

OK - I worked out how to create a single .js file, using krpano tools.

But when I specify this in the config file, it doesn't make any difference.

Quellcode

1
htmltemplates_js=../viewer/myjsfile.js
still becomes

Quellcode

1
<script src="xml/salon.js"></script>
in the resulting html file


In addition, I still seem to get .swf files, which I don't want. I've specified the following in the config file

Quellcode

1
#outputflash=falsehtml5=true


I can't find any documentation for these parameters (obvious thought it seems. The terminal output also says

Zitat

Output: Flash=no HTML5=yes

Yet the later output says

Zitat


processing - salon

- converting sphere to cube format...

done.

- input: *salon*.jpg (converted cube, size=2048x2048)

- output: html, swf, xml, tiles

- multires: no, maxcubesize=2048

- making images...

done.
So why does the droplet decide to produce the .swf file, when it says it's not going to?

3

Montag, 19. Januar 2015, 10:11

Hi,

right, the swf file will be always generated, but I'm already planing an option to disable that.

The output=flash setting currently refers only to the chosen html5 setting.

Best regards,
Klaus