@@ -310,56 +310,6 @@ <h1>Search</h1>
310310 window . location . href = '/label-recognition/search.html?q=' + $ ( '#txtSearch' ) . val ( )
311311 }
312312 } )
313-
314- $ ( "body" ) . delegate ( "#searchResult .gsc-resultsRoot a.gs-title" , "click" , function ( e ) {
315- e . preventDefault ( ) ;
316- var link = $ ( this ) . eq ( 0 ) . data ( "ctorig" )
317- if ( link . indexOf ( "capture-vision/docs" ) > 0 ) {
318- var repoType = getRepoType ( "mobile" , link ) ;
319- if ( link . indexOf ( "?" ) > 0 ) {
320- var arr = link . split ( "?" )
321- if ( arr [ 1 ] . indexOf ( "#" ) > 0 ) {
322- var subArr = arr [ 1 ] . split ( "#" )
323- link = link + "?product=dlr&repoType=" + repoType + "&" + arr [ 1 ]
324- } else {
325- link = link + "&product=dlr&repoType=" + repoType
326- }
327- } else {
328- link = link + "?product=dlr&repoType=" + repoType
329- }
330- }
331- window . location . href = link
332- } ) ;
333-
334- function getRepoType ( defaultValue , link ) {
335- var lang = getCurrentUrlLang ( link , true )
336- var repoType = defaultValue
337- if ( lang ) {
338- if ( lang == 'android' || lang == 'objectivec-swift' ) {
339- repoType = "mobile"
340- } else if ( lang == 'javascript' ) {
341- repoType = "web"
342- } else if ( lang == 'cplusplus' || lang == 'c' || lang == 'java' || lang == 'dotnet' ) {
343- repoType = "server"
344- } else {
345- repoType = "core"
346- }
347- } else {
348- if ( link . indexOf ( "/docs/server/" ) > 0 ) {
349- repoType = "server"
350- }
351- if ( link . indexOf ( "/docs/core/" ) > 0 ) {
352- repoType = "core"
353- }
354- if ( link . indexOf ( "/docs/mobile" ) > 0 ) {
355- repoType = "mobile"
356- }
357- if ( link . indexOf ( "/docs/web/" ) > 0 ) {
358- repoType = "web"
359- }
360- }
361- return repoType
362- }
363313 </ script >
364314
365315 {%- include livehelp.html -%}
0 commit comments