@@ -239,58 +239,6 @@ <h1>Search</h1>
239
239
240
240
}
241
241
} )
242
-
243
- $ ( "body" ) . delegate ( "#searchResult .gsc-resultsRoot a.gs-title" , "click" , function ( e ) {
244
- e . preventDefault ( ) ;
245
-
246
- var link = $ ( this ) . eq ( 0 ) . data ( "ctorig" )
247
- if ( link . indexOf ( "capture-vision/docs" ) > 0 ) {
248
- var repoType = getRepoType ( "web" , link ) ;
249
- if ( link . indexOf ( "?" ) > 0 ) {
250
- var arr = link . split ( "?" )
251
- if ( arr [ 1 ] . indexOf ( "#" ) > 0 ) {
252
- var subArr = arr [ 1 ] . split ( "#" )
253
- link = link + "?product=ddn&repoType=" + repoType + "&" + arr [ 1 ]
254
- } else {
255
- link = link + "&product=ddn&repoType=" + repoType
256
- }
257
- } else {
258
- link = link + "?product=ddn&repoType=" + repoType
259
- }
260
- }
261
- window . location . href = link
262
- } ) ;
263
-
264
- function getRepoType ( defaultValue , link ) {
265
- var lang = getCurrentUrlLang ( link , true )
266
- var repoType = defaultValue
267
- if ( lang ) {
268
- if ( lang == 'android' || lang == 'objectivec-swift' ) {
269
- repoType = "mobile"
270
- } else if ( lang == 'javascript' ) {
271
- repoType = "web"
272
- } else if ( lang == 'cplusplus' || lang == 'c' || lang == 'java' || lang == 'dotnet' ) {
273
- repoType = "server"
274
- } else {
275
- repoType = "core"
276
- }
277
- } else {
278
- if ( link . indexOf ( "/docs/server/" ) > 0 ) {
279
- repoType = "server"
280
- }
281
- if ( link . indexOf ( "/docs/core/" ) > 0 ) {
282
- repoType = "core"
283
- }
284
- if ( link . indexOf ( "/docs/mobile" ) > 0 ) {
285
- repoType = "mobile"
286
- }
287
- if ( link . indexOf ( "/docs/web/" ) > 0 ) {
288
- repoType = "web"
289
- }
290
- }
291
- return repoType
292
- }
293
-
294
242
</ script >
295
243
296
244
{%- include livehelp.html -%}
0 commit comments