File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 10
10
< script src ="
https://unpkg.com/[email protected] "
> </ script >
11
11
< script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.0/highlight.min.js "> </ script >
12
12
< script src ="https://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.min.js "> </ script >
13
+ < script >
14
+ function hideHeaderIfSearching ( ) {
15
+ var x = document . getElementById ( "search" ) ;
16
+
17
+ var myDiv = document . getElementById ( "about" ) ;
18
+ if ( x . value != "" )
19
+ {
20
+ myDiv . style . display = "none" ;
21
+ } else {
22
+ myDiv . style . display = "block" ;
23
+ }
24
+ }
25
+ </ script >
13
26
< style >
14
27
@media (max-width : 767px ) {
15
28
.markdown-body {
61
74
< form style ="display:flex; ">
62
75
< label for ="search " style ="margin-right: 3px; " > search:</ label >
63
76
< div style ="position: relative; ">
64
- < input id ="search " placeholder ="Search all options " v-model ="searchCondition ">
77
+ < input id ="search " placeholder ="Search all options " v-model ="searchCondition " onkeyup =" hideHeaderIfSearching() " >
65
78
< svg style ="position: absolute; left: 8px; top: 7px; " class ="octicon octicon-search subnav-search-icon " viewBox ="0 0 16 16 " version ="1.1 " width ="16 " height ="16 " aria-hidden ="true ">
66
79
< path fill-rule ="evenodd " d ="M15.7 13.3l-3.81-3.83A5.93 5.93 0 0 0 13 6c0-3.31-2.69-6-6-6S1 2.69 1 6s2.69 6 6 6c1.3 0 2.48-.41 3.47-1.11l3.83 3.81c.19.2.45.3.7.3.25 0 .52-.09.7-.3a.996.996 0 0 0 0-1.41v.01zM7 10.7c-2.59 0-4.7-2.11-4.7-4.7 0-2.59 2.11-4.7 4.7-4.7 2.59 0 4.7 2.11 4.7 4.7 0 2.59-2.11 4.7-4.7 4.7z "> </ path >
67
80
</ svg >
81
94
</ select >
82
95
</ div >
83
96
</ div >
84
- < div v-html ="aboutHtml "> </ div >
97
+ < div v-html ="aboutHtml " id =" about " > </ div >
85
98
< div v-html ="configurationAboutHtml "> </ div >
86
99
< div v-html ="outputHtml "> </ div >
87
100
</ article >
You can’t perform that action at this time.
0 commit comments