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

Saturday, February 21st 2015, 11:23am

using diffrent hotspot styles for desktop and mobile

What is the code for getting a hotspot to use one style for viewing on desktop browser and another style on mobile/tablets. The aim is to get the larger scale for viewing on mobile/tablet being given the smaller screen size.

Tuur

Sage

Posts: 3,208

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

2

Saturday, February 21st 2015, 11:43am

well.. i like this one very much.

Source code

1
2
3
	<action name="mobile_stagescale" autorun="preinit" devices="mobile">
		mul(stagescale, 1.8);
	</action>


but you can also do in the onloaded of the hotspot style

Source code

1
if(device.mobile, mul(scale,2));


or so..

but also scale.desktop="1" scale.mobile="2" is possible..

a lot of possibillities here

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

3

Saturday, February 21st 2015, 4:50pm

This is working great! Thank you so much. *thumbup*