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.

light_line

Trainee

  • "light_line" started this thread

Posts: 112

Occupation: krpano freelancer || creating ideas & coding them || krpano developer

  • Send private message

1

Monday, September 23rd 2019, 4:31pm

How to force KRpano to show the mobile version of the tour?

Hi,
I am developing a template for KRpano and I need to see my codes result in the mobile.
how to force KRpano to show the mobile version of the tour? (layers and plugins and etc in mobile mode)
I need something like this code:
set(device, mobile);

Alexey Tkachenko

Professional

Posts: 760

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

2

Monday, September 23rd 2019, 4:50pm

Regards,

Alexey

light_line

Trainee

  • "light_line" started this thread

Posts: 112

Occupation: krpano freelancer || creating ideas & coding them || krpano developer

  • Send private message

3

Tuesday, September 24th 2019, 10:23am

thank you very much
I was looking for it. *thumbup*

light_line

Trainee

  • "light_line" started this thread

Posts: 112

Occupation: krpano freelancer || creating ideas & coding them || krpano developer

  • Send private message

4

Tuesday, September 24th 2019, 12:42pm

is it possible to set the fakedevice value by an action in the XML file?

light_line

Trainee

  • "light_line" started this thread

Posts: 112

Occupation: krpano freelancer || creating ideas & coding them || krpano developer

  • Send private message

6

Wednesday, September 25th 2019, 3:15pm

is it possible to set the fakedevice value by an action in the XML file?

You could manually change the 'device' values, e.g. in an action:

Source code

1
set(device, mobile=true, tablet=false, desktop=false);
but that would need to be done before loading an xml file that would use the devices settings - and I definitely wouldn't recommend doing that!

For testing mobile layouts you could also use the Chrome developer tools and select a mobile device there.

Best regards,
Klaus