|
2 | 2 | <html lang="en-US"> |
3 | 3 |
|
4 | 4 | {%- include head.html -%} |
5 | | - |
| 5 | +{%- assign noTitleIndex = "" -%} |
| 6 | +{%- if page.noTitleIndex or page.url contains 'release-notes' -%} |
| 7 | + {%- assign noTitleIndex = "noTitleIndex" -%} |
| 8 | +{%- endif -%} |
6 | 9 | <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 | + |
10 | 13 | {%- include dbrNav.html -%} |
11 | 14 | <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"> |
13 | 16 | <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"> |
24 | 18 | <div id="docHead" class="head row hide-xs hide-sm"> |
25 | 19 | {%- include main-page-head.html -%} |
26 | 20 | </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;"> |
29 | 23 | <div class="dbrThanksDownloading"> |
30 | 24 | <p class="thanksDownloadTitle">Thanks for downloading Dynamsoft Barcode Reader <span class="editionName"></span> Package!</p> |
31 | 25 | <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> |
32 | 26 | </div> |
33 | 27 | {{ content }} |
34 | 28 |
|
35 | 29 | </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"> |
37 | 31 | <div id="compatibleInfo"> |
38 | 32 | <p>This page is compatible for:</p> |
39 | 33 | <p class="compatibleCurVersion">Version 7.5.0</p> |
|
49 | 43 | {%- endif -%} |
50 | 44 | </div> |
51 | 45 | </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> |
53 | 63 | </div> |
54 | 64 | </div> |
55 | | - <div class="history list"> |
| 65 | + <div class="history list" id="categoryMenuTree_history"> |
56 | 66 | <div class="container"> |
57 | 67 | <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 -%} |
59 | 70 | </div> |
60 | 71 | </div> |
61 | 72 | </div> |
62 | | - <div id="footerWrapper"> |
| 73 | + |
| 74 | + <footer id="footerWrapper"> |
63 | 75 | {%- include page_footer.html -%} |
64 | | - </div> |
| 76 | + </footer> |
65 | 77 |
|
66 | 78 | <iframe id="sideBarIframe" src="{{site.firstLevelUrl}}/Hide_Tree_Page.html" allow="" height="0" frameborder="0"></iframe> |
67 | 79 | <script type="text/javascript"> |
68 | 80 | anchors.add(); |
69 | | - </script> |
70 | | - |
71 | | - |
72 | | - <script type="text/javascript"> |
73 | 81 | UrlReplace(); |
74 | | - </script> |
75 | | - |
76 | | - <script type="text/javascript"> |
77 | 82 | FullTreeMenuList('{{page.needAutoGenerateSidebar}}', '{{page.needGenerateH3Content}}', '{{page.pageStartVer}}', '{{site.useVersionTree}}'); |
78 | 83 | </script> |
79 | 84 |
|
80 | 85 | {%- include livehelp.html -%} |
81 | 86 |
|
82 | | - |
83 | 87 | <!-- for dbr --> |
84 | 88 | <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 | | - |
91 | 89 | $(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 | | - } |
127 | 90 |
|
128 | 91 | $('#txtSearch').keydown(function(e) { |
129 | 92 | 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 | + } |
131 | 109 | } |
132 | 110 | }) |
| 111 | + |
133 | 112 | }) |
134 | 113 | </script> |
135 | | - |
| 114 | + |
136 | 115 | <!-- Google Tag Manager --> |
137 | 116 | <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-538F83" |
138 | 117 | height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> |
|
0 commit comments