classes/artifacts/approval_war_exploded/asset/js/plugins/bootstrap-material-datetimepicker(1).js
(开头部分) 37KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*!
* bootstrap-material-datetimepicker.js
*
* Copyright (c) 2015 Romain America
*
* Released under the MIT license
* https://github.com/T00rk/bootstrap-material-datetimepicker/blob/gh-pages/LICENSE.md
*/
(function ($, moment) {
var pluginName = "bootstrapMaterialDatePicker";
var pluginDataName = "plugin_" + pluginName;
moment.locale('en');
function Plugin(element, options)
{
this.currentView = 0;
this.minDate;
this.maxDate;
this._attachedEvents = [];
this.element = element;
this.$element = $(element);
this.params = { date : true, time : true, format : 'YYYY-MM-DD', minDate : null, maxDate : null, currentDate : null, lang : 'en', weekStart : 0, shortTime : false, 'cancelText' : 'Cancel', 'okText' : 'OK','animation' : false};
this.params = $.fn.extend(this.params, options);
this.name = "dtp_" + this.setName();
this.$element.attr("data-dtp", this.name);
this.init();
}
$.fn[pluginName] = function(options, p)
{
this.each(function()
{
if(!$.data(this, pluginDataName))
{
$.data(this, pluginDataName, new Plugin(this, options));
}
else
{
if(typeof($.data(this, pluginDataName)[options]) === 'function')
{
$.data(this, pluginDataName)[options](p);
}
if(options === 'destroy')
{
delete $.data(this, pluginDataName);
}
}
});
return this;
};
Plugin.prototype =
后面还有 1178 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。