文件更新

This commit is contained in:
tyt 2025-02-10 15:48:22 +08:00
parent c715913e58
commit 403938357a
11 changed files with 279 additions and 54 deletions

View File

@ -23,6 +23,89 @@
<meta name="Author" content="xixun" />
<style >
/* 消息弹出框样式 */
.popup-message {
display: none; /* 初始隐藏 */
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0,0.7);
justify-content: center;
align-items: center;
z-index: 9999;
overflow: scroll;
}
.popup-content {
position: relative;
max-width: 80%; /* 弹框宽度占屏幕的80% */
max-height: 80%; /* 弹框高度占屏幕的80% */
background: #fff;
border-radius: 10px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 20px;
}
.popup-content img {
width: 100%; /* 让图片宽度自适应 */
height: auto; /* 保持图片比例 */
max-height: 70%; /* 限制图片的最大高度为弹框的70% */
border-radius: 10px;
object-fit: contain; /* 保证图片不会被裁剪 */
}
.buttons {
margin-top: 20px;
display: flex;
justify-content: center;
gap: 20px; /* 按钮间的间隔 */
}
.dont-show-btn, .close-btn {
padding: 15px 30px;
font-size: 16px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 10px;
cursor: pointer;
min-width: 120px; /* 按钮宽度最小为120px保证点击区域大 */
transition: background-color 0.3s ease;
}
.dont-show-btn:hover, .close-btn:hover {
background-color: #45a049;
}
@media (max-width: 600px) {
.popup-content {
max-width: 90%; /* 屏幕较小时弹框宽度占90% */
max-height: 90%; /* 高度也占90% */
}
.dont-show-btn, .close-btn {
padding: 12px 25px; /* 按钮在小屏时略小 */
font-size: 14px; /* 字体大小调整 */
}
}
@media (max-width: 400px) {
.popup-content {
max-width: 90%; /* 屏幕较小时弹框宽度占90% */
max-height: 90%; /* 高度也占90% */
}
.dont-show-btn, .close-btn {
padding: 6px 15px; /* 按钮在小屏时略小 */
font-size: 12px; /* 字体大小调整 */
}
}
/* #wonder{
position: fixed;
width: 100%;
@ -126,6 +209,63 @@
return str1 * 24 * 60 * 60 * 1000;
}
}
// window.onload = function() {
// document.getElementById("popupMessage").style.display = "flex";
// }
// 消息弹出框
// $(function(){
// const currentTime = new Date().getTime();
// const lastPopupTime = localStorage.getItem("lastPopupTime");
// // const showPopupDuration = 15 * 60 * 1000; // 设置为15分钟用户关闭后15分钟内不再弹出
// const showPopupDuration = 1 * 1000; // 设置为15分钟用户关闭后15分钟内不再弹出
// window.onload = function() {
// // 检查是否应该显示弹框
// if (shouldShowPopup(lastPopupTime, currentTime)) {
// // 显示图片弹框
// document.getElementById("popupMessage").style.display = "flex";
// }
// // 点击关闭按钮
// document.getElementById("closePopup").onclick = function() {
// document.getElementById("popupMessage").style.display = "none";
// // 记录关闭时间
// localStorage.setItem("lastPopupTime", currentTime);
// };
// // 点击“不再提醒”按钮
// document.getElementById("dontShowAgain").onclick = function() {
// document.getElementById("popupMessage").style.display = "none";
// // 设置不再显示的标记
// localStorage.setItem("dontShowPopupAgain", "true");
// };
// };
// // 判断是否应该显示弹框
// function shouldShowPopup(lastPopupTime, currentTime) {
// // 如果用户已经选择“不再提醒”,则不显示
// if (localStorage.getItem("dontShowPopupAgain") === "true") {
// return false;
// }
// // 如果没有记录上次显示时间或者超过了设置的时间例如7天
// if (!lastPopupTime || currentTime - lastPopupTime > showPopupDuration) {
// return true;
// }
// return false;
// }
// })
</script>
<body class="index_body">
@ -614,7 +754,16 @@
</div>
</div>
<div class="Topping" id="ScrollTop"><i class="layui-icon layui-icon-top"></i></div>
<!-- 弹出通知框 -->
<!-- <div id="popupMessage" class="popup-message">
<div class="popup-content">
<img id="popupImage" src="/static/image/ISE.jpg" alt="通知图片">
<div class="buttons">
<button id="dontShowAgain" class="dont-show-btn">不再通知</button>
<button id="closePopup" class="close-btn">关闭</button>
</div>
</div>
</div> -->
<script type="text/javascript">
function getCookie(cname) {
var name = cname + "=";
@ -647,6 +796,12 @@
setCookie("theme_state_OFFLi", "vagree");
});
});
// const currentTime = new Date().getTime();
// const lastPopupTime = localStorage.getItem("lastPopupTime");
// const showPopupDuration = 15 * 60 * 1000; // 设置为15分钟用户关闭后15分钟内不再弹出
// // const showPopupDuration = 1 * 1000; // 设置为15分钟用户关闭后15分钟内不再弹出
window.onload = function () {
if ($(window).innerWidth() > 1260) {
var hei = $(".home3 .top").innerHeight();
@ -658,7 +813,42 @@
$(".home3 .con").css("height", ZHei);
$(".incase_swiper .imgbox").css("height", ZHei2);
}
};
// 检查是否应该显示弹框
// if (shouldShowPopup(lastPopupTime, currentTime)) {
// // 显示图片弹框
// $("#popupMessage").css("display", "flex");
// }
// // 点击关闭按钮
// $("#closePopup").click(function() {
// $("#popupMessage").css("display", "none");
// // 记录关闭时间
// localStorage.setItem("lastPopupTime", currentTime);
// });
// // 点击“不再提醒”按钮
// $("#dontShowAgain").click(function() {
// $("#popupMessage").css("display", "none");
// // 设置不再显示的标记
// localStorage.setItem("dontShowPopupAgain", "true");
// });
};
// 判断是否应该显示弹框
// function shouldShowPopup(lastPopupTime, currentTime) {
// // 如果用户已经选择“不再提醒”,则不显示
// if (localStorage.getItem("dontShowPopupAgain") === "true") {
// return false;
// }
// // 如果没有记录上次显示时间或者超过了设置的时间例如7天
// if (!lastPopupTime || currentTime - lastPopupTime > showPopupDuration) {
// return true;
// }
// return false;
// };
// $(".product-item").hover(function(){
// // 鼠标进入元素时要执行的操作
// console.log('鼠标进入');

View File

@ -2,26 +2,7 @@
$(function(){
// function rem(){
// !function(n){
// var e=n.document,
// t=e.documentElement,
// i=1920,
// d=i/100,
// o="orientationchange"in n?"orientationchange":"resize",
// a=function(){
// if($(window).innerWidth() > 1920){
// $('html').removeAttr('style');
// } else {
// var n=t.clientWidth||320;n>1920&&(n=1920);
// t.style.fontSize=n/d+"px"
// }
// };
// e.addEventListener&&(n.addEventListener(o,a,!1),e.addEventListener("DOMContentLoaded",a,!1))
// }(window);
// }
// rem();
// 防抖方法
function AntiShake(fn,wait){
@ -231,25 +212,7 @@ $(function(){
}
});
// !function(n){
// var e=n.document,
// t=e.documentElement,
// i=1920,
// d=i/100,
// o="orientationchange"in n?"orientationchange":"resize",
// a=function(){
// var n = t.clientWidth || 320;
// //n < 992 && (n = n * 2);
// if(n>=1260){
// t.style.fontSize=n/d+"px";
// }else{
// t.style.fontSize="100px";
// }
// $('.main').css({'visibility':'visible'});
// };
// e.addEventListener&&(n.addEventListener(o,a,!1),e.addEventListener("DOMContentLoaded",a,!1))
// }(window);
$(function () {
//swiper方法调用
if (typeof Swiper != 'undefined') {
@ -1502,8 +1465,50 @@ $("#ScrollTop").click(function() {
}, 400);
});
// $(function() {
// const currentTime = new Date().getTime();
// const lastPopupTime = localStorage.getItem("lastPopupTime");
// const showPopupDuration = 15 * 60 * 1000; // 设置为15分钟用户关闭后15分钟内不再弹出
// // const showPopupDuration = 1 * 1000; // 设置为15分钟用户关闭后15分钟内不再弹出
// $(window).on('load', function() {
// // 检查是否应该显示弹框
// if (shouldShowPopup(lastPopupTime, currentTime)) {
// // 显示图片弹框
// $("#popupMessage").css("display", "flex");
// }
// // 点击关闭按钮
// $("#closePopup").click(function() {
// $("#popupMessage").css("display", "none");
// // 记录关闭时间
// localStorage.setItem("lastPopupTime", currentTime);
// });
// // 点击“不再提醒”按钮
// $("#dontShowAgain").click(function() {
// $("#popupMessage").css("display", "none");
// // 设置不再显示的标记
// localStorage.setItem("dontShowPopupAgain", "true");
// });
// });
// // 判断是否应该显示弹框
// function shouldShowPopup(lastPopupTime, currentTime) {
// // 如果用户已经选择“不再提醒”,则不显示
// if (localStorage.getItem("dontShowPopupAgain") === "true") {
// return false;
// }
// // 如果没有记录上次显示时间或者超过了设置的时间例如7天
// if (!lastPopupTime || currentTime - lastPopupTime > showPopupDuration) {
// return true;
// }
// return false;
// };
// })

View File

@ -1,4 +1,6 @@
<div class="container1260 headerBox ">
<div class="logo">
<a href="/index.html">
<img src="/static/image/logo.png" alt="" />
@ -605,6 +607,7 @@
</div>
</div>
<div class="head_rightmenu">
<a href="/search/index.html" style="margin-right: 50px;" target="_blank"><img src="/static/image/search_page.png" /></a>
<a href="http://sysolution.net/" target="_blank"><img src="/static/image/E.jpg" /></a>
<div class="navmenu_div fr">
<div class="navmenu_box">

View File

@ -225,7 +225,7 @@
<div class="document-ul-box">
<ul>
<li>
<a href="https://ledok.cn:8443/download/M60B-S规格书-V1.5.pdf" target="_blank" title="M60B-S规格书-V1.5">M60B-S规格书-V1.5.pdf</a>
<a href="https://ledok.cn:8443/download/M60B-S规格书-V1.6.pdf" target="_blank" title="M60B-S规格书-V1.6">M60B-S规格书-V1.6.pdf</a>
<span>规格书</span>
<span>2024.03.13</span>
</li>

View File

@ -245,7 +245,11 @@
<span>Datasheet</span>
<span>2024.03.13</span>
</li>
<li>
<a href="https://ledok.cn:8443/download/Y12 Instructions-V1.1.pdf" target="_blank" title="Y12 Instructions-V1.1">Y12 Instructions-V1.1.pdf</a>
<span>Instructions</span>
<span>2024.12.26</span>
</li>
</ul>
</div>
</div>

View File

@ -239,7 +239,7 @@
<div class="document-ul-box">
<ul>
<li>
<a href="https://ledok.cn:8443/download/Y50规格书-V2.6.pdf" target="_blank" title="Y50规格书-V2.6">Y50规格书-V2.6.pdf</a>
<a href="https://ledok.cn:8443/download/Y50规格书-V3.0.pdf" target="_blank" title="Y50规格书-V2.6">Y50规格书-V3.0.pdf</a>
<span>规格书</span>
<span>2024.09.24</span>
</li>
@ -253,6 +253,11 @@
<span>Datasheet</span>
<span>2024.09.24</span>
</li>
<li>
<a href="https://ledok.cn:8443/download/Y50 Instructions-V1.1.pdf" target="_blank" title="Y50 Instructions-V1.1">Y50 Instructions-V1.1.pdf</a>
<span>Instructions</span>
<span>2024.12.26</span>
</li>
</ul>
</div>
</div>

View File

@ -205,7 +205,7 @@
<div class="document-ul-box">
<ul>
<li>
<a href="https://ledok.cn:8443/download/S60S规格书-V1.1.pdf" target="_blank" title="S60S规格书-V1.1.pdf">S60S规格书-V1.1.pdf</a>
<a href="https://ledok.cn:8443/download/S60S规格书-V1.2.pdf" target="_blank" title="S60S规格书-V1.2.pdf">S60S规格书-V1.2.pdf</a>
<span>规格书</span>
<span>2024.03.13</span>
</li>

View File

@ -255,12 +255,12 @@
<div class="con1">
<div class="box">
<a href="https://ledok.cn:8443/download/M60B-S规格书-V1.5.pdf" class="left"
<a href="https://ledok.cn:8443/download/M60B-S规格书-V1.6.pdf" class="left"
target="_blank">
<div class="TextIcon">
<img src="/static/image/pdfDownload.png" alt="" />
</div>
<h5>M60B-S规格书-V1.5.pdf</h5>
<h5>M60B-S规格书-V1.6.pdf</h5>
</a>
</div>
<div class="box">

View File

@ -300,18 +300,26 @@
<h5>Y12用户操作手册-V1.1.pdf</h5>
</a>
</div>
<div class="box">
<a href="https://ledok.cn:8443/download/Y12 Instructions-V1.1.pdf" class="left"
target="_blank">
<div class="TextIcon">
<img src="/static/image/pdfDownload.png" alt="" />
</div>
<h5>Y12 Instructions-V1.1.pdf</h5>
</a>
</div>
</div>
<div class="con1">
<div class="box">
<a href="https://ledok.cn:8443/download/Y50规格书-V2.6.pdf" class="left"
<a href="https://ledok.cn:8443/download/Y50规格书-V3.0.pdf" class="left"
target="_blank">
<div class="TextIcon">
<img src="/static/image/pdfDownload.png" alt="" />
</div>
<h5>Y50规格书-V2.6.pdf</h5>
<h5>Y50规格书-V3.0.pdf</h5>
</a>
</div>
<div class="box">
@ -332,7 +340,15 @@
<h5>Y50用户操作手册-V2.0.pdf</h5>
</a>
</div>
<div class="box">
<a href="https://ledok.cn:8443/download/Y50 Instructions-V1.1.pdf" class="left"
target="_blank">
<div class="TextIcon">
<img src="/static/image/pdfDownload.png" alt="" />
</div>
<h5>Y50 Instructions-V1.1.pdf</h5>
</a>
</div>
</div>
</div>

View File

@ -419,11 +419,11 @@
<div class="con1">
<div class="box">
<a href="https://ledok.cn:8443/download/S60S规格书-V1.1.pdf" class="left" target="_blank">
<a href="https://ledok.cn:8443/download/S60S规格书-V1.2.pdf" class="left" target="_blank">
<div class="TextIcon">
<img src="/static/image/pdfDownload.png" alt="" />
</div>
<h5>S60S规格书-V1.1.pdf</h5>
<h5>S60S规格书-V1.2.pdf</h5>
</a>
</div>
<div class="box">

View File

@ -22427,3 +22427,5 @@ ul {
color: #6d6d6d;
padding: 12px 12px;
}