Changeset 25222 for lang/javascript/vimperator-plugins
- Timestamp:
- 11/28/08 15:57:46 (6 weeks ago)
- Files:
-
- 1 modified
-
lang/javascript/vimperator-plugins/trunk/clock.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/clock.js
r25206 r25222 5 5 * @description-ja とけい。 6 6 * @author janus_wel <janus_wel@fb3.so-net.ne.jp> 7 * @version 0.1 07 * @version 0.11 8 8 * @minversion 2.0pre 9 9 * @maxversion 2.0pre … … 54 54 const position = liberator.globalVariables.clock_position || 'liberator-commandline-command'; 55 55 let atemp = liberator.globalVariables.clock_after; 56 const after = (atemp === undefined) ? true57 : ( /^false$/i.test(atemp)) ? false58 : (/^\d+$/ i.test(atemp))? parseInt(atemp, 10)59 : true;56 const after = (atemp === undefined) ? true 57 : (atemp.toLowerCase() === 'false') ? false 58 : (/^\d+$/.test(atemp)) ? parseInt(atemp, 10) 59 : true; 60 60 61 61 // class definitions … … 77 77 'margin: 0;', 78 78 'padding: 1px;', 79 'border: none;',79 'border: 0 none;', 80 80 'color: black;', 81 81 'background-color: white;', … … 246 246 } 247 247 function year() { 248 let now = new Date(); 249 let year = (now.getYear() + 1900).toString(10); 250 return year; 248 return new Date().getFullYear().toString(10); 251 249 } 252 250
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)