You are not logged in.

Announcement

Forum database was corrupt and an old backup was restored as temporary replacement. Registrations closed until the database is recovered. Please ask questions using the Contact form

#1 17-04-2014 14:15:07

dynamicsint
Contributors
Registered: 15-03-2013
Posts: 29

Use responsive on mobile screen

Hello,

I used the features of the class ".column" when width of windows is short (function resize). it works fine on computer's screen. when i resize the width of screen, a "mobile" version of my site is automatically displayed (reduced menu, etc ...).

On smartphone, i would not use a specific mobile version. So, i thought my website would automatically resized with this class ".column" but not.

Can you help me if it's possible ?

ps: for information, i put variable $enableMobile = false

Thank you smile

Offline

#2 17-04-2014 14:43:17

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: Use responsive on mobile screen

It's probably set to "small" instead of column?

Anway, the reason is the way mobile browsers work.

I suggest doing device detection on the full website.

The device type should be saved in the javascript var  device  and php var $device
(try alert(device) somehwere on your page to check if that works)

then I'd modify main.js, window.resize() function, around line 184

if(windowWidth < 3.2){

to

if(windowWidth < 3.2   || device=="mobile"){


Didn't test it wink

Offline

#3 22-04-2014 13:37:33

dynamicsint
Contributors
Registered: 15-03-2013
Posts: 29

Re: Use responsive on mobile screen

Thank you Thomas.

It works with this add.  wink

Offline

Board footer

Powered by FluxBB