<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jQuery日期时间轴进度条播放代码 - 更多源码WW.96flw.COM</title>
<link rel="stylesheet" href="css/index.css">
</head>
<body>
<div id="progressTime"></div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.progressTime.js"></script>
<script type="text/javascript">
var hourTimestamp = 3600 * 1000;
var dayTimestamp = hourTimestamp * 24;
$("#progressTime").ProgressTime({
container: "progressTime",
startTime: new Date(formatDate(new Date(new Date().getTime() - dayTimestamp * 5), "YYYY/MM/DD 00:00:00")),
endTime: new Date(formatDate(new Date(), "YYYY/MM/DD 00:00:00")),
currentTime: new Date(formatDate(new Date(new Date().getTime() - dayTimestamp * 4), "YYYY/MM/DD 12:00:00")),
interval: 300,
delay: 2000,
callback: function (config) {
console.log(config);
},
animateCallback: function (config) {
// 假如动画完成之后请求数据需要两秒
var timer = setTimeout(function () {
progressTime.options.toPlay = true; // 两秒之后再继续走播放条
clearTimeout(timer);
}, 0);
}
});
</script>
</body>
</html>
jQuery日期时间轴进度条播放代码.zip
版权申诉
16 浏览量
2023-10-09
23:51:43
上传
评论
收藏 38KB ZIP 举报
码云笔记
- 粉丝: 2w+
- 资源: 5851
最新资源
- 部署yolov8的tensorrt模型支持检测分割姿态估计的C++源码+部署步骤.zip
- 以简单、易用、高性能为目标、开源的时序数据库,支持Linux及Windows, Time Series Database.zip
- python-leetcode面试题解之第198题打家劫舍-题解.zip
- python-leetcode面试题解之第191题位1的个数-题解.zip
- python-leetcode面试题解之第186题反转字符串中的单词II-题解.zip
- 一个基于python的web后端高性能开发框架,下载可用
- python-leetcode面试题解之第179题最大数-题解.zip
- python-leetcode面试题解之第170题两数之和III数据结构设计-题解.zip
- python-leetcode面试题解之第168题Excel表列名称-题解.zip
- python-leetcode面试题解之第167题两数之和II输入有序数组-题解.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈