Skip to content

Commit 5be193f

Browse files
update to internal commit 55545698
1 parent 5b553cc commit 5be193f

File tree

5 files changed

+55
-240
lines changed

5 files changed

+55
-240
lines changed

_includes/dbrNav.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
<li class="item"><a class="all-resources f16 mt20 orangeLink" href="https://www.dynamsoft.com/barcode-reader/resources/">See All resources ></a></li>
4545
</ul>
4646
</li>
47-
<li class="item textUpperCase buy"><a href="https://www.dynamsoft.com/store/dynamsoft-barcode-reader/">Buy</a></li>
4847
</ul>
49-
<a class="downloadBtn fr hide-lg textUpperCase" href="https://www.dynamsoft.com/barcode-reader/downloads/">Download<span> Free Trial</span></a>
48+
<a href="https://www.dynamsoft.com/store/dynamsoft-barcode-reader/" class="downloadBtn fr">Get Pricing</a>
49+
<a href="https://www.dynamsoft.com/barcode-reader/downloads/" target="_blank" class="downloadBtn borderBtn fr">Download <span class="hide-md">30-Day Trial</span></a>
5050
<div class="languageWrap" style="display: none;">
5151
<label class="title">Language: </label>
5252
<div class="languageChange">

_layouts/default-layout-OLD.html

Lines changed: 53 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,32 @@
22
<html lang="en-US">
33

44
{%- include head.html -%}
5-
5+
{%- assign noTitleIndex = "" -%}
6+
{%- if page.noTitleIndex or page.url contains 'release-notes' -%}
7+
{%- assign noTitleIndex = "noTitleIndex" -%}
8+
{%- endif -%}
69
<body>
7-
<div class="headWrapper">
8-
{%- include page_header.html -%}
9-
</div>
10+
{% assign url = 'https://www.dynamsoft.com/shared/head/' %}
11+
{% remote_include {{ url }} %}
12+
1013
{%- include dbrNav.html -%}
1114
<div class="sideBarIcon"><i class="fa fa-list" style="margin-right: 5px;"></i> Table of contents</div>
12-
<div class="container">
15+
<div class="container" id="categoryMenuTree">
1316
<div class="row">
14-
<div class="sideBar col-xs-12 col-md-3 hide-xs hide-sm">
15-
<div id="sideBarCnt">
16-
<div class="docSearchPart" style="margin-top: 30px;">
17-
<input id="txtSearch" class="search" type="text">
18-
</div>
19-
<ul class="mainPage" id="fullTreeMenuListContainer" name="listLevel1">
20-
</ul>
21-
</div>
22-
</div>
23-
<div class="docContainer col-xs-12 col-md-9">
17+
<main class="docContainer col-xs-12 col-md-9">
2418
<div id="docHead" class="head row hide-xs hide-sm">
2519
{%- include main-page-head.html -%}
2620
</div>
27-
<div class="main row">
28-
<div class="content markdown-body headCounter col-xs-12 col-md-12 col-lg-9 col-xl-10" style="margin-bottom: 20px;">
21+
<div class="main row showRightSideMenu" id="articleContent" data-needh3="{{page.needGenerateH3Content}}">
22+
<div class="content markdown-body headCounter {{noTitleIndex}} col-xs-12 col-md-12 col-lg-9 col-xl-10 showRightSideMenu" style="margin-bottom: 20px;">
2923
<div class="dbrThanksDownloading">
3024
<p class="thanksDownloadTitle">Thanks for downloading Dynamsoft Barcode Reader <span class="editionName"></span> Package!</p>
3125
<p style="margin-bottom: 0;">Your download will start shortly. If your download does not begin, <a class="bluelink downloadlink" href="">click here to retry</a>.</p>
3226
</div>
3327
{{ content }}
3428

3529
</div>
36-
<div class="rightSideMenu col-xs-12 col-md-12 col-lg-3 col-xl-2 hide-md hide-sm hide-xs">
30+
<div class="rightSideMenu col-xs-12 col-md-12 col-lg-3 col-xl-2 hide-md hide-sm hide-xs showRightSideMenu">
3731
<div id="compatibleInfo">
3832
<p>This page is compatible for:</p>
3933
<p class="compatibleCurVersion">Version 7.5.0</p>
@@ -49,90 +43,75 @@
4943
{%- endif -%}
5044
</div>
5145
</div>
52-
</div>
46+
<div class="main row" style="display: none; background: #f5f5f5;" id="loadingContent">
47+
<div class="loading" id="loadingLogin">
48+
<div class="lds-ring"><div></div><div></div><div></div><div></div></div>
49+
</div>
50+
</div>
51+
</main>
52+
<aside class="sideBar col-xs-12 col-md-3 hide-xs hide-sm">
53+
<div id="sideBarCnt">
54+
<div class="docSearchPart" style="margin-top: 30px;">
55+
<input id="txtSearch" class="search" type="text">
56+
</div>
57+
<nav class="mainPage">
58+
<ul id="fullTreeMenuListContainer" name="listLevel1">
59+
</ul>
60+
</nav>
61+
</div>
62+
</aside>
5363
</div>
5464
</div>
55-
<div class="history list">
65+
<div class="history list" id="categoryMenuTree_history">
5666
<div class="container">
5767
<div class="col-xs-12">
58-
{%- include liquid_autoGenerateHistoryList.html -%} {%- include auto-version-list.html -%}
68+
{%- include liquid_autoGenerateHistoryList.html -%}
69+
{%- include auto-version-list.html -%}
5970
</div>
6071
</div>
6172
</div>
62-
<div id="footerWrapper">
73+
74+
<footer id="footerWrapper">
6375
{%- include page_footer.html -%}
64-
</div>
76+
</footer>
6577

6678
<iframe id="sideBarIframe" src="{{site.firstLevelUrl}}/Hide_Tree_Page.html" allow="" height="0" frameborder="0"></iframe>
6779
<script type="text/javascript">
6880
anchors.add();
69-
</script>
70-
71-
72-
<script type="text/javascript">
7381
UrlReplace();
74-
</script>
75-
76-
<script type="text/javascript">
7782
FullTreeMenuList('{{page.needAutoGenerateSidebar}}', '{{page.needGenerateH3Content}}', '{{page.pageStartVer}}', '{{site.useVersionTree}}');
7883
</script>
7984

8085
{%- include livehelp.html -%}
8186

82-
8387
<!-- for dbr -->
8488
<script type="text/javascript">
85-
function getCookie(name) {
86-
var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
87-
return (arr = document.cookie.match(reg)) ? unescape(arr[2]) : null;
88-
}
89-
90-
9189
$(document).ready(function() {
92-
var download = getUrlParam('download');
93-
if (download == 'true' && (getCookie('DynamsoftEmail') || getCookie('SourceServer') == '1')) {
94-
var curHref = window.location.href.toLowerCase()
95-
if (curHref.indexOf('/c/') > -1 || curHref.indexOf('/cplusplus/') > -1) {
96-
$('.editionName').html('C/C++');
97-
$('.downloadlink').attr('href', 'https://download2.dynamsoft.com/dbr/dynamsoft-barcode-reader-c_cpp-9.2.0.zip');
98-
$('.dbrThanksDownloading').show();
99-
$('.downloadlink')[0].click();
100-
} else if (curHref.indexOf('/dotnet/') > -1) {
101-
$('.editionName').html('.NET');
102-
$('.downloadlink').attr('href', 'https://download2.dynamsoft.com/dbr/dynamsoft-barcode-reader-dotnet-9.2.0.zip');
103-
$('.dbrThanksDownloading').show();
104-
$('.downloadlink')[0].click();
105-
} else if (curHref.indexOf('/java/') > -1) {
106-
$('.editionName').html('Java');
107-
$('.downloadlink').attr('href', 'https://download2.dynamsoft.com/dbr/dynamsoft-barcode-reader-java-9.2.0.zip');
108-
$('.dbrThanksDownloading').show();
109-
$('.downloadlink')[0].click();
110-
} else if (curHref.indexOf('/javascript/') > -1) {
111-
$('.editionName').html('Javascript');
112-
$('.downloadlink').attr('href', 'https://download2.dynamsoft.com/dbr/dynamsoft-barcode-reader-js-9.6.20.zip');
113-
$('.dbrThanksDownloading').show();
114-
$('.downloadlink')[0].click();
115-
} else if (curHref.indexOf('/android/') > -1) {
116-
$('.editionName').html('Android');
117-
$('.downloadlink').attr('href', 'https://download2.dynamsoft.com/dbr/dynamsoft-barcode-reader-android-9.2.10.zip');
118-
$('.dbrThanksDownloading').show();
119-
$('.downloadlink')[0].click();
120-
} else if (curHref.indexOf('/objectivec-swift/') > -1) {
121-
$('.editionName').html('iOS');
122-
$('.downloadlink').attr('href', 'https://download2.dynamsoft.com/dbr/dynamsoft-barcode-reader-ios-9.2.10.zip');
123-
$('.dbrThanksDownloading').show();
124-
$('.downloadlink')[0].click();
125-
}
126-
}
12790

12891
$('#txtSearch').keydown(function(e) {
12992
if (e.keyCode == 13) {
130-
window.location.href = '/barcode-reader/search.html?q=' + $('#txtSearch').val();
93+
let lang = getCurrentUrlLang(document.URL, true)
94+
if (!lang || lang == '') {
95+
window.location.href = '/barcode-reader/docs/core/search.html?q=' + $('#txtSearch').val();
96+
} else if (lang == 'android' || lang == 'objectivec-swift') {
97+
window.location.href = '/barcode-reader/docs/core/search.html?refinement=mobile_native_app&q=' + $('#txtSearch').val();
98+
} else if (lang == 'javascript') {
99+
window.location.href = '/barcode-reader/docs/core/search.html?refinement=javascript_web&q=' + $('#txtSearch').val();
100+
} else if (lang == 'cplusplus' || lang == 'c') {
101+
window.location.href = '/barcode-reader/docs/core/search.html?refinement=c/c++&q=' + $('#txtSearch').val();
102+
} else if (lang == 'java') {
103+
window.location.href = '/barcode-reader/docs/core/search.html?refinement=java&q=' + $('#txtSearch').val();
104+
} else if (lang == 'dotnet') {
105+
window.location.href = '/barcode-reader/docs/core/search.html?refinement=.net&q=' + $('#txtSearch').val();
106+
} else {
107+
window.location.href = '/barcode-reader/docs/core/search.html?q=' + $('#txtSearch').val();
108+
}
131109
}
132110
})
111+
133112
})
134113
</script>
135-
114+
136115
<!-- Google Tag Manager -->
137116
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-538F83"
138117
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>

_layouts/default-layout.html

Lines changed: 0 additions & 126 deletions
This file was deleted.

search.md

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,45 +5,7 @@ keywords: Dynamsoft Barcode Reader SDK Documentation Search
55
breadcrumbText: HomePage
66
permalink: /search.html
77
cx: 32039cdf85bc7ae2b
8-
hasFacets: true
98
---
109

1110
<script>
12-
let facets = [
13-
[
14-
{
15-
"anchor": "JavaScript Web",
16-
"label": "javascript_web",
17-
"label_with_op": "more:javascript_web"
18-
}
19-
],
20-
[
21-
{
22-
"anchor": ".NET",
23-
"label": ".net",
24-
"label_with_op": "more:.net"
25-
}
26-
],
27-
[
28-
{
29-
"anchor": "Java",
30-
"label": "java",
31-
"label_with_op": "more:java"
32-
}
33-
],
34-
[
35-
{
36-
"anchor": "Mobile Native App",
37-
"label": "mobile_native_app",
38-
"label_with_op": "more:mobile_native_app"
39-
}
40-
],
41-
[
42-
{
43-
"anchor": "C/C++",
44-
"label": "c/c++",
45-
"label_with_op": "more:c/c++"
46-
}
47-
]
48-
]
4911
</script>

0 commit comments

Comments
 (0)