aboutsummaryrefslogtreecommitdiff
path: root/html/mobile.js
blob: be5d2718e3c43de7ef455b8ed24b9180b5b007c2 (plain) (blame)
1
2
3
4
5
6
7
8
window.isMobile = !("windows" in browser);
if (isMobile) {
  document.documentElement.classList.add("mobile");
  let s = document.createElement("script");
  s.src = "/html/fastclick.js";
  document.head.appendChild(s);
  window.addEventListener("load", e => FastClick.attach(document.body));
}