| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset=utf-8> | 4 <meta charset=utf-8> |
| 5 <title>Calendar Picker test</title> | 5 <title>Calendar Picker test</title> |
| 6 <style> | 6 <style> |
| 7 body { | 7 body { |
| 8 background-color: #eeffff; | 8 background-color: #eeffff; |
| 9 line-height: 1.4em; | 9 line-height: 1.4em; |
| 10 font-family: Helvetica, sans-serif; | 10 font-family: Helvetica, sans-serif; |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 mode: config.type, | 262 mode: config.type, |
| 263 locale: config.locale, | 263 locale: config.locale, |
| 264 weekStartDay: config.weekStartDay, | 264 weekStartDay: config.weekStartDay, |
| 265 isLocaleRTL: config.isLocaleRTL, | 265 isLocaleRTL: config.isLocaleRTL, |
| 266 dayLabels: locale_data[config.locale].dayLabels, | 266 dayLabels: locale_data[config.locale].dayLabels, |
| 267 shortMonthLabels: locale_data[config.locale].shortMonthLabels, | 267 shortMonthLabels: locale_data[config.locale].shortMonthLabels, |
| 268 max: config.max, | 268 max: config.max, |
| 269 min: config.min, | 269 min: config.min, |
| 270 step: config.step * (config.type === "month" ? 1 : 86400000), | 270 step: config.step * (config.type === "month" ? 1 : 86400000), |
| 271 stepBase: "0", | 271 stepBase: "0", |
| 272 currentValue: config.value | 272 currentValue: config.value, |
| 273 axShowMonthSelector: "Show month selection panel", |
| 274 axShowNextMonth: "Show next month", |
| 275 axShowPreviousMonth: "Show previous month", |
| 276 todayLabel: "Today", |
| 273 } | 277 } |
| 274 }; | 278 }; |
| 275 | 279 |
| 276 function openCalendar() { | 280 function openCalendar() { |
| 277 var frame = document.getElementsByTagName('iframe')[0]; | 281 var frame = document.getElementsByTagName('iframe')[0]; |
| 278 var doc = frame.contentDocument; | 282 var doc = frame.contentDocument; |
| 279 doc.documentElement.innerHTML = '<head></head><body><div id=main>Loading...<
/div></body>'; | 283 doc.documentElement.innerHTML = '<head></head><body><div id=main>Loading...<
/div></body>'; |
| 280 var commonCssLink = doc.createElement('link'); | 284 var commonCssLink = doc.createElement('link'); |
| 281 commonCssLink.rel = 'stylesheet'; | 285 commonCssLink.rel = 'stylesheet'; |
| 282 commonCssLink.href = '../../Source/web/resources/pickerCommon.css?' + (new D
ate()).getTime(); | 286 commonCssLink.href = '../../Source/web/resources/pickerCommon.css?' + (new D
ate()).getTime(); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 document.getElementById('console').appendChild(entry); | 350 document.getElementById('console').appendChild(entry); |
| 347 } | 351 } |
| 348 | 352 |
| 349 window.onload = function() { | 353 window.onload = function() { |
| 350 initializeConfig(); | 354 initializeConfig(); |
| 351 openCalendar(); | 355 openCalendar(); |
| 352 }; | 356 }; |
| 353 </script> | 357 </script> |
| 354 </body> | 358 </body> |
| 355 </html> | 359 </html> |
| OLD | NEW |