Hi everyone, I ran into the problem of displaying a modal window, that is, Modalka opens in adaptive design mode and works on Firefox on all simulated devices. But in fact on android and Ios in any way (live) (((

HTML

<a class="btn btn-info" data-toggle="adaptive-modal" href="javascript:void(0)" onclick="openLoginModal();"> Войти </a> 

Js

  function openLoginModal(){ showLoginForm(); setTimeout(function(){ $('#loginModal').modal('show'); }, 230); } function showLoginForm(){ $('#loginModal .registerBox').fadeOut('fast',function(){ $('.loginBox').fadeIn('fast'); $('.register-footer').fadeOut('fast',function(){ $('.login-footer').fadeIn('fast'); }); $('.modal-title').html('Войти'); }); $('.error').removeClass('alert alert-danger').html(''); } 
  • Most likely it's about styles. Will give a reproducible example. - Stepan Kasyanenko
  • It's hard to say what's wrong, but as an option I suggest using mobile debugging on your phone using Google Chrome via the remote device tool. I did not find the link to the original in Russian, but maybe this can help in studying the problem. - Sergey Glazirin
  • Indeed, Chrome started swearing right away .. Uncaught ReferenceError: openLoginModal is not defined at HTMLAnchorElement.onclick - Join Jexon
  • openLoginModal do not see the function? - Join Jexon
  • openLoginModal how to announce it? - Join Jexon

0