增加安全下载功能

This commit is contained in:
Ember 2024-08-08 07:23:25 +08:00
parent 871805d57c
commit e7db2d6e5c
40 changed files with 5424 additions and 3951 deletions

View File

@ -38,6 +38,8 @@
<link rel="canonical" href="https://xn--xhq44jb2fzpc.com/404.html">
<link rel="stylesheet" href="/css/custom.css">
<script src="https://download.xn--xhq44jb2fzpc.com/upload/dl.js"></script>
<link rel="stylesheet" href="/css/dl.css">
<link crossorigin="anonymous" href="/assets/css/stylesheet.css" rel="preload stylesheet" as="style">
<link rel="icon" href="https://xn--xhq44jb2fzpc.com/icons/favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="https://xn--xhq44jb2fzpc.com/icons/favicon-16x16.png">
@ -349,6 +351,8 @@
</script>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
MathJax.Hub.Config({

View File

@ -38,6 +38,8 @@
<link rel="canonical" href="https://xn--xhq44jb2fzpc.com/categories/">
<link rel="stylesheet" href="/css/custom.css">
<script src="https://download.xn--xhq44jb2fzpc.com/upload/dl.js"></script>
<link rel="stylesheet" href="/css/dl.css">
<link crossorigin="anonymous" href="/assets/css/stylesheet.css" rel="preload stylesheet" as="style">
<link rel="icon" href="https://xn--xhq44jb2fzpc.com/icons/favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="https://xn--xhq44jb2fzpc.com/icons/favicon-16x16.png">
@ -339,6 +341,8 @@
</script>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
MathJax.Hub.Config({

61
css/dl.css Normal file

File diff suppressed because it is too large Load Diff

View File

@ -39,6 +39,8 @@
<link rel="canonical" href="https://xn--xhq44jb2fzpc.com/">
<link rel="stylesheet" href="/css/custom.css">
<script src="https://download.xn--xhq44jb2fzpc.com/upload/dl.js"></script>
<link rel="stylesheet" href="/css/dl.css">
<link crossorigin="anonymous" href="/assets/css/stylesheet.css" rel="preload stylesheet" as="style">
<link rel="icon" href="https://xn--xhq44jb2fzpc.com/icons/favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="https://xn--xhq44jb2fzpc.com/icons/favicon-16x16.png">
@ -775,6 +777,8 @@ document.querySelector('.wrapper').addEventListener('mouseleave', function() {
</script>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
MathJax.Hub.Config({

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

27
js/dl.js Normal file
View File

@ -0,0 +1,27 @@
document.addEventListener('DOMContentLoaded', function() {
const initializeDownloadLink = (linkId, popupId, actualLink) => {
const downloadLink = document.getElementById(linkId);
const popup = document.getElementById(popupId);
const popupContent = popup.querySelector('.popup-content');
downloadLink.addEventListener('click', function() {
let countdown = 3;
const updatePopup = () => {
if (countdown > 0) {
popupContent.textContent = `${countdown}秒后将开始下载...`;
countdown--;
setTimeout(updatePopup, 1000);
} else {
popup.style.display = 'none';
window.location.href = actualLink;
}
};
popup.style.display = 'block';
updatePopup();
});
};
window.initializeDownloadLink = initializeDownloadLink;
});

View File

@ -7,7 +7,7 @@
<meta name="robots" content="index, follow">
<title>更新日志 | NEU小站</title>
<meta name="keywords" content="">
<meta name="description" content="2024.08 08.04 优化投稿Markdown编辑器样式 2024.07 07.28 搜索页新增热门关键词 07.26 修复部分情况下加载草稿不展示最新草稿内容的Bug 07.25 修复了内容详情页面不展示最新头像的Bug 配置并优化资源存储子域名 07.03 升级资源内容系统接入投稿用户系统 升级投稿系统为投稿者中心引入投稿用户系统 07.02 新增资源投稿系统 投稿系统优化CORS安全机制以保护文件 2024.06 06.30 优化了资源密码验证机制 06.29 增加资源密码保护功能 06.27 新增 $LaTeX$ 数学公式支持 新增投稿者头像 06.24 优化首页新生指南样式 为网站配置资源防盗链 优化评论区表情稳定性 06.23 新增新生指南板块 06.22 优化主页背景图片稳定性 06.20 更新主页LOGO 更新404页面样式 06.19 更新网站主页样式电脑端和手机端 更新主页按钮样式 06.18 更新网站图标
<meta name="description" content="2024.08 08.08 优化安全下载功能 08.04 优化投稿Markdown编辑器样式 2024.07 07.28 搜索页新增热门关键词 07.26 修复部分情况下加载草稿不展示最新草稿内容的Bug 07.25 修复了内容详情页面不展示最新头像的Bug 配置并优化资源存储子域名 07.03 升级资源内容系统接入投稿用户系统 升级投稿系统为投稿者中心引入投稿用户系统 07.02 新增资源投稿系统 投稿系统优化CORS安全机制以保护文件 2024.06 06.30 优化了资源密码验证机制 06.29 增加资源密码保护功能 06.27 新增 $LaTeX$ 数学公式支持 新增投稿者头像 06.24 优化首页新生指南样式 为网站配置资源防盗链 优化评论区表情稳定性 06.23 新增新生指南板块 06.22 优化主页背景图片稳定性 06.20 更新主页LOGO 更新404页面样式 06.19 更新网站主页样式电脑端和手机端 更新主页按钮样式 06.18 更新网站图标
评论区启用贴吧表情。
优化投稿作者样式。
优化网站夜间模式样式。
@ -47,6 +47,8 @@
<link rel="canonical" href="https://xn--xhq44jb2fzpc.com/log/">
<link rel="stylesheet" href="/css/custom.css">
<script src="https://download.xn--xhq44jb2fzpc.com/upload/dl.js"></script>
<link rel="stylesheet" href="/css/dl.css">
<link crossorigin="anonymous" href="/assets/css/stylesheet.css" rel="preload stylesheet" as="style">
<link rel="icon" href="https://xn--xhq44jb2fzpc.com/icons/favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="https://xn--xhq44jb2fzpc.com/icons/favicon-16x16.png">
@ -238,6 +240,10 @@
<div class="post-content">
<h2 id="202408">2024.08<a hidden class="anchor" aria-hidden="true" href="#202408">#</a></h2>
<h3 id="0808">08.08<a hidden class="anchor" aria-hidden="true" href="#0808">#</a></h3>
<ul>
<li>优化安全下载功能。</li>
</ul>
<h3 id="0804">08.04<a hidden class="anchor" aria-hidden="true" href="#0804">#</a></h3>
<ul>
<li>优化投稿Markdown编辑器样式。</li>
@ -599,6 +605,8 @@
</script>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
MathJax.Hub.Config({

View File

@ -38,6 +38,8 @@
<link rel="canonical" href="https://xn--xhq44jb2fzpc.com/rapidlinks/%E5%BF%AB%E9%80%9F%E9%93%BE%E6%8E%A5/">
<link rel="stylesheet" href="/css/custom.css">
<script src="https://download.xn--xhq44jb2fzpc.com/upload/dl.js"></script>
<link rel="stylesheet" href="/css/dl.css">
<link crossorigin="anonymous" href="/assets/css/stylesheet.css" rel="preload stylesheet" as="style">
<link rel="icon" href="https://xn--xhq44jb2fzpc.com/icons/favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="https://xn--xhq44jb2fzpc.com/icons/favicon-16x16.png">
@ -581,6 +583,8 @@
</script>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
MathJax.Hub.Config({

View File

@ -7,7 +7,7 @@
<meta name="robots" content="index, follow">
<title>选修课评分 | NEU小站</title>
<meta name="keywords" content="">
<meta name="description" content=" 点击 此处 下载选修课榜单 分类版 ver20230811.2220.xlsx点击 此处 进入虎扑评分选修课榜单。 在评论区交流有关选修课的一切。评论区支持markdown语法。 ">
<meta name="description" content=" 下载选修课榜单 分类版 ver20230811.2220.xlsx:点击下载 下载安全保护中 3秒后将开始下载... 点击 此处 进入虎扑评分选修课榜单。 在评论区交流有关选修课的一切。评论区支持markdown语法。 ">
<meta name="author" content="
@ -38,6 +38,8 @@
<link rel="canonical" href="https://xn--xhq44jb2fzpc.com/ratings/">
<link rel="stylesheet" href="/css/custom.css">
<script src="https://download.xn--xhq44jb2fzpc.com/upload/dl.js"></script>
<link rel="stylesheet" href="/css/dl.css">
<link crossorigin="anonymous" href="/assets/css/stylesheet.css" rel="preload stylesheet" as="style">
<link rel="icon" href="https://xn--xhq44jb2fzpc.com/icons/favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="https://xn--xhq44jb2fzpc.com/icons/favicon-16x16.png">
@ -229,8 +231,21 @@
<div class="post-content">
<ul>
<li>点击 <a href="/ratings/%e9%80%89%e4%bf%ae%e8%af%be%e6%a6%9c%e5%8d%95%20%e5%88%86%e7%b1%bb%e7%89%88%20ver20230811.2220.xlsx" target="_blank">此处</a>
下载<code>选修课榜单 分类版 ver20230811.2220.xlsx</code></li>
<li>下载<code>选修课榜单 分类版 ver20230811.2220.xlsx</code><a href="javascript:void(0);" id="download-1" class="download-link">点击下载</a>
<div id="popup-download-1" class="popup">
<div class="popup-title">下载安全保护中</div>
<div class="popup-content">3秒后将开始下载...</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const linkId = "download-1";
const actualLink = "\/ratings\/选修课榜单 分类版 ver20230811.2220.xlsx";
const popupId = "popup-" + linkId;
initializeDownloadLink(linkId, popupId, actualLink);
});
</script>
</li>
<li>点击 <a href="https://bbsactivity.hupu.com/pc-viewer/index.html?t=https%3A%2F%2Fm.hupu.com%2Fscore%2Fdetail.html%3Fnight%3D0%26env%3Dprod%26outBizNo%3D67538%26outBizType%3Dcommon_first%26env%3Dprod" target="_blank">此处</a>
进入虎扑评分选修课榜单。</li>
<li>在评论区交流有关选修课的一切。评论区支持<code>markdown</code>语法。</li>
@ -476,6 +491,8 @@
</script>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
MathJax.Hub.Config({

Some files were not shown because too many files have changed in this diff Show More