adding slidebar menu to tablet mode

boplive
@boplive
9 years ago
345 posts
Hi guys,

I just decided to switch out the setup menu of the header.tpl adding a slidebar menu on tablet mode and it works.
I just want to know if it was wise to do so..is there a reason why you guys only have the slidebar working only on mobile mode but not tablet mode.

Please let me know if what I did will still work continuously without errors.

Thanx
Ed
updated by @boplive: 02/05/16 01:02:20AM
michael
@michael
9 years ago
7,718 posts
Hard to say. I think the mobile stuff tries to detect if your device is a mobile device to determine which menu to show them.

Sounds like your tablets are returning that they are not mobile devices so get the desktop version. Desktops dont have swipe capabilities so no need for a slide bar.

Probably ok, give it a bit of a test and go with it if it looks like its working.
boplive
@boplive
9 years ago
345 posts
Thanks Michael...I'll give it a week and just keep on testing it across different tablets and browser just to make sure it doesn't act up.I left out the slider in the desktop :)
Will keep you posted
Ed
michael
@michael
9 years ago
7,718 posts
Added the docs here for the function jrCore_is_mobile_device()

"Docs: Development -> {if jrCore_is_mobile_device()}{/if}"
https://www.jamroom.net/the-jamroom-network/documentation/development/3191/if-jrcore-is-mobile-device-if

Tags