jquery日历记事本app界面模板

所属分类: 网页特效-日期时间    2024-10-29 03:05:27

jquery日历记事本app界面模板 ie兼容6
 查看演示  登录后下载 温馨提示
登录会员即可享受免费下载
 我要建站

jquery日历记事本app界面模板(共4个文件)

    • script.js
    • index.html
    • style.css

使用方法

let calendar = document.querySelector('.v-calendar');

  $(".calendar").on('click', function () {
		$(".v-calendar").addClass('mini');
	});

	var sections = $('section')
	  , nav = $('.calendar');

	$(".v-info").on('scroll', function () {
		if ($(".v-info").scrollTop() > 0) {
			$(".v-calendar").addClass('mini');
		} else {
			$(".v-calendar").removeClass('mini');
    }

    let calendarRect = calendar.getBoundingClientRect();
	  let curPos = calendarRect.top + calendarRect.height;

	  sections.each(function() {
	    let rect = this.getBoundingClientRect();
	    let style = window.getComputedStyle(this);
	    let top = rect.top - parseInt(style['margin-top'], 10);
	    let bottom = rect.bottom;
		
      if (curPos >= top && curPos <= bottom) { nav.find('a').removeClass('active'); sections.removeClass('active'); $(this).addClass('active'); nav.find('a[href="#'+$(this).attr('id')+'" data-ke-src="#'+$(this).attr('id')+'"]').addClass('active'); } }); }); nav.find('a').on('click', function () { var $el = $(this) , id = $el.attr('href'); $(".v-info").animate({ scrollTop: $(id).offset().top }, 500); return false; });

站长提示:
1. 苦力吧素材官方QQ群:950875342
2. 平台上所有素材资源,需注册登录会员方能正常下载。
3. 会员用户积极反馈网站、素材资源BUG或错误问题,每次奖励2K币
4. PHP源码类素材,如需协助安装调试,或你有二次开发需求,可联系苦力吧客服。
5. 付费素材资源,需充值后方能下载,如有任何疑问可直接联系苦力吧客服
相关资源 / 日期时间

bootstrap响应式支持新增日程安排的日历插件

一款可以自定义添加日历事件的多功能日历插件,支持用户自定义事件的详细信息,如事件名称、开始和结束时间以及背景颜色。此工具有助于高效组织和安排既定日程。
  日期时间
 4811  0

jquery弹出层时间选择器插件

timeDurationPicker是基于jQuery UI编写的时间选择器,可选择年、月、天、小时、分钟和秒,并赋值显示到DIV元素上。
  日期时间
 9686  0

jquery可自定义时间输入格式的时间选择器插件

此插件对表单内容格式进行自定义,可以轻松的选择小时和分钟标签,支持单独设定。
  日期时间
 7667  0

jquery实现时间显示几天前、几小时前或者几分钟前代码

主要核心是把当前时间转为时间戳,再跟标签自定义时间(时间戳)比较。
  日期时间
 3990  0

评论数(0) 回复有机会获得K币 用户协议

^_^ 还没有人评论,快来抢个沙发!
😀
  • 😀
  • 😊
  • 😂
  • 😍
  • 😑
  • 😷
  • 😵
  • 😛
  • 😣
  • 😱
  • 😋
  • 😎
  • 😵
  • 😕
  • 😶
  • 😚
  • 😜
  • 😭
发表评论