Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mobile website ratchet作为移动web解决方案_Mobile Website_Ratchet Bootstrap - Fatal编程技术网

Mobile website ratchet作为移动web解决方案

Mobile website ratchet作为移动web解决方案,mobile-website,ratchet-bootstrap,Mobile Website,Ratchet Bootstrap,所以我想用ratchet来创建一个移动网络体验(而不是手机gap/混合应用程序体验),ratchet似乎很适合这样做。但是,如果用户从桌面浏览器查看我的原型,我不希望功能被破坏(它可能很难看)。我注意到一些javascript(如modals)在桌面上不起作用,只能在移动设备上起作用 在桌面浏览器上使用类似于模态的东西需要做些什么 我注意到在js文件中,我可以将相同的事件监听器从触摸事件添加到click事件,如下所示: window.addEventListener('click', fun

所以我想用ratchet来创建一个移动网络体验(而不是手机gap/混合应用程序体验),ratchet似乎很适合这样做。但是,如果用户从桌面浏览器查看我的原型,我不希望功能被破坏(它可能很难看)。我注意到一些javascript(如modals)在桌面上不起作用,只能在移动设备上起作用

在桌面浏览器上使用类似于模态的东西需要做些什么

我注意到在js文件中,我可以将相同的事件监听器从触摸事件添加到click事件,如下所示:

  window.addEventListener('click', function (event) {
    var modal = getModal(event);
    if (modal) {
      if (modal && modal.classList.contains('modal')) {
        modal.classList.toggle('active');
      }
      event.preventDefault(); // prevents rewriting url (apps can still use hash values in url)
    }
  });

有没有什么建议可以与saybootstrap并排使用?这可行吗?

嘿,你最终使用了什么?我最终只是使用ionic来创建体验,然后从中复制代码块以适应我们的移动体验