not (!) tablet - still showing on ipad?
-
-
Hmmm... I thought that ! sign means 'except'. What if try "devices="all|!mobile|!tablet" ? in that case it is "all except mobile and tablets", where as in your code, maybe, the player is somehow confused FROM WHAT it should make that exception?
Well, just guesses, though...
-
Ah... oh. I thought it would mean "not". But I will try your version then Thanks a lot for taking your time
Yours,
Michael -
-
it's wrong solution, because iPad is also tablet!
Maybe:
devices="!mobile|!android
!android - for all adnroid device: mobile and tablet, !mobile - for all mobile device and platform, iPhone too. -
Hi,
there are 3 key-characters in the devices check syntax:
| = OR - that means either the left OR the right condition must be true
+ = AND - that means the left AND the right condition must be true
! = NOT - that means the given check will be inverted (from true to false or from false to true)That means when you write:
!mobile|!tablet
that means:
(NOT mobile) OR (NOT tablet)
and on an iPad (as tablet) this check will result in:
(TRUE) OR (FALSE)
TRUE, because it's not a mobile (it's a tablet instead)
FALSE, because it's a tablet and it checks for no tabletsand true OR false finally leads to:
TRUE
and so the devices check is true and the element will be included.
Best regards,
Klaus -
-
-
Thank you Klaus for making that clear to me
In fact, I did it the other way round then on my own, because ! mobile + ! tablet obviously had to be a desktop. Trying this !mobile|!tablet derives from some other code, where I used more then one device parameter. But anyway I was wrong in my understanding of the | sign in general even there and this probably made me go crazy before as well. I simply regarded the pipe sign as being used to separate more than one item, not as an OR. So, this will help a lot in the future.
Thanks again,
Michael
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!