diff --git a/_layouts/search-page.html b/_layouts/search-page.html index 24f970d..0179ced 100644 --- a/_layouts/search-page.html +++ b/_layouts/search-page.html @@ -199,57 +199,6 @@

Search

window.location.href = '/camera-enhancer/docs/mobile/search.html?q=' + $('#txtSearch').val() } }) - - $("body").delegate("#searchResult .gsc-resultsRoot a.gs-title", "click", function(e) { - e.preventDefault(); - - var link = $(this).eq(0).data("ctorig") - if (link.indexOf("capture-vision/docs") > 0) { - var repoType = getRepoType("mobile", link); - if (link.indexOf("?") > 0) { - var arr = link.split("?") - if(arr[1].indexOf("#") > 0) { - var subArr = arr[1].split("#") - link = link +"?product=dce&repoType="+ repoType +"&" + arr[1] - } else { - link = link + "&product=dce&repoType=" + repoType - } - } else { - link = link + "?product=dce&repoType=" + repoType - } - } - window.location.href = link - }); - - function getRepoType(defaultValue, link) { - var lang = getCurrentUrlLang(link, true) - var repoType = defaultValue - if (lang) { - if (lang == 'android' || lang == 'objectivec-swift') { - repoType = "mobile" - } else if (lang == 'javascript') { - repoType = "web" - } else if (lang == 'cplusplus' || lang == 'c' || lang == 'java' || lang == 'dotnet') { - repoType = "server" - } else { - repoType = "core" - } - } else { - if(link.indexOf("/docs/server/") > 0) { - repoType = "server" - } - if (link.indexOf("/docs/core/") > 0) { - repoType = "core" - } - if (link.indexOf("/docs/mobile") > 0) { - repoType = "mobile" - } - if (link.indexOf("/docs/web/") > 0) { - repoType = "web" - } - } - return repoType - } {%- include livehelp.html -%}