-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (72 loc) · 2.39 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<!--[if IE 8 ]><html lang="ru" class="ie8"><![endif]-->
<!--[if IE 9 ]><html lang="ru" class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html lang="ru">
<!--<![endif]-->
<head>
<title>Календарь</title>
<meta name="description" content="DESCRIPTION" />
<meta name="keywords" content="KEYWORDS" />
<meta charset="utf-8" />
<link href="css/jquery-ui.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div class="wrap">
<div class="calendar">
<h2>Календарь</h2>
<div id="events-calendar"></div>
</div>
<div class="events">
<h2>Список событий</h2>
<div id="events-list"></div>
</div>
</div>
<div id='event-dialog' class='dialog ui-helper-hidden'>
<form>
<div>
<label>Заголовок:</label>
<input id='event-dialog-title' class="field" type="text"></input>
</div>
<div>
<label>Описание:</label>
<input id='event-dialog-desc' class="field" type="text"></input>
</div>
</form>
</div>
<script id="eventTemplate" type="text/template">
<p><%= date.getDate() + '.' + (date.getMonth()+1) + '.' + date.getFullYear() %></p>
<h3><%= title %></h3>
<p><%= desc %></p>
</script>
<script id="calendarTemplate" type="text/template">
<table data-year=<%= year %> data-month=<%= monthMumber %>>
<thead>
<tr>
<td class="monthPrev">‹</td>
<td colspan="5"><%= month %> <%= year %></td>
<td class="monthNext">›</td>
</tr>
<tr>
<td>Пн</td>
<td>Вт</td>
<td>Ср</td>
<td>Чт</td>
<td>Пт</td>
<td class="holiday">Сб</td>
<td class="holiday">Вс</td>
</tr>
</thead>
<tbody>
<%= calendarHTML %>
</tbody>
</table>
</script>
<script type="text/javascript" src="http://yastatic.net/jquery/2.1.4/jquery.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://yastatic.net/underscore/1.6.0/underscore.js"></script>
<script type="text/javascript" src="http://yastatic.net/backbone/1.1.2/backbone.js"></script>
<script src="js/main.js" type="text/javascript"></script>
</body>
</html>