@@ -178,58 +178,6 @@ <h1>Search</h1>
178178 $ ( '.productMenu' ) . css ( { 'top' : 'unset' } ) ;
179179 }
180180 }
181-
182- $ ( "body" ) . delegate ( "#searchResult .gsc-resultsRoot a.gs-title" , "click" , function ( e ) {
183- e . preventDefault ( ) ;
184-
185- var link = $ ( this ) . eq ( 0 ) . data ( "ctorig" )
186- if ( link . indexOf ( "capture-vision/docs" ) > 0 ) {
187- var repoType = getRepoType ( "mobile" , link ) ;
188- if ( link . indexOf ( "?" ) > 0 ) {
189- var arr = link . split ( "?" )
190- if ( arr [ 1 ] . indexOf ( "#" ) > 0 ) {
191- var subArr = arr [ 1 ] . split ( "#" )
192- link = link + "?product=dbr&repoType=" + repoType + "&" + arr [ 1 ]
193- } else {
194- link = link + "&product=dbr&repoType=" + repoType
195- }
196- } else {
197- link = link + "?product=dbr&repoType=" + repoType
198- }
199- }
200- window . location . href = link
201- } ) ;
202-
203- function getRepoType ( defaultValue , link ) {
204- var lang = getCurrentUrlLang ( link , true )
205- var repoType = defaultValue
206- if ( lang ) {
207- if ( lang == 'android' || lang == 'objectivec-swift' ) {
208- repoType = "mobile"
209- } else if ( lang == 'javascript' ) {
210- repoType = "web"
211- } else if ( lang == 'cplusplus' || lang == 'c' || lang == 'java' || lang == 'dotnet' ) {
212- repoType = "server"
213- } else {
214- repoType = "core"
215- }
216- } else {
217- if ( link . indexOf ( "/docs/server/" ) > 0 ) {
218- repoType = "server"
219- }
220- if ( link . indexOf ( "/docs/core/" ) > 0 ) {
221- repoType = "core"
222- }
223- if ( link . indexOf ( "/docs/mobile" ) > 0 ) {
224- repoType = "mobile"
225- }
226- if ( link . indexOf ( "/docs/web/" ) > 0 ) {
227- repoType = "web"
228- }
229- }
230- return repoType
231- }
232-
233181 </ script >
234182
235183 {%- include livehelp.html -%}
0 commit comments