File tree 4 files changed +14
-14
lines changed 4 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ <h1><a href="https://threejs.org">three.js</a></h1>
29
29
< div id ="contentWrapper ">
30
30
< div id ="inputWrapper ">
31
31
< input placeholder ="" type ="text " id ="filterInput " autocorrect ="off " autocapitalize ="off " spellcheck ="false " />
32
- < div id ="exitSearchButton "> </ div >
32
+ < div id ="clearSearchButton "> </ div >
33
33
< select id ="language ">
34
34
< option value ="en "> en</ option >
35
35
< option value ="ar "> ar</ option >
@@ -54,7 +54,7 @@ <h1><a href="https://threejs.org">three.js</a></h1>
54
54
const panel = document . getElementById ( 'panel' ) ;
55
55
const content = document . getElementById ( 'content' ) ;
56
56
const expandButton = document . getElementById ( 'expandButton' ) ;
57
- const exitSearchButton = document . getElementById ( 'exitSearchButton ' ) ;
57
+ const clearSearchButton = document . getElementById ( 'clearSearchButton ' ) ;
58
58
const panelScrim = document . getElementById ( 'panelScrim' ) ;
59
59
const filterInput = document . getElementById ( 'filterInput' ) ;
60
60
let iframe = document . querySelector ( 'iframe' ) ;
@@ -165,11 +165,11 @@ <h1><a href="https://threejs.org">three.js</a></h1>
165
165
166
166
} ;
167
167
168
- exitSearchButton . onclick = function ( ) {
168
+ clearSearchButton . onclick = function ( ) {
169
169
170
170
filterInput . value = '' ;
171
171
updateFilter ( ) ;
172
- panel . classList . remove ( 'searchFocused' ) ;
172
+ filterInput . focus ( ) ;
173
173
174
174
} ;
175
175
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ <h1><a href="https://threejs.org">three.js</a></h1>
29
29
30
30
< div id ="inputWrapper ">
31
31
< input placeholder ="" type ="text " id ="filterInput " autocorrect ="off " autocapitalize ="off " spellcheck ="false " />
32
- < div id ="exitSearchButton "> </ div >
32
+ < div id ="clearSearchButton "> </ div >
33
33
</ div >
34
34
35
35
< div id ="content ">
@@ -49,7 +49,7 @@ <h1><a href="https://threejs.org">three.js</a></h1>
49
49
const content = document . getElementById ( 'content' ) ;
50
50
const viewer = document . getElementById ( 'viewer' ) ;
51
51
const filterInput = document . getElementById ( 'filterInput' ) ;
52
- const exitSearchButton = document . getElementById ( 'exitSearchButton ' ) ;
52
+ const clearSearchButton = document . getElementById ( 'clearSearchButton ' ) ;
53
53
const expandButton = document . getElementById ( 'expandButton' ) ;
54
54
const viewSrcButton = document . getElementById ( 'button' ) ;
55
55
const panelScrim = document . getElementById ( 'panelScrim' ) ;
@@ -153,11 +153,11 @@ <h1><a href="https://threejs.org">three.js</a></h1>
153
153
154
154
} ;
155
155
156
- exitSearchButton . onclick = function ( ) {
156
+ clearSearchButton . onclick = function ( ) {
157
157
158
158
filterInput . value = '' ;
159
159
updateFilter ( files , tags ) ;
160
- panel . classList . remove ( 'searchFocused' ) ;
160
+ filterInput . focus ( ) ;
161
161
162
162
} ;
163
163
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ h1 a {
138
138
transition : 0s 0s height;
139
139
}
140
140
141
- # panel # exitSearchButton {
141
+ # panel # clearSearchButton {
142
142
width : 48px ;
143
143
height : 48px ;
144
144
display : none;
@@ -154,7 +154,7 @@ h1 a {
154
154
margin-right : 0px ;
155
155
}
156
156
157
- # panel .searchFocused # exitSearchButton {
157
+ # panel .searchFocused # clearSearchButton {
158
158
display : block;
159
159
}
160
160
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ <h1><a href="https://threejs.org">three.js</a></h1>
28
28
< div id ="contentWrapper ">
29
29
< div id ="inputWrapper ">
30
30
< input placeholder ="" type ="text " id ="filterInput " autocorrect ="off " autocapitalize ="off " spellcheck ="false " />
31
- < div id ="exitSearchButton "> </ div >
31
+ < div id ="clearSearchButton "> </ div >
32
32
< select id ="language ">
33
33
< option value ="en "> en</ option >
34
34
< option value ="fr "> fr</ option >
@@ -51,7 +51,7 @@ <h1><a href="https://threejs.org">three.js</a></h1>
51
51
const panel = document . querySelector ( '#panel' ) ;
52
52
const content = document . querySelector ( '#content' ) ;
53
53
const expandButton = document . querySelector ( '#expandButton' ) ;
54
- const exitSearchButton = document . querySelector ( '#exitSearchButton ' ) ;
54
+ const clearSearchButton = document . querySelector ( '#clearSearchButton ' ) ;
55
55
const panelScrim = document . querySelector ( '#panelScrim' ) ;
56
56
const filterInput = document . querySelector ( '#filterInput' ) ;
57
57
let iframe = document . querySelector ( 'iframe' ) ;
@@ -141,11 +141,11 @@ <h1><a href="https://threejs.org">three.js</a></h1>
141
141
142
142
} ;
143
143
144
- exitSearchButton . onclick = function ( ) {
144
+ clearSearchButton . onclick = function ( ) {
145
145
146
146
filterInput . value = '' ;
147
147
updateFilter ( ) ;
148
- panel . classList . remove ( 'searchFocused' ) ;
148
+ filterInput . focus ( ) ;
149
149
150
150
} ;
151
151
You can’t perform that action at this time.
0 commit comments