flymis/WebRoot/dojojs/src/widget/TimePicker.js
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.widget.TimePicker");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.HtmlWidget");
dojo.require("dojo.event.*");
dojo.require("dojo.date.serialize");
dojo.require("dojo.date.format");
dojo.require("dojo.dom");
dojo.require("dojo.html.style");
dojo.requireLocalization("dojo.i18n.calendar", "gregorian");
dojo.requireLocalization("dojo.widget", "TimePicker");
dojo.widget.defineWidget(
"dojo.widget.TimePicker",
dojo.widget.HtmlWidget,
function(){
// selected time, JS Date object
this.time = "";
// set following flag to true if a default time should be set
this.useDefaultTime = false;
// set the following to true to set default minutes to current time, false to // use zero
this.useDefaultMinutes = false;
// rfc 3339 date
this.storedTime = "";
// time currently selected in the UI, stored in hours, minutes, seconds in the format that will be actually displayed
this.currentTime = {};
this.classNames = {
selectedTime: "selectedItem"
};
this.any = "any"; //FIXME: never used?
// dom node indecies for selected hour, minute, amPm, and "any time option"
this.selectedTime = {
hour: "",
minute: "",
amPm: "",
anyTime: false
};
// minutes are ordered as follows: ["12", "6", "1", "7", "2", "8", "3", "9", "4", "10", "5", "11"]
this.hourIndexMap = ["", 2, 4, 6, 8, 10, 1, 3, 5, 7, 9, 11, 0];
// minutes are ordered as follows: ["00", "30", "05", "35", "10", "40", "15", "45", "20", "50", "25", "55"]
this.minuteIndexMap = [0, 2, 4, 6, 8, 10, 1, 3, 5, 7, 9, 11];
},
{
isContainer: false,
templatePath: dojo.uri.dojoUri("src/widget/templates/TimePicker.html"),
templateCssPath: dojo.uri.dojoUri("src/widget/templates/TimePicker.css"),
fillInTemplate: function(args, frag){
// Copy style info from input node to output node
后面还有 282 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。