File tree Expand file tree Collapse file tree 4 files changed +109
-8
lines changed
Expand file tree Collapse file tree 4 files changed +109
-8
lines changed Original file line number Diff line number Diff line change 9393 <!-- for dlr -->
9494 < script type ="text/javascript ">
9595 $ ( document ) . ready ( function ( ) {
96-
96+
9797 $ ( '#txtSearch' ) . keydown ( function ( e ) {
9898 if ( e . keyCode == 13 ) {
99- window . location . href = '/label-recognizer/search.html?q=' + $ ( '#txtSearch' ) . val ( ) ;
99+ let refinement = null
100+ let url = document . URL
101+ if ( url . indexOf ( '/docs/programming/javascript/' ) > 0 ) {
102+ refinement = "javascript_web"
103+ }
104+ if ( url . indexOf ( '/docs/programming/android/' ) > 0 || url . indexOf ( '/docs/programming/objectivec-swift' ) > 0 ) {
105+ refinement = "mobile_native_app"
106+ }
107+ if ( url . indexOf ( '/docs/programming/dotnet/' ) >= 0 ) {
108+ refinement = ".net"
109+ }
110+ if ( url . indexOf ( '/docs/programming/java/' ) >= 0 ) {
111+ refinement = "java"
112+ }
113+ if ( url . indexOf ( '/docs/programming/c-cplusplus/' ) >= 0 ) {
114+ refinement = "c/c++"
115+ }
116+ let refinementTag = refinement ? ( "&refinement=" + refinement ) : ""
117+ window . location . href = '/label-recognition/docs/search.html?q=' + $ ( '#txtSearch' ) . val ( ) + refinementTag ;
100118 }
101119 } )
102120 } )
Original file line number Diff line number Diff line change 172172 </ div >
173173 </ div >
174174 </ div >
175- < div class ="sideBarIcon "> < i class ="fa fa-list " style ="margin-right: 5px; "> </ i > Table of contents</ div >
176175 < div class ="container " id ="searchContent ">
177176 < div class ="row ">
178177 < div class ="docContainer col-xs-12 " style ="border-left: 0; ">
@@ -198,10 +197,6 @@ <h1>Search</h1>
198197 {%- include page_footer.html -%}
199198 </ div >
200199
201- < script src ="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js "
202- integrity ="sha256-lZaRhKri35AyJSypXXs4o6OPFTbTmUoltBbDCbdzegg= " crossorigin ="anonymous "> </ script >
203- < script > anchors . add ( ) ; </ script >
204-
205200 {%- if page.needAutoGenerateSidebar -%}
206201 {%- unless page.needGenerateH3Content -%}
207202 < script >
Original file line number Diff line number Diff line change 1+ ---
2+ layout : search-layout
3+ title : Dynamsoft Label Recognition SDK Documentation Search
4+ keywords : Dynamsoft Label Recognition SDK Documentation Search
5+ cx : 53a201f66061dfc84
6+ ---
7+
8+ <script >
9+ let facets = [
10+ [
11+ {
12+ " anchor" : " JavaScript Web" ,
13+ " label" : " javascript_web" ,
14+ " label_with_op" : " more:javascript_web"
15+ }
16+ ],
17+ [
18+ {
19+ " anchor" : " .NET" ,
20+ " label" : " .net" ,
21+ " label_with_op" : " more:.net"
22+ }
23+ ],
24+ [
25+ {
26+ " anchor" : " Java" ,
27+ " label" : " java" ,
28+ " label_with_op" : " more:java"
29+ }
30+ ],
31+ [
32+ {
33+ " anchor" : " Mobile Native App" ,
34+ " label" : " mobile_native_app" ,
35+ " label_with_op" : " more:mobile_native_app"
36+ }
37+ ],
38+ [
39+ {
40+ " anchor" : " C/C++" ,
41+ " label" : " c/c++" ,
42+ " label_with_op" : " more:c/c++"
43+ }
44+ ]
45+ ]
46+ </script >
Original file line number Diff line number Diff line change 22layout : search-page
33title : Dynamsoft Label Recognition SDK Documentation Search
44keywords : Dynamsoft Label Recognition SDK Documentation Search
5- ---
5+ cx : 53a201f66061dfc84
6+ hasFacets : true
7+ ---
8+
9+ <script >
10+ let facets = [
11+ [
12+ {
13+ " anchor" : " JavaScript Web" ,
14+ " label" : " javascript_web" ,
15+ " label_with_op" : " more:javascript_web"
16+ }
17+ ],
18+ [
19+ {
20+ " anchor" : " .NET" ,
21+ " label" : " .net" ,
22+ " label_with_op" : " more:.net"
23+ }
24+ ],
25+ [
26+ {
27+ " anchor" : " Java" ,
28+ " label" : " java" ,
29+ " label_with_op" : " more:java"
30+ }
31+ ],
32+ [
33+ {
34+ " anchor" : " Mobile Native App" ,
35+ " label" : " mobile_native_app" ,
36+ " label_with_op" : " more:mobile_native_app"
37+ }
38+ ],
39+ [
40+ {
41+ " anchor" : " C/C++" ,
42+ " label" : " c/c++" ,
43+ " label_with_op" : " more:c/c++"
44+ }
45+ ]
46+ ]
47+ </script >
You can’t perform that action at this time.
0 commit comments