-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathprograms.html
65 lines (59 loc) · 2.07 KB
/
programs.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
---
layout: base
---
<script>
$(document).ready(function () {
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
location.href='/programs_mobile.html';
}
// schedule click event define
$('.day').click(function () {
location.href='/programs.html?day=' + $(this).attr('data-rel');
});
$('.day').removeClass('on');
$('.day_detail').hide();
switch (getUrlParameter('day')){
case '1014':
$('#day14').addClass('on');
$('#day14_detail').show();
break;
case '1016':
$('#day16').addClass('on');
$('#day16_detail').show();
break;
case '1017':
$('#day17').addClass('on');
$('#day17_detail').show();
break;
case '1015':default :
$('#day15').addClass('on');
$('#day15_detail').show();
break;
}
$('.timetable .corner_all')
.each(function() {
if ( $(this).attr('data-rel') )
$(this).css('cursor', 'pointer');
})
.click(function(){
if ( $(this).attr('data-rel') )
location.href='/session/' + $(this).attr('data-rel') + '.html';
});
});
</script>
<div class="wrap schedule">
<section>
<h1 class="title">일정</h1>
<div class="guide_bar_33"></div>
<div class="days">
<div class="day" id="day14" data-rel="1014">수요일 (10/14)</div>
<div class="day" id="day15" data-rel="1015">목요일 (10/15)</div>
<div class="day" id="day16" data-rel="1016">금요일 (10/16)</div>
<div class="day" id="day17" data-rel="1017">토요일 (10/17)</div>
</div>
{% include day14_detail.html %}
{% include day15_detail.html %}
{% include day16_detail.html %}
{% include day17_detail.html %}
</section>
</div>