Spaces:
Running
Running
这整个页面,要以产品为分类,比如安全产品,GLS;GLR - Follow Up Deployment
Browse files- index.html +161 -169
index.html
CHANGED
|
@@ -96,9 +96,22 @@
|
|
| 96 |
<a href="#" class="border-blue-500 text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium active-tab">
|
| 97 |
首页
|
| 98 |
</a>
|
| 99 |
-
<
|
| 100 |
-
|
| 101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
<a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
|
| 103 |
支持
|
| 104 |
</a>
|
|
@@ -140,54 +153,58 @@
|
|
| 140 |
<!-- 侧边栏 - 移动端 -->
|
| 141 |
<div id="sidebar" class="sidebar fixed md:relative inset-y-0 left-0 z-20 w-64 bg-white shadow-md md:shadow-none md:transform-none overflow-y-auto md:block md:w-1/4 lg:w-1/5 md:pr-4">
|
| 142 |
<div class="p-4">
|
| 143 |
-
<h3 class="text-lg font-medium text-gray-900 mb-4"
|
| 144 |
<ul class="space-y-2">
|
| 145 |
<li>
|
| 146 |
<a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium text-gray-900 rounded-md bg-blue-50">
|
| 147 |
-
<i class="fas fa-
|
| 148 |
-
|
| 149 |
</a>
|
| 150 |
</li>
|
| 151 |
<li>
|
| 152 |
<a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium text-gray-700 rounded-md hover:bg-blue-50">
|
| 153 |
-
<i class="fas fa-
|
| 154 |
-
|
| 155 |
</a>
|
| 156 |
</li>
|
| 157 |
<li>
|
| 158 |
<a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium text-gray-700 rounded-md hover:bg-blue-50">
|
| 159 |
-
<i class="fas fa-
|
| 160 |
-
|
| 161 |
</a>
|
| 162 |
</li>
|
| 163 |
<li>
|
| 164 |
<a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium text-gray-700 rounded-md hover:bg-blue-50">
|
| 165 |
-
<i class="fas fa-
|
| 166 |
-
|
| 167 |
</a>
|
| 168 |
</li>
|
| 169 |
<li>
|
| 170 |
<a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium text-gray-700 rounded-md hover:bg-blue-50">
|
| 171 |
-
<i class="fas fa-
|
| 172 |
-
|
| 173 |
</a>
|
| 174 |
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 175 |
<li>
|
| 176 |
<a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium text-gray-700 rounded-md hover:bg-blue-50">
|
| 177 |
-
<i class="fas fa-
|
| 178 |
-
|
| 179 |
</a>
|
| 180 |
</li>
|
| 181 |
<li>
|
| 182 |
<a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium text-gray-700 rounded-md hover:bg-blue-50">
|
| 183 |
-
<i class="fas fa-
|
| 184 |
-
|
| 185 |
</a>
|
| 186 |
</li>
|
| 187 |
<li>
|
| 188 |
<a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium text-gray-700 rounded-md hover:bg-blue-50">
|
| 189 |
-
<i class="fas fa-
|
| 190 |
-
|
| 191 |
</a>
|
| 192 |
</li>
|
| 193 |
</ul>
|
|
@@ -240,8 +257,22 @@
|
|
| 240 |
|
| 241 |
<!-- 文档标题和描述 -->
|
| 242 |
<div class="bg-white shadow-sm rounded-lg p-6 mb-6">
|
| 243 |
-
<
|
| 244 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
<div class="flex flex-wrap gap-2 mb-4">
|
| 246 |
<span class="px-3 py-1 bg-blue-100 text-blue-800 text-xs font-medium rounded-full">安装指南</span>
|
| 247 |
<span class="px-3 py-1 bg-green-100 text-green-800 text-xs font-medium rounded-full">操作手册</span>
|
|
@@ -265,9 +296,6 @@
|
|
| 265 |
<li class="mr-2" role="presentation">
|
| 266 |
<button class="inline-block p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300" id="operation-tab" data-tabs-target="#operation" type="button" role="tab" aria-controls="operation" aria-selected="false">操作说明</button>
|
| 267 |
</li>
|
| 268 |
-
<li role="presentation">
|
| 269 |
-
<button class="inline-block p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300" id="pdf-tab" data-tabs-target="#pdf" type="button" role="tab" aria-controls="pdf" aria-selected="false">PDF文档</button>
|
| 270 |
-
</li>
|
| 271 |
</ul>
|
| 272 |
</div>
|
| 273 |
|
|
@@ -674,74 +702,98 @@
|
|
| 674 |
</div>
|
| 675 |
</div>
|
| 676 |
</div>
|
| 677 |
-
|
| 678 |
-
|
| 679 |
-
|
| 680 |
-
|
| 681 |
-
|
| 682 |
-
|
| 683 |
-
|
| 684 |
-
|
| 685 |
-
|
| 686 |
-
<
|
| 687 |
-
<
|
| 688 |
-
|
| 689 |
-
|
| 690 |
-
|
| 691 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 692 |
</button>
|
| 693 |
</div>
|
| 694 |
</div>
|
| 695 |
-
|
| 696 |
-
|
| 697 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 698 |
</div>
|
| 699 |
-
|
| 700 |
-
|
| 701 |
-
|
| 702 |
-
<div class="
|
| 703 |
-
<
|
| 704 |
-
<
|
| 705 |
-
|
| 706 |
-
|
| 707 |
-
|
| 708 |
-
|
| 709 |
-
|
| 710 |
-
|
| 711 |
-
|
| 712 |
-
|
| 713 |
-
|
| 714 |
-
|
| 715 |
-
|
| 716 |
-
|
| 717 |
-
|
| 718 |
-
|
| 719 |
-
|
| 720 |
-
<h4 class="font-medium text-gray-800">XC-5000 技术参考手册</h4>
|
| 721 |
-
<p class="text-sm text-gray-500 mt-1">PDF · 5.7MB · v3.1</p>
|
| 722 |
-
</div>
|
| 723 |
-
</div>
|
| 724 |
-
</a>
|
| 725 |
-
<a href="#" class="document-card border border-gray-200 rounded-lg p-4 hover:shadow-md transition duration-150">
|
| 726 |
-
<div class="flex items-start">
|
| 727 |
-
<div class="bg-green-100 p-3 rounded-lg mr-3">
|
| 728 |
-
<i class="fas fa-file-pdf text-green-500 text-xl"></i>
|
| 729 |
-
</div>
|
| 730 |
-
<div>
|
| 731 |
-
<h4 class="font-medium text-gray-800">XC-5000 安全认证证书</h4>
|
| 732 |
-
<p class="text-sm text-gray-500 mt-1">PDF · 1.1MB · 2023</p>
|
| 733 |
-
</div>
|
| 734 |
-
</div>
|
| 735 |
-
</a>
|
| 736 |
</div>
|
| 737 |
</div>
|
| 738 |
-
</div>
|
| 739 |
-
</div>
|
| 740 |
-
|
| 741 |
-
<!-- 相关文档 -->
|
| 742 |
-
<div class="mt-8">
|
| 743 |
-
<h2 class="text-xl font-semibold text-gray-800 mb-4">相关文档</h2>
|
| 744 |
-
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
|
| 745 |
<div class="document-card border border-gray-200 rounded-lg p-6 hover:shadow-md transition duration-150">
|
| 746 |
<div class="flex items-start mb-4">
|
| 747 |
<div class="bg-blue-100 p-3 rounded-lg mr-4">
|
|
@@ -819,10 +871,11 @@
|
|
| 819 |
<div>
|
| 820 |
<h3 class="text-sm font-semibold uppercase tracking-wider">产品</h3>
|
| 821 |
<ul class="mt-4 space-y-2">
|
|
|
|
|
|
|
|
|
|
| 822 |
<li><a href="#" class="text-gray-300 hover:text-white">工业控制器</a></li>
|
| 823 |
<li><a href="#" class="text-gray-300 hover:text-white">传感器</a></li>
|
| 824 |
-
<li><a href="#" class="text-gray-300 hover:text-white">执行器</a></li>
|
| 825 |
-
<li><a href="#" class="text-gray-300 hover:text-white">通信模块</a></li>
|
| 826 |
</ul>
|
| 827 |
</div>
|
| 828 |
<div>
|
|
@@ -923,10 +976,6 @@
|
|
| 923 |
|
| 924 |
target.classList.remove('hidden');
|
| 925 |
|
| 926 |
-
// 如果是PDF选项卡,初始化PDF查看器
|
| 927 |
-
if (tab.id === 'pdf-tab') {
|
| 928 |
-
initPDFViewer();
|
| 929 |
-
}
|
| 930 |
});
|
| 931 |
});
|
| 932 |
|
|
@@ -950,87 +999,30 @@
|
|
| 950 |
});
|
| 951 |
});
|
| 952 |
|
| 953 |
-
//
|
| 954 |
-
|
| 955 |
-
pageNum = 1,
|
| 956 |
-
pageRendering = false,
|
| 957 |
-
pageNumPending = null,
|
| 958 |
-
scale = 1.5,
|
| 959 |
-
canvas = document.getElementById('pdf-canvas'),
|
| 960 |
-
ctx = canvas.getContext('2d');
|
| 961 |
-
|
| 962 |
-
function initPDFViewer() {
|
| 963 |
-
// 设置PDF.js worker路径
|
| 964 |
-
pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.12.313/pdf.worker.min.js';
|
| 965 |
-
|
| 966 |
-
// 加载示例PDF
|
| 967 |
-
const loadingTask = pdfjsLib.getDocument('https://raw.githubusercontent.com/mozilla/pdf.js/ba2edeae/examples/learning/helloworld.pdf');
|
| 968 |
-
|
| 969 |
-
loadingTask.promise.then(function(pdfDoc_) {
|
| 970 |
-
pdfDoc = pdfDoc_;
|
| 971 |
-
document.getElementById('total-pages').textContent = pdfDoc.numPages;
|
| 972 |
-
|
| 973 |
-
// 初始加载第一页
|
| 974 |
-
renderPage(pageNum);
|
| 975 |
-
});
|
| 976 |
-
}
|
| 977 |
|
| 978 |
-
|
| 979 |
-
|
| 980 |
-
|
| 981 |
-
|
| 982 |
-
const viewport = page.getViewport({ scale: scale });
|
| 983 |
-
canvas.height = viewport.height;
|
| 984 |
-
canvas.width = viewport.width;
|
| 985 |
-
|
| 986 |
-
const renderContext = {
|
| 987 |
-
canvasContext: ctx,
|
| 988 |
-
viewport: viewport
|
| 989 |
-
};
|
| 990 |
|
| 991 |
-
const
|
|
|
|
| 992 |
|
| 993 |
-
|
| 994 |
-
|
| 995 |
-
|
| 996 |
-
|
| 997 |
-
|
| 998 |
-
|
| 999 |
-
|
| 1000 |
-
|
| 1001 |
-
|
|
|
|
| 1002 |
});
|
| 1003 |
-
}
|
| 1004 |
-
|
| 1005 |
-
function queueRenderPage(num) {
|
| 1006 |
-
if (pageRendering) {
|
| 1007 |
-
pageNumPending = num;
|
| 1008 |
-
} else {
|
| 1009 |
-
renderPage(num);
|
| 1010 |
-
}
|
| 1011 |
-
}
|
| 1012 |
-
|
| 1013 |
-
document.getElementById('prev-page').addEventListener('click', function() {
|
| 1014 |
-
if (pageNum <= 1) {
|
| 1015 |
-
return;
|
| 1016 |
-
}
|
| 1017 |
-
pageNum--;
|
| 1018 |
-
queueRenderPage(pageNum);
|
| 1019 |
});
|
| 1020 |
-
|
| 1021 |
-
document.getElementById('next-page').addEventListener('click', function() {
|
| 1022 |
-
if (pageNum >= pdfDoc.numPages) {
|
| 1023 |
-
return;
|
| 1024 |
-
}
|
| 1025 |
-
pageNum++;
|
| 1026 |
-
queueRenderPage(pageNum);
|
| 1027 |
-
});
|
| 1028 |
-
|
| 1029 |
-
document.getElementById('download-pdf').addEventListener('click', function() {
|
| 1030 |
-
// 这里应该是实际PDF的下载链接
|
| 1031 |
-
window.open('https://raw.githubusercontent.com/mozilla/pdf.js/ba2edeae/examples/learning/helloworld.pdf', '_blank');
|
| 1032 |
-
});
|
| 1033 |
-
|
| 1034 |
// 默认显示概述选项卡
|
| 1035 |
document.getElementById('overview-tab').click();
|
| 1036 |
</script>
|
|
|
|
| 96 |
<a href="#" class="border-blue-500 text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium active-tab">
|
| 97 |
首页
|
| 98 |
</a>
|
| 99 |
+
<div class="relative group">
|
| 100 |
+
<button class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
|
| 101 |
+
产品分类
|
| 102 |
+
<i class="fas fa-chevron-down ml-1 text-xs"></i>
|
| 103 |
+
</button>
|
| 104 |
+
<div class="absolute left-0 mt-2 w-48 bg-white rounded-md shadow-lg z-10 invisible group-hover:visible">
|
| 105 |
+
<div class="py-1">
|
| 106 |
+
<div class="px-4 py-2 text-sm text-gray-700 font-medium border-b">产品系列</div>
|
| 107 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-blue-50">安全产品</a>
|
| 108 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-blue-50">GLS系列</a>
|
| 109 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-blue-50">GLR系列</a>
|
| 110 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-blue-50">工业控制器</a>
|
| 111 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-blue-50">传感器</a>
|
| 112 |
+
</div>
|
| 113 |
+
</div>
|
| 114 |
+
</div>
|
| 115 |
<a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
|
| 116 |
支持
|
| 117 |
</a>
|
|
|
|
| 153 |
<!-- 侧边栏 - 移动端 -->
|
| 154 |
<div id="sidebar" class="sidebar fixed md:relative inset-y-0 left-0 z-20 w-64 bg-white shadow-md md:shadow-none md:transform-none overflow-y-auto md:block md:w-1/4 lg:w-1/5 md:pr-4">
|
| 155 |
<div class="p-4">
|
| 156 |
+
<h3 class="text-lg font-medium text-gray-900 mb-4">产品分类</h3>
|
| 157 |
<ul class="space-y-2">
|
| 158 |
<li>
|
| 159 |
<a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium text-gray-900 rounded-md bg-blue-50">
|
| 160 |
+
<i class="fas fa-shield-alt mr-3 text-blue-500"></i>
|
| 161 |
+
安全产品
|
| 162 |
</a>
|
| 163 |
</li>
|
| 164 |
<li>
|
| 165 |
<a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium text-gray-700 rounded-md hover:bg-blue-50">
|
| 166 |
+
<i class="fas fa-bolt mr-3 text-blue-400"></i>
|
| 167 |
+
GLS系列
|
| 168 |
</a>
|
| 169 |
</li>
|
| 170 |
<li>
|
| 171 |
<a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium text-gray-700 rounded-md hover:bg-blue-50">
|
| 172 |
+
<i class="fas fa-plug mr-3 text-blue-400"></i>
|
| 173 |
+
GLR系列
|
| 174 |
</a>
|
| 175 |
</li>
|
| 176 |
<li>
|
| 177 |
<a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium text-gray-700 rounded-md hover:bg-blue-50">
|
| 178 |
+
<i class="fas fa-microchip mr-3 text-blue-400"></i>
|
| 179 |
+
工业控制器
|
| 180 |
</a>
|
| 181 |
</li>
|
| 182 |
<li>
|
| 183 |
<a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium text-gray-700 rounded-md hover:bg-blue-50">
|
| 184 |
+
<i class="fas fa-rss mr-3 text-blue-400"></i>
|
| 185 |
+
传感器
|
| 186 |
</a>
|
| 187 |
</li>
|
| 188 |
+
</ul>
|
| 189 |
+
|
| 190 |
+
<h3 class="text-lg font-medium text-gray-900 mt-8 mb-4">文档类型</h3>
|
| 191 |
+
<ul class="space-y-2">
|
| 192 |
<li>
|
| 193 |
<a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium text-gray-700 rounded-md hover:bg-blue-50">
|
| 194 |
+
<i class="fas fa-book mr-3 text-blue-400"></i>
|
| 195 |
+
说明书
|
| 196 |
</a>
|
| 197 |
</li>
|
| 198 |
<li>
|
| 199 |
<a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium text-gray-700 rounded-md hover:bg-blue-50">
|
| 200 |
+
<i class="fas fa-file-alt mr-3 text-blue-400"></i>
|
| 201 |
+
技术资料
|
| 202 |
</a>
|
| 203 |
</li>
|
| 204 |
<li>
|
| 205 |
<a href="#" class="sidebar-link flex items-center px-3 py-2 text-sm font-medium text-gray-700 rounded-md hover:bg-blue-50">
|
| 206 |
+
<i class="fas fa-video mr-3 text-blue-400"></i>
|
| 207 |
+
视频教程
|
| 208 |
</a>
|
| 209 |
</li>
|
| 210 |
</ul>
|
|
|
|
| 257 |
|
| 258 |
<!-- 文档标题和描述 -->
|
| 259 |
<div class="bg-white shadow-sm rounded-lg p-6 mb-6">
|
| 260 |
+
<div class="flex items-start">
|
| 261 |
+
<div class="flex-1">
|
| 262 |
+
<h1 class="text-2xl font-bold text-gray-900 mb-2">XC-5000 工业控制器说明书</h1>
|
| 263 |
+
<div class="text-sm text-gray-500 mb-2">产品系列: <span class="text-blue-600 font-medium">XC系列工业控制器</span></div>
|
| 264 |
+
<p class="text-gray-600 mb-4">最新版本: v3.2.1 | 更新日期: 2023-06-15 | 文档编号: DOC-XC5000-2023</p>
|
| 265 |
+
</div>
|
| 266 |
+
<div class="bg-blue-50 border border-blue-100 rounded-lg p-3 min-w-[200px]">
|
| 267 |
+
<p class="text-sm font-medium text-blue-800 mb-1">相关产品系列</p>
|
| 268 |
+
<ul class="text-xs space-y-1">
|
| 269 |
+
<li><a href="#" class="text-blue-600 hover:underline">XC-3000系列</a></li>
|
| 270 |
+
<li><a href="#" class="text-blue-600 hover:underline">XC-4000系列</a></li>
|
| 271 |
+
<li><a href="#" class="text-blue-600 hover:underline">XC-5000系列</a></li>
|
| 272 |
+
<li><a href="#" class="text-blue-600 hover:underline">XC-6000系列</a></li>
|
| 273 |
+
</ul>
|
| 274 |
+
</div>
|
| 275 |
+
</div>
|
| 276 |
<div class="flex flex-wrap gap-2 mb-4">
|
| 277 |
<span class="px-3 py-1 bg-blue-100 text-blue-800 text-xs font-medium rounded-full">安装指南</span>
|
| 278 |
<span class="px-3 py-1 bg-green-100 text-green-800 text-xs font-medium rounded-full">操作手册</span>
|
|
|
|
| 296 |
<li class="mr-2" role="presentation">
|
| 297 |
<button class="inline-block p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300" id="operation-tab" data-tabs-target="#operation" type="button" role="tab" aria-controls="operation" aria-selected="false">操作说明</button>
|
| 298 |
</li>
|
|
|
|
|
|
|
|
|
|
| 299 |
</ul>
|
| 300 |
</div>
|
| 301 |
|
|
|
|
| 702 |
</div>
|
| 703 |
</div>
|
| 704 |
</div>
|
| 705 |
+
</div>
|
| 706 |
+
|
| 707 |
+
<!-- 相关文档 -->
|
| 708 |
+
<div class="mt-8">
|
| 709 |
+
<div class="flex justify-between items-center mb-4">
|
| 710 |
+
<h2 class="text-xl font-semibold text-gray-800">相关文档</h2>
|
| 711 |
+
<div class="flex space-x-3">
|
| 712 |
+
<span class="text-sm font-medium text-gray-500">产品筛选:</span>
|
| 713 |
+
<select class="text-sm border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500">
|
| 714 |
+
<option>所有产品</option>
|
| 715 |
+
<option>工业控制器</option>
|
| 716 |
+
<option>传感器</option>
|
| 717 |
+
<option>驱动器</option>
|
| 718 |
+
</select>
|
| 719 |
+
<select class="text-sm border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500">
|
| 720 |
+
<option>所有系列</option>
|
| 721 |
+
<option>XC系列</option>
|
| 722 |
+
<option>XP系列</option>
|
| 723 |
+
<option>ST系列</option>
|
| 724 |
+
<option>DM系列</option>
|
| 725 |
+
</select>
|
| 726 |
+
</div>
|
| 727 |
+
</div>
|
| 728 |
+
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
|
| 729 |
+
<!-- 工业控制器文档 -->
|
| 730 |
+
<div class="document-card border border-gray-200 rounded-lg p-6 hover:shadow-md transition duration-150">
|
| 731 |
+
<div class="flex items-start mb-4">
|
| 732 |
+
<div class="bg-blue-100 p-3 rounded-lg mr-4">
|
| 733 |
+
<i class="fas fa-microchip text-blue-500 text-2xl"></i>
|
| 734 |
+
</div>
|
| 735 |
+
<div>
|
| 736 |
+
<h3 class="font-bold text-gray-800">XP-2000 操作手册</h3>
|
| 737 |
+
<p class="text-sm text-gray-500 mt-1">XP系列工业控制器操作指南</p>
|
| 738 |
+
</div>
|
| 739 |
+
</div>
|
| 740 |
+
<div class="flex flex-wrap gap-2 mb-4">
|
| 741 |
+
<span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs font-medium rounded">工业控制器</span>
|
| 742 |
+
<span class="px-2 py-1 bg-gray-100 text-gray-800 text-xs font-medium rounded">XP系列</span>
|
| 743 |
+
</div>
|
| 744 |
+
<div class="flex justify-between items-center">
|
| 745 |
+
<span class="text-sm text-gray-500">PDF · 4.1MB</span>
|
| 746 |
+
<button class="text-blue-500 hover:text-blue-700 text-sm font-medium flex items-center">
|
| 747 |
+
查看 <i class="fas fa-chevron-right ml-1 text-xs"></i>
|
| 748 |
</button>
|
| 749 |
</div>
|
| 750 |
</div>
|
| 751 |
+
|
| 752 |
+
<!-- 传感器文档 -->
|
| 753 |
+
<div class="document-card border border-gray-200 rounded-lg p-6 hover:shadow-md transition duration-150">
|
| 754 |
+
<div class="flex items-start mb-4">
|
| 755 |
+
<div class="bg-green-100 p-3 rounded-lg mr-4">
|
| 756 |
+
<i class="fas fa-rss text-green-500 text-2xl"></i>
|
| 757 |
+
</div>
|
| 758 |
+
<div>
|
| 759 |
+
<h3 class="font-bold text-gray-800">ST-300 技术手册</h3>
|
| 760 |
+
<p class="text-sm text-gray-500 mt-1">高精度温度传感器技术规格</p>
|
| 761 |
+
</div>
|
| 762 |
+
</div>
|
| 763 |
+
<div class="flex flex-wrap gap-2 mb-4">
|
| 764 |
+
<span class="px-2 py-1 bg-green-100 text-green-800 text-xs font-medium rounded">传感器</span>
|
| 765 |
+
<span class="px-2 py-1 bg-gray-100 text-gray-800 text-xs font-medium rounded">ST系列</span>
|
| 766 |
+
</div>
|
| 767 |
+
<div class="flex justify-between items-center">
|
| 768 |
+
<span class="text-sm text-gray-500">PDF · 2.5MB</span>
|
| 769 |
+
<button class="text-blue-500 hover:text-blue-700 text-sm font-medium flex items-center">
|
| 770 |
+
查看 <i class="fas fa-chevron-right ml-1 text-xs"></i>
|
| 771 |
+
</button>
|
| 772 |
+
</div>
|
| 773 |
</div>
|
| 774 |
+
|
| 775 |
+
<!-- 驱动器文档 -->
|
| 776 |
+
<div class="document-card border border-gray-200 rounded-lg p-6 hover:shadow-md transition duration-150">
|
| 777 |
+
<div class="flex items-start mb-4">
|
| 778 |
+
<div class="bg-purple-100 p-3 rounded-lg mr-4">
|
| 779 |
+
<i class="fas fa-cog text-purple-500 text-2xl"></i>
|
| 780 |
+
</div>
|
| 781 |
+
<div>
|
| 782 |
+
<h3 class="font-bold text-gray-800">DM-800 安装指南</h3>
|
| 783 |
+
<p class="text-sm text-gray-500 mt-1">伺服驱动器安装与配置</p>
|
| 784 |
+
</div>
|
| 785 |
+
</div>
|
| 786 |
+
<div class="flex flex-wrap gap-2 mb-4">
|
| 787 |
+
<span class="px-2 py-1 bg-purple-100 text-purple-800 text-xs font-medium rounded">驱动器</span>
|
| 788 |
+
<span class="px-2 py-1 bg-gray-100 text-gray-800 text-xs font-medium rounded">DM系列</span>
|
| 789 |
+
</div>
|
| 790 |
+
<div class="flex justify-between items-center">
|
| 791 |
+
<span class="text-sm text-gray-500">PDF · 3.7MB</span>
|
| 792 |
+
<button class="text-blue-500 hover:text-blue-700 text-sm font-medium flex items-center">
|
| 793 |
+
查看 <i class="fas fa-chevron-right ml-1 text-xs"></i>
|
| 794 |
+
</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 795 |
</div>
|
| 796 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 797 |
<div class="document-card border border-gray-200 rounded-lg p-6 hover:shadow-md transition duration-150">
|
| 798 |
<div class="flex items-start mb-4">
|
| 799 |
<div class="bg-blue-100 p-3 rounded-lg mr-4">
|
|
|
|
| 871 |
<div>
|
| 872 |
<h3 class="text-sm font-semibold uppercase tracking-wider">产品</h3>
|
| 873 |
<ul class="mt-4 space-y-2">
|
| 874 |
+
<li><a href="#" class="text-gray-300 hover:text-white">安全产品</a></li>
|
| 875 |
+
<li><a href="#" class="text-gray-300 hover:text-white">GLS系列</a></li>
|
| 876 |
+
<li><a href="#" class="text-gray-300 hover:text-white">GLR系列</a></li>
|
| 877 |
<li><a href="#" class="text-gray-300 hover:text-white">工业控制器</a></li>
|
| 878 |
<li><a href="#" class="text-gray-300 hover:text-white">传感器</a></li>
|
|
|
|
|
|
|
| 879 |
</ul>
|
| 880 |
</div>
|
| 881 |
<div>
|
|
|
|
| 976 |
|
| 977 |
target.classList.remove('hidden');
|
| 978 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 979 |
});
|
| 980 |
});
|
| 981 |
|
|
|
|
| 999 |
});
|
| 1000 |
});
|
| 1001 |
|
| 1002 |
+
// 侧边栏分类展开/折叠
|
| 1003 |
+
const sidebarCategories = document.querySelectorAll('.sidebar-link.cursor-pointer');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1004 |
|
| 1005 |
+
sidebarCategories.forEach(category => {
|
| 1006 |
+
category.addEventListener('click', (e) => {
|
| 1007 |
+
// 防止点击子元素时触发
|
| 1008 |
+
if(e.target.tagName === 'A') return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1009 |
|
| 1010 |
+
const icon = category.querySelector('i');
|
| 1011 |
+
const sublist = category.nextElementSibling;
|
| 1012 |
|
| 1013 |
+
// 如果是打开状态则关闭,否则打开
|
| 1014 |
+
if(sublist.classList.contains('hidden')) {
|
| 1015 |
+
sublist.classList.remove('hidden');
|
| 1016 |
+
icon.classList.remove('fa-chevron-down');
|
| 1017 |
+
icon.classList.add('fa-chevron-up');
|
| 1018 |
+
} else {
|
| 1019 |
+
sublist.classList.add('hidden');
|
| 1020 |
+
icon.classList.remove('fa-chevron-up');
|
| 1021 |
+
icon.classList.add('fa-chevron-down');
|
| 1022 |
+
}
|
| 1023 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1024 |
});
|
| 1025 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1026 |
// 默认显示概述选项卡
|
| 1027 |
document.getElementById('overview-tab').click();
|
| 1028 |
</script>
|