diff options
author | Ruben Rodriguez <ruben@gnu.org> | 2019-05-10 19:05:20 -0400 |
---|---|---|
committer | Ruben Rodriguez <ruben@gnu.org> | 2019-05-10 19:05:20 -0400 |
commit | 7859a9131fcda359265dc16ef55933e5ed218119 (patch) | |
tree | ecb4bf7a0fd005a637d3ff0444ce9afaa8817ba9 /data/extensions/jid1-KtlZuoiikVfFew@jetpack/html/mobile.js | |
parent | cb4bbb16a12d495eca1ac05ebacc7557e9b05c05 (diff) |
Updated extensions bundle
Diffstat (limited to 'data/extensions/jid1-KtlZuoiikVfFew@jetpack/html/mobile.js')
-rw-r--r-- | data/extensions/jid1-KtlZuoiikVfFew@jetpack/html/mobile.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/data/extensions/jid1-KtlZuoiikVfFew@jetpack/html/mobile.js b/data/extensions/jid1-KtlZuoiikVfFew@jetpack/html/mobile.js new file mode 100644 index 0000000..be5d271 --- /dev/null +++ b/data/extensions/jid1-KtlZuoiikVfFew@jetpack/html/mobile.js @@ -0,0 +1,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)); +} |