File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
publishing/webhelpBlogTemplate/resources/js Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 1
1
document . addEventListener ( 'DOMContentLoaded' , function ( ) {
2
- // console.log("test");
3
-
4
2
const searchIcon = document . querySelector ( '.icn_qSearch' ) ;
5
3
const closeSearchIcon = document . querySelector ( '.icn_qSearch_remove' ) ;
6
4
const searchForm = document . getElementById ( 'searchForm' ) ;
7
5
const searchContainer = document . querySelector ( '.wh_search_input' ) ;
8
6
const topMenuContainer = document . querySelector ( '.wh_top_menu_and_indexterms_link' ) ;
9
-
10
- // creeaza butonul
11
- const newButton = document . createElement ( "button" ) ;
12
- newButton . textContent = "" ;
13
- newButton . type = "button" ;
14
7
15
- // seteaza stilurile
16
- newButton . style . width = "150px" ;
17
- newButton . style . display = "none" ;
18
-
19
- // adauga în formular
20
- searchForm . appendChild ( newButton ) ;
21
-
22
-
23
8
function showSearch ( ) {
24
9
if ( ! searchIcon || ! searchForm || ! searchContainer || ! topMenuContainer ) return ;
25
10
You can’t perform that action at this time.
0 commit comments