index2 - 복사본.ejs
4.72 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><%= title %></title>
<!-- http://www.blueb.co.kr/?c=1/7&cat=%EB%8B%AC%EB%A0%A5&uid=4076 -->
<link href="http://www.blueb.co.kr/SRC2/fullcalendar/fullcalendar.css" rel='stylesheet' />
<link href="http://www.blueb.co.kr/SRC2/fullcalendar/fullcalendar.print.css" rel='stylesheet' media='print' />
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<script src="http://www.blueb.co.kr/SRC2/fullcalendar/lib/moment.min.js"></script>
<script src="http://www.blueb.co.kr/SRC2/fullcalendar/lib/jquery.min.js"></script>
<script src="http://www.blueb.co.kr/SRC2/fullcalendar/fullcalendar.min.js"></script>
<!-- <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script> -->
<!-- <style> @import url("http://fonts.googleapis.com/earlyaccess/nanumgothic.css");</style> -->
<script>
$(document).ready(function(){
$("button#searchButton").click(function(){
var name = $("input").val();
location.href = "http://127.0.0.1:3000/search/" + name;
})
});
</script>
<script>
$(document).ready(function() {
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
defaultDate: '2017-12-06',
businessHours: true, // display business hours
editable: true,
events: [
{
title: 'Business Lasdfasunch',
start: '2017-12-25',
constraint: 'businessHours'
},
{
title: 'Conference',
start: '2017-12-01',
end: '2017-12-01',
color: '#257e4a'
},
// //검정 250분 이상
// color: '#000000'E
// //빨강 200분 미만D
// color: '#990000'
// //주황 150분미만C
// color: '#ff6600'
// //노랑 100분 미만B
// color: '#ffff00'
// //초록 40분 미만A
// color: '#00ff99'
//var asa = new Date(print1[0]);
<% var p = 0 %>
<% for (var p = 0; p < _day.length ;p++ ) { %>
{
start: <%- _day[p] %>,
end: <%- _day[p] %>,
overlap: false,
rendering: 'background',
// color: '#ff6600'//투명
<% if ( _color[p] == "A") { %>
color: '#00ff99'//초록
<% } else if ( _color[p] == "B") { %>
color: '#ffff00'//노랑
<% } else if ( _color[p] == "C") { %>
color: '#ff6600'//주황
<% } else if ( _color[p] == "D") { %>
color: '#990000'//빨강
<% } else if ( _color[p] == "E") { %>
color: '#000000'//검정
<% } else if ( _color[0] == "F") { %>
color: '#ffffff'//투명
<% } else { %>
color: '#ffffff'//투명
<% } %>
},
<% } %>
{
//빨강 200분 미만
start: '2017-12-09',
//end: '2015-02-02',
overlap: false,
rendering: 'background',
color: '#ffffff'//투명
}
]
});
});
</script>
<style>
body {
width: 980px;
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
font-size: 14px;
}
#calendar {
max-width: 900px;
margin: 0 auto;
}
</style>
</head>
<body class="w3-content" style="padding-top: 16px">
<!-- 상단 이미지 -->
<div>
<img src = "https://i.ytimg.com/vi/nhX6W0mzVOE/maxresdefault.jpg" width="100%" height="250">
</div>
<div>
<input type="text" class="input_text" style="width: 90%" placeholder="소환사 이름"/>
<span class="input-group-btn">
<button id="searchButton" style="width:9%" class="btn btn-primary" type="button" onclick="search(name)">검색!</button>
</span>
</div>
<div>
<a>닉네임 : <%= name %></a><br>
<a>고유ID : <%= _profileIconId %></a><br>
<a>레 벨 : <%= _summonerLevel %></a><br>
<% for (var i = 0; i < _day.length ; i++ ) { %>
<a>시 간 : <%= _day[i] %></a>
<a> <%= _time[i] %></a>
<a> <%= _color[i] %></a><br>
<% } %>
</div>
<div>
<div id='calendar'></div>
</div>
</body>
</html>