Toggle navigation
Toggle navigation
This project
Loading...
Sign in
강상위
/
my-broadcasting
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
강상위
2018-12-11 22:30:08 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b850b0157b89fe9bfde235982733c25b8dcb1538
b850b015
1 parent
f6877fbc
머지준비
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
18 deletions
package-lock.json → server_db/package-lock.json
package.json → server_db/package.json
server_db/routing.js
server_db/views/alloyscheulertest.ejs
server_db/views/contents_programs.ejs
server_db/views/timetable.ejs
package-lock.json
→
server_db/
package-lock.json
View file @
b850b01
File moved
package.json
→
server_db/
package.json
View file @
b850b01
File moved
server_db/routing.js
View file @
b850b01
...
...
@@ -125,7 +125,18 @@ module.exports = function(app, Users)
// 나만의 시간표
app
.
get
(
"/timetable"
,
function
(
req
,
res
)
{
res
.
render
(
"timetable"
);
var
program_list
=
[
{
content
:
'런닝맨'
,
endDate
:
new
Date
(
2018
,
11
,
9
,
5
,
45
),
startDate
:
new
Date
(
2018
,
11
,
9
,
1
,
30
),
disabled
:
true
}
];
res
.
render
(
"timetable"
,
{
pl
:
JSON
.
stringify
(
program_list
)});
});
}
...
...
server_db/views/alloyscheulertest.ejs
View file @
b850b01
<html>
<head>
<script
src=
"https://cdn.alloyui.com/3.0.1/aui/aui-min.js"
></script>
<link
href=
"https://cdn.alloyui.com/3.0.1/aui-css/css/bootstrap.min.css"
rel=
"stylesheet"
></link>
</head>
<body>
<div
id=
"wrapper"
>
<div
id=
"myScheduler"
></div>
</div>
<script>
<div id="wrapper">
<div id="myScheduler"></div>
</div>
<script>
setTimeout(() =>
{
YUI().use('aui-scheduler',
function(Y)
{
// code goes here
//console.log(<%- pl %>);
var events =
[
{
content
:
'런닝맨
'
,
endDate
:
new
Date
(
2018
,
11
,
9
,
5
,
45
),
content: '<%- pl[0].content%>
',
endDate: new Date(2018, 11, 9, 5, 30
),
startDate: new Date(2018, 11, 9, 1, 30),
disabled: true
}
...
...
@@ -34,8 +34,6 @@
}
);
}
);
</script>
</body>
</html>
\ No newline at end of file
});
}, 1000);
</script>
\ No newline at end of file
...
...
server_db/views/contents_programs.ejs
View file @
b850b01
...
...
@@ -8,6 +8,7 @@
<% if(val[3] == true) { %>
<li><%= val[4] %></li>
<li><%= val[5] %></li>
<button>추가</button>
<% } %>
<% }) %>
</div>
\ No newline at end of file
...
...
server_db/views/timetable.ejs
View file @
b850b01
<html>
<head>
<title>
My Timetable
</title>
<script
src=
"https://cdn.alloyui.com/3.0.1/aui/aui-min.js"
></script>
<link
href=
"https://cdn.alloyui.com/3.0.1/aui-css/css/bootstrap.min.css"
rel=
"stylesheet"
></link>
</head>
<body>
<
% include ./navigation_main.ejs %>
...
...
Please
register
or
login
to post a comment