T
T
thehighhomie2016-07-04 12:34:17
Mobile development
thehighhomie, 2016-07-04 12:34:17

Wordpress: mobile development?

Good afternoon. Made a website. everything is fine in browsers. But when I log in from the fifth iPhone, and from the ancient huawei, the script does not work at all, only if I clear it, write alert ('ok') then everything works. Why such trouble? After all, there are no errors in browsers.
In one script, I checked for media, if windiw.innerWidth <= 1100 then media is true, if not, then falls, and in these branches there is manipulation for the desktop and small devices.
When I cleaned the script and wrote alert(media), everything is OK, everything calculates correctly. I can not understand at all where the jamb.
here is a script, not so big https://jsfiddle.net/akLcac1g/ please help me figure it out.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question