Skip to content

Commit 4b62f60

Browse files
Merge pull request #58 from dynamsoft-docs/preview
update to internal commit 1068f476
2 parents 50fa504 + 0ba0df4 commit 4b62f60

File tree

1 file changed

+0
-51
lines changed

1 file changed

+0
-51
lines changed

_layouts/search-page.html

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

258207
{%- include livehelp.html -%}

0 commit comments

Comments
 (0)