Skip to content

Commit 43ee5b4

Browse files
Merge pull request #386 from dynamsoft-docs/preview
Preview
2 parents 3a1b616 + 8eded95 commit 43ee5b4

File tree

3 files changed

+1
-53
lines changed

3 files changed

+1
-53
lines changed

_includes/sidelist-programming/programming-javascript.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,6 @@
14171417
>Is HTTPS absolutely required?</a
14181418
>
14191419
</li>
1420-
14211420
<li>
14221421
<a href="{{ site.js }}faq/call-loadWasm-proactively.html"
14231422
>Do we have to call loadWasm proactively?</a

_layouts/search-page.html

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -178,57 +178,6 @@ <h1>Search</h1>
178178
$('.productMenu').css({'top': 'unset'});
179179
}
180180
}
181-
182-
$("body").delegate("#searchResult .gsc-resultsRoot a.gs-title", "click", function(e) {
183-
e.preventDefault();
184-
185-
var link = $(this).eq(0).data("ctorig")
186-
if (link.indexOf("capture-vision/docs") > 0) {
187-
var repoType = getRepoType("web", link);
188-
if (link.indexOf("?") > 0) {
189-
var arr = link.split("?")
190-
if(arr[1].indexOf("#") > 0) {
191-
var subArr = arr[1].split("#")
192-
link = link +"?product=dbr&repoType="+ repoType +"&" + arr[1]
193-
} else {
194-
link = link + "&product=dbr&repoType=" + repoType
195-
}
196-
} else {
197-
link = link + "?product=dbr&repoType=" + repoType
198-
}
199-
}
200-
window.location.href = link
201-
});
202-
203-
function getRepoType(defaultValue, link) {
204-
var lang = getCurrentUrlLang(link, true)
205-
var repoType = defaultValue
206-
if (lang) {
207-
if (lang == 'android' || lang == 'objectivec-swift') {
208-
repoType = "mobile"
209-
} else if (lang == 'javascript') {
210-
repoType = "web"
211-
} else if (lang == 'cplusplus' || lang == 'c' || lang == 'java' || lang == 'dotnet') {
212-
repoType = "server"
213-
} else {
214-
repoType = "core"
215-
}
216-
} else {
217-
if(link.indexOf("/docs/server/") > 0) {
218-
repoType = "server"
219-
}
220-
if (link.indexOf("/docs/core/") > 0) {
221-
repoType = "core"
222-
}
223-
if (link.indexOf("/docs/mobile") > 0) {
224-
repoType = "mobile"
225-
}
226-
if (link.indexOf("/docs/web/") > 0) {
227-
repoType = "web"
228-
}
229-
}
230-
return repoType
231-
}
232181
</script>
233182

234183
{%- include livehelp.html -%}

programming/javascript/faq/How-to-use-initSettings-getSimplifiedSettings-updateSettings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ needAutoGenerateSidebar: false
1010

1111
[<< Back to FAQ index](index.md)
1212

13-
`initSettings` is used to intitiate instance with specified setting. [initSettings](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/capture-vision-router/settings.html?product=dbr&lang=javascript#initsettings) configures runtime settings using a provided JSON string, an object, or a URL pointing to an object, which contains settings for one or more CaptureVisionTemplates.
13+
`initSettings` is used to initiate instance with specified setting. [initSettings](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/capture-vision-router/settings.html?product=dbr&lang=javascript#initsettings) configures runtime settings using a provided JSON string, an object, or a URL pointing to an object, which contains settings for one or more CaptureVisionTemplates.
1414

1515
`getSimplifiedSettings` is used to get the [SimplifiedCaptureVisionSettings](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/capture-vision-router/interfaces/simplified-capture-vision-settings.html?product=dbr&lang=javascript) that is interface provides a standardized way to adjust a select set of settings for a given CaptureVisionTemplate.
1616

0 commit comments

Comments
 (0)