You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, March 29th 2017, 9:23am

The div creat by JS was not visible in krpano fullscreen mode,but it's visible in the Browser's fullscreen mode(chrome firefox..)

I add div with js in pano,it works.but when I enter the fullscreen mode with kr action(switch(fullscreen);),the div disappear.
if I enter fullscreen mode with F11(Browser's function),div still there.

Thx for your help !!!

2

Sunday, April 2nd 2017, 8:25am

Hi,

when using the 'F11 browser fullscreen', the browsers makes the whole webpage fullscreen,
but when using the HTML5 fullscreen API via krpano, then only the krpano element gets into fullscreen mode.

For adding custom div elements to krpano, I would recommend the plugin API:
https://krpano.com/docu/plugininterface/#top

but it would be also possible to get internal div elements where custom elements could be added:
var layer = krpano.get("control.layer");
or
var layer = krpano.get("display.viewerlayer");
and then:
layer.appendChild( your_custom_div );

Best regards,
Klaus