up
This commit is contained in:
parent
4272b7bb13
commit
508969c13f
168 changed files with 340 additions and 10 deletions
|
@ -0,0 +1,17 @@
|
|||
importance: 4
|
||||
|
||||
---
|
||||
|
||||
# Create a calendar
|
||||
|
||||
Write a function `createCalendar(elem, year, month)`.
|
||||
|
||||
The call should create a calendar for the given year/month and put it inside `elem`.
|
||||
|
||||
The calendar should be a table, where a week is `<tr>`, and a day is `<td>`. The table top should be `<th>` with weekday names: the first day should be Monday, and so on till Sunday.
|
||||
|
||||
For instance, `createCalendar(cal, 2012, 9)` should generate in <code><div id='cal'></div></code> the following calendar:
|
||||
|
||||
[iframe height=210 src="solution"]
|
||||
|
||||
P.S. For this task it's enough to generate the calendar, should not yet be clickable.
|
Loading…
Add table
Add a link
Reference in a new issue