Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

360boy

Fortgeschrittener

  • »360boy« ist der Autor dieses Themas

Beiträge: 249

Wohnort: Mexico City

Beruf: Virtual tours, Krpano coding, Graphic Design, Photographer, Panographer

  • Nachricht senden

1

Donnerstag, 4. Juli 2013, 20:45

Desktop, tablet, mobile handling...

Hello there, I'd like to manage 3 different skins for my virtual tours, one for desktop, one for tablets and one for mobiles. So, I'd like to do something like this at the beginning of the xml:

<include url="skin_desktop.xml" devices="desktop"/>
<include url="skin_tablet.xml" devices="tablet"/>
<include url="skin_mobile.xml" devices="mobile"/>

I just want to make sure that "tablet" and "mobile" include all the respective devices. Is the following ok?

tablet = {tablet, ipad}
mobile = {mobile, iphone, ipod}

I guess the list is longer because I'm not considering things like ipad+retina, tablet+android, etc. as I say I just want to make sure I can cover all devices with those 3 skins.

Regards

Luis

2

Freitag, 5. Juli 2013, 18:22

Hi,

yes, this is okay, with this 3 devices settings you are covering all possible devices.

tablet = all tables (except windows 8 IE10 tablets with x86 cpu - there is no way to detect if they are a normal pcs or tablets)
mobile = all mobiles (android mobiles, iphone, ipod, blackberry mobile, windows phones, ..., all devices with 'mobile' in the user agent)
desktop = the default when the device is not a tablet and not a mobile

Best regards,
Klaus

360boy

Fortgeschrittener

  • »360boy« ist der Autor dieses Themas

Beiträge: 249

Wohnort: Mexico City

Beruf: Virtual tours, Krpano coding, Graphic Design, Photographer, Panographer

  • Nachricht senden

3

Freitag, 5. Juli 2013, 22:34

Great, thanx Klaus!

It sounded pretty logical but I wanted to be sure I wasn't missing any device.

Best regrards.

Luis

Beiträge: 148

Wohnort: Italy

Beruf: Freelance Fotographer

  • Nachricht senden

4

Mittwoch, 18. September 2013, 17:53

hi, i'm just simply implement two different skin_setting for each kind of dispositive (desktop, and mobile+tablet) but if i use devices="mobile+tablet" it doesn't work so i have to split skin_setting in tree different group.

http://pastebin.com/AaV6GRnF


but the krpano reference says that "+" operator has to work. isn't it?

tonesh

Schüler

Beiträge: 75

Wohnort: Rome

Beruf: Photographer

  • Nachricht senden

5

Freitag, 20. September 2013, 16:09

Have you try this?

Quellcode

1
devices="mobile|tablet"

Beiträge: 148

Wohnort: Italy

Beruf: Freelance Fotographer

  • Nachricht senden

6

Freitag, 27. September 2013, 11:30

Have you try this?

Quellcode

1
devices="mobile|tablet"
width "|" works! thanks. so can we say that "+" operator doesn't work?

p.s. x studio argento: ho visto il tuo lavoro della galleria di arte moderna....bè sei stata la mia ispirazione!!! perfetto, delicato e geometricamente impeccabile, spiegazioni dettagliatissime.

7

Freitag, 27. September 2013, 12:46

so can we say that "+" operator doesn't work?
No, that can't be said - the + operator works as it should!

It means the combination of the left and the right condition need to be true - and a device can't be mobile AND a tablet, it only be only one of these, so the | (OR) operator is the right choose here.

Best regards,
Klaus

Beiträge: 148

Wohnort: Italy

Beruf: Freelance Fotographer

  • Nachricht senden

8

Mittwoch, 16. Oktober 2013, 13:00

sorry!!!! i read "+" as "or" and "|" as "and".


thanks