@@ -199,57 +199,6 @@ <h1>Search</h1>
199199 window . location . href = '/camera-enhancer/docs/mobile/search.html?q=' + $ ( '#txtSearch' ) . val ( )
200200 }
201201 } )
202-
203- $ ( "body" ) . delegate ( "#searchResult .gsc-resultsRoot a.gs-title" , "click" , function ( e ) {
204- e . preventDefault ( ) ;
205-
206- var link = $ ( this ) . eq ( 0 ) . data ( "ctorig" )
207- if ( link . indexOf ( "capture-vision/docs" ) > 0 ) {
208- var repoType = getRepoType ( "mobile" , link ) ;
209- if ( link . indexOf ( "?" ) > 0 ) {
210- var arr = link . split ( "?" )
211- if ( arr [ 1 ] . indexOf ( "#" ) > 0 ) {
212- var subArr = arr [ 1 ] . split ( "#" )
213- link = link + "?product=dce&repoType=" + repoType + "&" + arr [ 1 ]
214- } else {
215- link = link + "&product=dce&repoType=" + repoType
216- }
217- } else {
218- link = link + "?product=dce&repoType=" + repoType
219- }
220- }
221- window . location . href = link
222- } ) ;
223-
224- function getRepoType ( defaultValue , link ) {
225- var lang = getCurrentUrlLang ( link , true )
226- var repoType = defaultValue
227- if ( lang ) {
228- if ( lang == 'android' || lang == 'objectivec-swift' ) {
229- repoType = "mobile"
230- } else if ( lang == 'javascript' ) {
231- repoType = "web"
232- } else if ( lang == 'cplusplus' || lang == 'c' || lang == 'java' || lang == 'dotnet' ) {
233- repoType = "server"
234- } else {
235- repoType = "core"
236- }
237- } else {
238- if ( link . indexOf ( "/docs/server/" ) > 0 ) {
239- repoType = "server"
240- }
241- if ( link . indexOf ( "/docs/core/" ) > 0 ) {
242- repoType = "core"
243- }
244- if ( link . indexOf ( "/docs/mobile" ) > 0 ) {
245- repoType = "mobile"
246- }
247- if ( link . indexOf ( "/docs/web/" ) > 0 ) {
248- repoType = "web"
249- }
250- }
251- return repoType
252- }
253202 </ script >
254203
255204 {%- include livehelp.html -%}
0 commit comments