WebRoot/calendar/normal.js
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// ---- Specific Options ----
var gsSplit="-"; // separator of date string. If set it to empty string, then giMonthMode and gbPadZero will be fixed to 0 and true.
var giDatePos=2; // date format sequence 0: D-M-Y ; 1: M-D-Y; 2: Y-M-D
var gbPadZero=true; // whether to pad the digits with 0 in the left when less than 10.
var giMonthMode=0; // month format 0: digits ; 1: full name from gMonths; >2: abbreviated month name in specified length.
var gbShortYear=false; // year format true: 2-digits; false: 4-digits
var gbAutoPos=true; // enable auto-adpative positioning or not
var gbPopDown=true; // true: pop the calendar below the dateCtrl; false: pop above if gbAutoPos is false.
var gbAutoClose=true; // whether to close the calendar after selecting a date.
var gPosOffset=[0,0]; // Offsets used to adjust the pop-up postion, [leftOffset, topOffset].
var gbFixedPos=false; // true: pop the calendar absolutely at gPosOffset; false: pop it relatively.
// ---- Common Options ----
var gMonths=["Jan","Feb","Mar.","Apr","May","Jun","July","Aug","Sept.","Oct.","Nov.","Dec"];
var gWeekDay=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]; // weekday caption from Sunday to Saturday
var gBegin=[1960,1,1]; // calendar date range begin from [Year,Month,Date]. Using gToday here will make it start from today.
var gEnd=[2020,12,31]; // calendar date range end at [Year,Month,Date]
var gsOutOfRange="Sorry, you may not go beyond the designated range!"; // out-of-date-range error message. If set to "", no alerts will popup on such error.
var guOutOfRange=null; // the background image url for the out-range dates. e.g. "outrange.gif"
var giFirstDOW=1; // indicates the first day of week. 0:Sunday; 1-6:Monday-Saturday.
var gcCalBG="#ccccc"; // the background color of the outer calendar panel.
var guCalBG=null; // the background image url for the inner table.
var gcCalFrame="#778899"; // the background color of the inner table, showing as a frame.
var gsInnerTable="border=0 cellpadding=2 cellspacing=1"; // HTML tag properties of the inner <table> tag, which holds all the calendar cells.
var gsOuterTable=NN4?"border=1 cellpadding=3 cellspacing=0":"border=0 cellpadding=1 cellspacing=2"; // HTML tag properties of the outmost container <table> tag, which holds the top, middle and bottom sections.
var gbHideTop=false; // true: hide the top section; false: show it according to the following settings
var giDCStyle=0; // the style of month-controls in top section. 0: use predefined html dropdowns & gsNavPrev/Next; 1: use gsCalTitle & gsNavPrev/Next; 2: use only gsCalTitle;
var gsCalTitle="gMonths[gCurMonth[1]-1]+' '+gCurMonth[0]"; // dynamic statement to be eval()'ed as the title when giDCStyle>0.
var gbDCSeq=true; // (effective only when giDCStyle is 0) true: show month box before year box; false: vice-versa;
var gsYearInBox="i"; // dynamic statement to be eval()'ed as the text shown in the year box. e.g. "'A.D.'+i" will show "A.D.2001"
var gsNavPrev="<INPUT id='navPrev' type='button' value='<' class='MonthNav' onmousedown='showPrevMon()' onmouseup='stopShowMon()' onmouseout='stopShowMon();if(this.blur)this.blur()'>"; // the content of the left month navigator
var gsNavNext="<INPUT id='navNext' type='button' value='>' class='MonthNav' onmousedown='showNextMon()' onmouseup='stopShowMon()' onmouseout='stopShowMon();if(this.blur)this.blur()'>"; // the content of the right month navigator
var gbHideBottom=false; // true: hide the bottom section; false: show it with gsBottom.
var gsBottom="<A href='javascript:void(0)' class='BottomAnchor' onclick='if(this.blur)this.blur();if(!fSetDate(gToday[0],gToday[1],gToday[2]))alert(\"You cannot select today!\");return false;' onmouseover='return true;' >Today : "+gMonths[gToday[1]-1]+" "+gToday[2]+", "+gToday[0]+"</A>"; // the content of the bottom section.
var giCellWidth=18; // calendar cell width;
var giCellHeight=14; // calendar cell height;
var giHeadHeight=14; // calendar head row height;
var giWeekWidth=14; // calendar week-number-column width;
var giHeadTop=1; // calendar head row top offset;
var giWeekTop=0; // calendar week-number-column top offset;
var gcCellBG="#e5e5e5"; // default background color of the cells. Use "" for transparent!!!
var gsCellHTML=""; // default HTML contents for days without any agenda, usually an image tag.
var guCellBGImg=""; // url of default background image for each calendar cell.
var gsAction=" "; // default action to be eval()'ed on everyday except the days with agendas, which have their own actions defined in agendas.
var gsDays="dayNo"; // the dynamic statement to be eval()'ed into each day cell.
var giWeekCol=-1; // -1: disable week-number-column; 0~7: show week numbers at the designated column.
var gsWeekHead="#"; // the text shown in the table head of week-number-column.
var gsWeeks="weekNo"; // the dynamic statement to be eval()'ed into the week-number-column. e.g. "'week '+weekNo" will show "week 1", "week 2" ...
var gcWorkday="black"; // Workday font color
var gcSat="black"; // Saturday font color
后面还有 37 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。