質問編集履歴
2
エラーをはいていた関数定義を削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
|
57
57
|
const $winW = $win.innerWidth();
|
58
58
|
|
59
|
-
|
59
|
+
$win.on('load resize',() =>{
|
60
60
|
|
61
61
|
if ($winW > 1460) {
|
62
62
|
|
@@ -86,8 +86,6 @@
|
|
86
86
|
|
87
87
|
});
|
88
88
|
|
89
|
-
$bgColor();
|
90
|
-
|
91
89
|
|
92
90
|
|
93
91
|
})(jQuery);
|
1
ソースコードを現在保存状態のコードに書き換え
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,11 +28,13 @@
|
|
28
28
|
|
29
29
|
<title>test</title>
|
30
30
|
|
31
|
-
<script
|
31
|
+
<script
|
32
32
|
|
33
|
-
|
33
|
+
src="https://code.jquery.com/jquery-3.3.1.js"
|
34
34
|
|
35
|
+
integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
|
36
|
+
|
35
|
-
crossorigin="anonymous"></script>
|
37
|
+
crossorigin="anonymous"></script>
|
36
38
|
|
37
39
|
</head>
|
38
40
|
|
@@ -46,7 +48,7 @@
|
|
46
48
|
|
47
49
|
<script>
|
48
50
|
|
49
|
-
|
51
|
+
(function($){
|
50
52
|
|
51
53
|
|
52
54
|
|
@@ -54,7 +56,7 @@
|
|
54
56
|
|
55
57
|
const $winW = $win.innerWidth();
|
56
58
|
|
57
|
-
const $bgColor = $win.on('resize',() =>{
|
59
|
+
const $bgColor = $win.on('load resize',() =>{
|
58
60
|
|
59
61
|
if ($winW > 1460) {
|
60
62
|
|