-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdefault-layout.html
More file actions
290 lines (274 loc) · 14.4 KB
/
Copy pathdefault-layout.html
File metadata and controls
290 lines (274 loc) · 14.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Cache-Control" content="max-age=7200" />
{%- assign seo_title = page.title -%}
{%- if site.title -%}
{%- assign seo_title = page.title | append: " - " | append: site.title -%}
{%- endif -%}
{%- assign seo_description = page.description -%}
{%- assign seo_group = '' -%}
{%- if page.url contains '/mrz-scanner/license/' and site.firstLevelUrl contains '/faq' -%}
{%- assign seo_group = 'mrz_license' -%}
{%- elsif page.url contains '/barcode-reader/license/' and site.firstLevelUrl contains '/faq' -%}
{%- assign seo_group = 'dbr_license' -%}
{%- endif -%}
{%- if seo_group != '' -%}
{%- assign seo_slug = page.url | split: '/' | last | replace: '.html', '' -%}
{%- if seo_slug == '' -%}
{%- assign seo_slug = 'index' -%}
{%- endif -%}
{%- assign seo_override = site.data.license_seo_overrides[seo_group][seo_slug] -%}
{%- if seo_override and seo_override.title and seo_override.title != '' -%}
{%- assign seo_title = seo_override.title -%}
{%- endif -%}
{%- if seo_override and seo_override.description and seo_override.description != '' -%}
{%- assign seo_description = seo_override.description -%}
{%- endif -%}
{%- endif -%}
<title>{{ seo_title }}</title>
<meta name="description" content="{{ seo_description }}">
<meta name="keywords" content="{{ page.keywords }}" />
{%- include head.html -%}
{%- if site.useVersionTreeV2 -%}
<style>
.DWT17Note {position: relative; padding: 15px 20px 15px 20px;background: #e5f5ff;border: 1px solid #c7dbe8;color: #4788b3;margin-bottom: 20px;}
.DWT17Note i { position: absolute; right: 10px; top: 8px; font-size: 20px; cursor: pointer; }
.rightSideMenu.hasNote { padding-top: 168px; }
.docContainer, .sideBar, .history { visibility: visible; }
#fullTreeMenuListContainer li.expandListStyle > ul { display: block; }
</style>
{%- endif -%}
</head>
{%- assign noTitleIndex = "" -%}
{%- if page.noTitleIndex or page.url contains 'release-notes' -%}
{%- assign noTitleIndex = "noTitleIndex" -%}
{%- endif -%}
{%- assign noSubMenuDoc = "" -%}
{%- if site.firstLevelUrl contains 'license-server' or site.isNoSubMenuDoc -%}
{%- assign noSubMenuDoc = "noSubMenuDoc" -%}
{%- endif -%}
{%- assign isDCV = "false" -%}
{%- if site.isDCV -%}
{%- assign isDCV = "true" -%}
{%- endif -%}
<body class="{{noSubMenuDoc}}" isDCV="{{isDCV}}">
{%- include page_header.html -%}
{%- include productNav.html -%}
<div class="sideBarIcon"><i class="fa fa-list toc-icon-gap"></i> Table of contents</div>
<div class="container" id="categoryMenuTree">
<div class="row">
<main class="docContainer col-xs-12 col-md-9">
<div id="docHead" class = "head row hide-xs hide-sm">
{%- include main-page-head.html -%}
</div>
<div class="main row showRightSideMenu" id="articleContent" data-needh3="{{page.needGenerateH3Content}}">
<div class="content markdown-body headCounter {{noTitleIndex}} col-xs-12 col-md-12 col-lg-9 col-xl-10 showRightSideMenu">
{%- if site.firstLevelUrl contains 'web-twain' -%}
<div class="dbrThanksDownloading">
<p class="thanksDownloadTitle">Thanks for Downloading Dynamic Web TWAIN 30-Day Trial!</p>
<p class="no-margin-bottom">Your download will start shortly. If your download does not begin, <a class="bluelink downloadlink" href="">click here to retry</a>.</p>
</div>
{%- endif -%}
<article>
{%- if page.url contains 'parameters' and site.docFullPath contains 'docs/core' -%}
<blockquote class="blockquote-tip">
<p class="small-margin-bottom">Need better scanning performance?</p>
<p><a class="createCaseLink" href="https://www.dynamsoft.com/create-a-case?topic=template-customization">Get a FREE customized reading template.</a></p>
</blockquote>
{%- endif -%}
{{ content }}
{%- if page.date and page.date != site.time -%}
<p class="postDate">
<i>Original post creation date: {{ page.date | date: "%b %d, %Y" }}</i>
<p>
{%- endif -%}
{%- if page.last_modified -%}
<p class="latestModifiedDate">
<i>Last modified date: {{ page.last_modified | date: "%b %d, %Y" }}</i>
<p>
{%- endif -%}
</article>
</div>
{%- assign assetsPath = '/webres/wwwroot' -%}
<div class="rightSideMenu col-xs-12 col-md-12 col-lg-3 col-xl-2 hide-md hide-sm hide-xs showRightSideMenu">
<div class="rightSideMenuContent">
{%- unless site.useVersionTreeV2 -%}
<div id="compatibleInfo">
<p>This page is compatible for:</p>
<p class="compatibleCurVersion"></p>
</div>
{%- endunless -%}
<div id="feedbackFooter" class="feedback-accent">
<p class="fontOswald">Is this page helpful? </p>
<a href="javascript:void(0)" class="recordLink smileLink feedback-accent" onclick="UsefulRecord(true)"><img class="icon-smile" src="{{ assetsPath }}/images/docs/icon-smile.png" alt="Yes" />Yes</a>
<a href="javascript:void(0)" class="recordLink sadLink feedback-accent" onclick="UsefulRecord(false)"><img class="icon-sad" src="{{ assetsPath }}/images/docs/icon-sad.png" alt="No" />No</a>
</div>
<hr />
{%- if page.needAutoGenerateSidebar -%}
<p class="fontOswald feedback-accent"> In this article: </p>
<div id="AutoGenerateSidebar"></div>
{%- endif -%}
</div>
</div>
</div>
<div class="main row loading-hidden" id="loadingContent">
<div class="loading" id="loadingLogin">
<div class="lds-ring"><div></div><div></div><div></div><div></div></div>
</div>
</div>
</main>
<aside class="sideBar col-xs-12 col-md-3 hide-xs hide-sm" data-nosnippet>
<div id="sideBarCnt">
<div class="history list" id="categoryMenuTree_history">
{%- include liquid_autoGenerateHistoryList.html -%}
{%- if site.firstLevelUrl contains 'web-twain' -%}
{%- include version-list.html -%}
<div id="dwtRedirectList">
{%- for redirectLink in page.redirect_from -%}
<input type="hidden" class="dwtReditectLink" value="{{site.firstLevelUrl}}{{redirectLink}}">
{%- endfor -%}
</div>
{%- else -%}
{%- include auto-version-list.html -%}
{%- endif -%}
</div>
{%- unless site.searchIndexName or site.needSearchIndex -%}
<div class="docSearchPart doc-search-spacer">
<label class="sr-only" for="txtSearch">Search documentation</label>
<input id="txtSearch" class="search" type="text" placeholder="Search docs" aria-label="Search documentation">
</div>
{%- endunless -%}
<nav class="mainPage">
{%- if site.useVersionTreeV2 -%}
{%- assign treeList = site.data.full_tree.tree_list -%}
{%- endif -%}
<ul id="fullTreeMenuListContainer" name="listLevel1" data-nosnippet>
<template id="fullTreeMenuTemplate">
{%- if site.useVersionTreeV2 -%}
{%- include liquid_generateFullTree.html treeList=treeList -%}
{%- endif -%}
</template>
</ul>
</nav>
<script>
(function() {
var template = document.getElementById('fullTreeMenuTemplate');
var target = document.getElementById('fullTreeMenuListContainer');
if (template && target) {
target.insertAdjacentHTML('beforeend', template.innerHTML);
}
})();
</script>
</div>
</aside>
</div>
</div>
<footer id="footerWrapper">
{%- include page_footer.html -%}
</footer>
<!-- <script type="text/javascript">
var myMermaid = null
var mermaidInterval = setInterval(async function() {
if (mermaid) {
mermaid.initialize({ startOnLoad: false },);
await mermaid.run({
querySelector: '.language-mermaid'
});
myMermaid = mermaid
clearInterval(mermaidInterval)
}
}, 100)
</script> -->
{%- if site.useVersionTreeV2 -%}
<script>
var highlightMenu = "{{page.highlightMenu}}";
anchors.add();
UrlReplace();
$(".currentVersion").text("latest version ("+ versionNoteLatestVersion +")");
FullTreeMenuList('{{page.needAutoGenerateSidebar}}', '{{page.needGenerateH3Content}}');
$(document).ready(function() {
var downloadLink = getUrlParam('download')
if (downloadLink != undefined) {
downloadLink = decodeURIComponent(downloadLink)
$('.downloadlink').attr('href', downloadLink);
$('.dbrThanksDownloading').show();
$('.downloadlink')[0].click();
}
})
</script>
{%- else -%}
<script type="text/javascript">
var sideBarIframeSrc = "{{site.firstLevelUrl}}/Hide_Tree_Page.html";
var highlightMenu = "{{page.highlightMenu}}";
anchors.add();
PageCreateInit('{{page.needAutoGenerateSidebar}}', '{{page.needGenerateH3Content}}', '{{page.pageStartVer}}', '{{site.useVersionTree}}');
</script>
{%- endif -%}
{%- include livehelp.html -%}
<script type="text/javascript">
function getCookie(name) {
var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
return (arr = document.cookie.match(reg)) ? unescape(arr[2]) : null;
}
$('#txtSearch').keydown(function(e) {
if (e.keyCode == 13) {
let product = getUrlVars(document.URL)["product"] ? getUrlVars(document.URL)["product"] : getCurrentUrlProductName(document.URL)
if (["dbr", "dlr", "dce", "dcp", "dcv", "ddn", "mrz", "mds"].indexOf(product) >= 0) {
let lang = getCurrentUrlLang(document.URL, true)
let reporType = ""
if (lang && lang != "core") {
lang = lang.toLowerCase().trim().split(",")[0]
if (['javascript', 'js'].indexOf(lang) >= 0) {
reporType = "web"
}
if (['objectivec-swift', 'android', 'objective-c', 'objc', 'swift', 'ios', 'react-native', 'maui', 'flutter', 'xamarin', 'cordova'].indexOf(lang) >= 0) {
reporType = "mobile"
}
if (['c', 'cpp', 'c++', 'csharp', 'dotnet', 'java', 'python', 'cplusplus'].indexOf(lang) >= 0) {
reporType = "server"
}
} else {
reporType = "core"
}
var gscParam = ""
if (product == "dcv") {
gscParam = `&ref=${getRefName(lang)}`
}
window.location.href = "/" + getDoumentName(product) + "/docs/" + reporType + "/search.html?lang="+ lang + "&q=" + $('#txtSearch').val() + gscParam
} else {
let preUrl = document.URL.split("/docs/")[0]
window.location.href = preUrl + "/docs/search.html?q=" + $('#txtSearch').val()
}
}
})
function getRefName(lang) {
lang = lang.toLowerCase()
if (['javascript', 'js'].indexOf(lang) >= 0) {
return "web"
} else if (['objectivec-swift','objective-c', 'objc', 'swift', 'ios'].indexOf(lang) >= 0) {
return "ios"
} else if (['c', 'cpp', 'c++', 'cplusplus'].indexOf(lang) >= 0) {
return "c++"
} else if (['csharp', 'dotnet'].indexOf(lang) >= 0) {
return ".net"
} else {
return lang
}
}
</script>
<!-- Google Tag Manager -->
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-538F83" height="0" width="0" class="gtm-hidden"></iframe>
</noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-538F83');</script>
<!-- End Google Tag Manager -->
</body>
</html>