This repository has been archived by the owner on Apr 4, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
168 lines (148 loc) · 6.99 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Exam Yandex</title>
<link type="text/css" rel="stylesheet" href="http://code.jquery.com/ui/1.9.0/themes/base/jquery-ui.css" />
<link rel="stylesheet" href="css/style.css" />
<link type="text/css" href="css/jquery.jscrollpane.css" rel="stylesheet" media="all" />
<link type="text/css" href="css/jquery.ui.timepicker.css" rel="stylesheet" media="all" />
<link type="text/css" href="css/codemirror.css" rel="stylesheet" />
<script type="text/javascript" src="lib/modernizr.js"></script>
</head>
<body>
<h1 class="header">Расписание ШРИ</h1>
<div class="b-timetable">
<script id="timetable-template" type="text/x-handlebars-template">
<div class="b-timetable_print">Версия для печати</div>
<div class="b-timetable_delete-all">удалить всё</div>
{{#each weeks}}
<div class="b-timetable_row">
<div class="b-timetable_row-name">{{this.week}}</div>
{{#each this.days}}
<div class="b-timetable_day scroll-pane {{this.class}}">
<span class="b-timetable_date caption">{{this.caption}}</span>
</div>
{{/each}}
</div>
{{/each}}
</script>
<script id="lecture-thumb-template" type="text/x-handlebars-template">
<div class="lectures" id="{{id}}" data-time="{{time}}">
<span class="lectures_time">{{time}} - </span> <span class="lectures_theme">{{theme}}</span>
</div>
</script>
<script id="day-template" type="text/x-handlebars-template">
<div class="b-popup_day-lecture">
<span class="b-day-lecture_header"><img src="img/cancel.png" alt="cancel" class="b-day-lecture_img-cancel"/><span class="b-day-lecture_header-date">{{day}}</span></span>
<div class="b-day-lecture_lectures scroll-pane">
{{#each lectures}}
<div class="b-day-lecture">
<div class="b-day-lecture_delete" data-lecture-id="{{this.id}}"></div>
<div class="b-day-lecture_time">{{this.time}}</div>
<div class="b-day-lecture_theme">{{this.theme}}</div>
<div class="b-day-lecture_presenter">{{this.presenter}}</div>
<div class="b-day-lecture_thesis">{{this.thesis}}</div>
<div class="b-day-lecture_presentation">{{this.presentation}}</div>
<button class="b-day-lecture_button" data-lecture-id="{{this.id}}">edit</button>
</div>
{{/each}}
</div>
</div>
</script>
<div id='edit-lecture-form' class='b-popup_overlay' style="display:none">
<div class="b-popup_edit-lecture">
<span class='b-popup_header'>
<img src="img/cancel.png" alt="cancel" class="b-popup_img-cancel"/>
</span>
<form class='b-popup_form'>
<input type="hidden" name="id" value="" class="field"/>
<span class="b-popup_text">Дата:</span>
<input type="text" name="date" value="" class="b-popup_input field input-date"/>
<span class="b-popup_text time">Время:</span>
<input type="text" name="time" value="" class="b-popup_input field input-time"/>
<br>
<span class="b-popup_text">Тема:</span>
<input type="text" name="theme" value="" class="b-popup_input width field"/>
<br>
<span class="b-popup_text">Тезисы:</span>
<textarea rows="10" cols="45" name="thesis" class="b-popup_input width field"></textarea>
<br>
<span class="b-popup_text">Докладчик:</span>
<input type="text" name="presenter" value="" class="b-popup_input width field"/>
<br>
<span class="b-popup_text">Презентация:</span>
<input type="text" name="presentation" value="" class="b-popup_input width field"/>
<br>
<input type="button" value="СОХРАНИТЬ" class='b-popup_save submit'/>
</form>
</div>
</div>
<div id='import-form' class='b-popup_overlay' style="display:none">
<div class="b-popup_import">
<span class='b-popup_header'>
<img src="img/cancel.png" alt="cancel" class="b-popup_img-cancel"/>
</span>
<form class='b-popup_form'>
<textarea type="text" name="json" class="b-popup_input width field"></textarea>
<br>
<input type="button" value="СОХРАНИТЬ" class='b-popup_save submit'/>
</form>
</div>
</div>
<div class='b-popup_overlay view-day' style="display:none"></div>
<div class="b-timetable_button-add">Добавить лекцию</div>
<div class="b-timetable_button-export">Экспортировать</div>
<div class="b-timetable_button-import">Импортировать</div>
</div>
<script id="print-template" type="text/x-handlebars-template">
<div class="b-print">
{{#each context}}
<span class="b-print_date">{{this.date}}</span>
<div class="b-print_lecture">
<span class="b-print_time">{{this.time}}</span>
<span class="b-print_theme">{{this.theme}}</span>
<span class="b-print_presenter">({{this.presenter}})</span>
<span class="b-print_thesis">{{this.thesis}}</span>
<span class="b-print_presentation">{{this.presentation}}</span>
</div>
{{/each}}
</div>
</script>
<script type="text/javascript" src="lib/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://cloud.github.com/downloads/wycats/handlebars.js/handlebars-1.0.rc.1.js"></script>
<script type="text/javascript" src="lib/json2.js"></script>
<script type="text/javascript" src="js/lectures.js"></script>
<script type="text/javascript" src="js/grid.js"></script>
<script type="text/javascript" src="js/lecture_cell.js"></script>
<script type="text/javascript" src="js/print.js"></script>
<script type="text/javascript" src="lib/jquery.ui.timepicker.js"></script>
<script type="text/javascript" src="lib/jquery.mousewheel.js"></script>
<script type="text/javascript" src="lib/jquery.jscrollpane.min.js"></script>
<script type="text/javascript" src="lib/jquery.validate.min.js"></script>
<script type="text/javascript" src="lib/jquery.ui.datepicker.validation.min.js"></script>
<script type="text/javascript" src="js/validation.js"></script>
<script type="text/javascript" src="lib/codemirror.js"></script>
<script type="text/javascript" src="lib/javascript.js"></script>
<script>
GRID.init($('#timetable-template'));
LECTURES.init();
LECTURES.load($('#lecture-thumb-template'));
PRINT.init();
$('.scroll-pane').jScrollPane(); //todo remove this
$(".input-date").datepicker({
dateFormat: 'dd-mm',
beforeShow: function(input, obj) {
$(input).after($(input).datepicker('widget'));
}
}).val();;
$(".input-time").timepicker({
beforeShow: function(input, obj) {
$(input).after($(input).datepicker('widget'));
}
}).val();;
/* VALIDATION.init()*/
</script>
</body>
</html>