npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

fdatepicker-ex.js

v1.0.0

Published

fDatepicker.js的拓展版本,可以选择特定日历区间,目前适用于M.WOQU.COM酒店业务线。

Downloads

3

Readme

fDatepicker-Ex.js

fDatepicker.js的拓展版本,可以选择特定日历区间,目前适用于M.WOQU.COM酒店业务线。

Initialize


var datepicker = new DatepickerHotel({
    container: '#datepickerContainer',
    selectStart: new Date('2015/7/24'),
    selectEnd: new Date('2015/7/29'),
    startDate: new Date('2015/7/3'),
    endDate: new Date('2016/7/3'),
    initFrame: 4,
    loadFrames: 3,
    loadOffset: 60,
    selectCallback: function(startDate, endDate, sumDates) {
        alert('Callback function!! 入住时间:' + startDate + ' 退房时间:' + endDate + ' 共' + sumDates + '天');
    }
});

Demo

link:http://frender.github.io/fDatepicker-Ex.js

Options

  • container @String

需要制定的展示日历的根元素

  • initDate @String or @Date

初始化的选中日期。如果使用@String类型,请遵循标准的YYYYMMDD模式,否则实现标准Date.parse的浏览器会报invalid date错误。下同。

  • selectStart @String or @Date

用户选中的起始日期

  • selectEnd @String or @Date

用户选中的结束日期

  • startDate @String or @Date

日历的开始日期

  • endDate @String or @Date

日历的结束日期

  • singleFrame @Boolean

使用单个月份模式,支持月份切换

  • initFrames @Number

【多月份模式】初始化的个数

  • loadFrames @Number

【多月份模式】分页加载每页的个数

  • loadOffset @Number

【多月份模式】动态加载的偏移量

  • i18n @Boolean

开启国际化支持英文模式,默认使用中文模式

  • selectCallback @Function

选择日期后的回调函数

Installation


bower install fDatepicker-Ex.js [--save[-dev]]

or


npm install fdatepicker-ex.js [--save[-dev]]

Version

  • 1.0.0