添加剩余所有功能

This commit is contained in:
2024-05-08 03:53:12 +08:00
parent e48d34c52c
commit 47b1820760
17 changed files with 2929 additions and 26 deletions
+38 -1
View File
@@ -647,6 +647,24 @@
<span data-feather="star"></span>
课程发布页面
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/2_information">
<span data-feather="star"></span>
个人信息
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/2_admin">
<span data-feather="star"></span>
管理员页面
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/2_liuyan">
<span data-feather="star"></span>
留言板
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/2_recycle">
@@ -658,7 +676,6 @@
</div>
</nav>
<!-- 左侧菜单 end-->
<!-- 右侧内容 start-->
<main role="main" class="col-md-10 ml-sm-auto col-lg-10 px-md-4" id="main">
<div style="margin-bottom: 0px;" class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
@@ -695,4 +712,24 @@
window.feather.replace();
}
</script>
<script>
var timer; // 定义一个变量来存储setTimeout返回的计时器ID
// 检测用户操作函数
function resetTimer() {
clearTimeout(timer); // 清除之前的计时器
timer = setTimeout(function() {
// 当用户无操作30秒后执行的代码,比如显示弹窗
alert('您已经30秒没有操作了!');
}, 30000); // 设置30秒后执行上面的函数
}
// 页面加载完成后开始计时
$(document).ready(function() {
resetTimer(); // 初始化计时器
// 绑定各种事件来重置计时器
$(document).on('mousemove keydown click', resetTimer);
});
</script>
</html>