Changeset 13701 for trunk/FACT++/www/shift
- Timestamp:
- 05/13/12 15:25:41 (13 years ago)
- Location:
- trunk/FACT++/www/shift
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/shift/calendar.css
r13685 r13701 55 55 font-size: 0.66em; 56 56 line-height: 1.5em; 57 width: 2.0em;57 /*width: 2.0em;*/ 58 58 padding-left: 0.6em; 59 59 padding-right: 0.6em; … … 70 70 } 71 71 72 #calendar table tfoot td.c alendar_week {72 #calendar table tfoot td.clock { 73 73 text-align: left; 74 } 75 76 #calendar table tfoot td.logout { 77 text-align: right; 74 78 } 75 79 -
trunk/FACT++/www/shift/calendar.js
r13687 r13701 191 191 192 192 tr = document.createElement("tr"); 193 td = this.getCell( "td", "logout", "calendar_week");194 td.onclick = function(e) { logout(); }195 td.height="1%";196 td.colSpan = 1;197 tr.appendChild( td );198 193 199 194 var td = document.createElement("td"); 200 195 td.height="1%"; 201 td.colSpan = 5; 196 td.colSpan=7; 197 tr.appendChild(td); 198 199 var tab = document.createElement("table"); 200 var tr2 = document.createElement("tr"); 201 tab.width="100%"; 202 tab.cellSpacing=0; 203 tab.cellPadding=0; 204 tab.style.borderWidth = 0; 205 tab.style.fontSize = "1.5em"; 206 tab.style.marginBottom = "2px"; 207 td.appendChild(tab); 208 tab.appendChild(tr2); 209 210 var tm = this.getCell( "td", this.timeTrigger(), "clock" ); 211 tm.style.whiteSpace="nowrap"; 212 tm.style.paddingLeft = "0px"; 213 tm.style.width="33%"; 214 tr2.appendChild( tm ); 215 216 var self = this; 217 window.setInterval(function() { tm.firstChild.nodeValue = self.timeTrigger(); }, 500); 218 219 var td = document.createElement("td"); 220 td.style.width="33%"; 202 221 td.style.textAlign="center"; 203 222 var a = document.createElement("a"); 204 223 a.href = "overview.png"; 224 a.style.whiteSpace="nowrap"; 205 225 a.appendChild(document.createTextNode("click here for help")); 206 226 td.appendChild(a); 207 tr.appendChild( td ); 208 209 td = this.getCell( "td", this.timeTrigger(), "clock" ); 210 td.colSpan = 1; 211 td.height="1%"; 212 tr.appendChild( td ); 227 tr2.appendChild( td ); 228 229 td = this.getCell( "td", "logout", "logout"); 230 td.style.width="33%"; 231 td.onclick = function(e) { logout(); } 232 td.style.paddingRight = "0px"; 233 tr2.appendChild( td ); 234 213 235 tfoot.appendChild( tr ); 214 236 215 var self = this;216 window.setInterval(function() { td.firstChild.nodeValue = self.timeTrigger(); }, 500);217 237 return tfoot; 218 238 } … … 709 729 var hh = (now.getHours() <10)?"0"+now.getHours() :now.getHours(); 710 730 711 var kw = "KW \u00a0" + this.getCalendarWeek(this.year, this.month, this.date);731 var kw = "KW" + this.getCalendarWeek(this.year, this.month, this.date); 712 732 var str = hh+":"+mm+":"+ss+"\u00a0["+kw+"]"; 713 733 return str;
Note:
See TracChangeset
for help on using the changeset viewer.