回答編集履歴
1
条件の追加
test
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
```javascript
|
6
6
|
|
7
|
-
//ontouchstartが使えるかでタッチデバイスかを判定
|
7
|
+
//ontouchstartが使えるか、かつ画面幅が1280px以下でタッチデバイスかを判定
|
8
8
|
|
9
|
-
if(window.ontouchstart !== null) {
|
9
|
+
if(window.ontouchstart !== null && window.parent.screen.width < 1280) {
|
10
10
|
|
11
11
|
document.write('<script src="/js/skrollr.js"></script>');
|
12
12
|
|