回答編集履歴
4
追記
test
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
[動くサンプル](https://jsfiddle.net/shibuya/6umo8y7m/3/)
|
6
|
+
|
7
|
+
|
8
|
+
|
5
9
|
```html
|
6
10
|
|
7
11
|
<!DOCTYPE HTML>
|
3
修正
test
CHANGED
@@ -82,17 +82,17 @@
|
|
82
82
|
|
83
83
|
@keyframes blink {
|
84
84
|
|
85
|
-
0% { background-color: rgba(0, 0, 255, 0); }
|
85
|
+
0% { background-color: rgba(0, 0, 255, 0.2); }
|
86
|
-
|
86
|
+
|
87
|
-
45%{ background-color: rgba(0, 0, 255, 1
|
87
|
+
45%{ background-color: rgba(0, 0, 255, 1); }
|
88
88
|
|
89
89
|
}
|
90
90
|
|
91
91
|
@-webkit-keyframes blink {
|
92
92
|
|
93
|
-
0% { background-color: rgba(0, 0, 255, 0); }
|
93
|
+
0% { background-color: rgba(0, 0, 255, 0.2); }
|
94
|
-
|
94
|
+
|
95
|
-
45%{ background-color: rgba(0, 0, 255, 1
|
95
|
+
45%{ background-color: rgba(0, 0, 255, 1); }
|
96
96
|
|
97
97
|
}
|
98
98
|
|
2
修正
test
CHANGED
@@ -112,16 +112,6 @@
|
|
112
112
|
|
113
113
|
</div>
|
114
114
|
|
115
|
-
<p>
|
116
|
-
|
117
|
-
<button type="button" id="start">
|
118
|
-
|
119
|
-
スタート
|
120
|
-
|
121
|
-
</button>
|
122
|
-
|
123
|
-
</p>
|
124
|
-
|
125
115
|
<script type="text/javascript" src="//code.jquery.com/jquery-3.0.0.min.js"></script>
|
126
116
|
|
127
117
|
<script type="text/javascript">
|
1
修正
test
CHANGED
@@ -160,7 +160,7 @@
|
|
160
160
|
|
161
161
|
if (light.hasClass('blink')) {
|
162
162
|
|
163
|
-
light.removeClass('active')
|
163
|
+
light.removeClass('active').removeClass('blink')
|
164
164
|
|
165
165
|
.next('span').addClass('active');
|
166
166
|
|
@@ -196,7 +196,7 @@
|
|
196
196
|
|
197
197
|
} else if (light.hasClass('red')) {
|
198
198
|
|
199
|
-
light.removeClass('active')
|
199
|
+
light.removeClass('active');
|
200
200
|
|
201
201
|
$('.signal > .blue').addClass('active');
|
202
202
|
|