Toggle navigation
Toggle navigation
This project
Loading...
Sign in
teamPARK
/
holiday-counter-recommend-activity
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
박지환
2022-05-27 01:37:07 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
babde917f9c4ac7fd6dc3c66986d52ee449a9bf1
babde917
1 parent
c19f7696
Connect ejs and css
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletions
public/css/main.css
server.js
views/data.ejs
public/css/main.css
0 → 100644
View file @
babde91
h3
{
color
:
tomato
;
}
server.js
View file @
babde91
...
...
@@ -4,6 +4,7 @@ const request = require("request");
const
convert
=
require
(
"xml-js"
);
const
fs
=
require
(
"fs"
);
const
xml2js
=
require
(
"xml2js"
);
const
static
=
require
(
"serve-static"
);
// Modify the values as needed
var
year
=
"2022"
;
...
...
@@ -28,6 +29,7 @@ var tempArr = [];
// To run EJS engine
app
.
set
(
"views"
,
__dirname
+
"/views"
);
app
.
set
(
"view engine"
,
"ejs"
);
app
.
use
(
static
(
__dirname
));
// To get today date by using Date
function
getTodayDate
()
{
...
...
views/data.ejs
View file @
babde91
...
...
@@ -6,11 +6,18 @@
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
Document
</title>
<title>
Check the Holiday
</title>
<link
rel=
"stylesheet"
href=
"../public/css/main.css"
type=
"text/css"
>
<!--style.css 파일 적용.-->
</head>
<body>
<div>
<p>
<h1>
[
<
%= data[0] %>]까지
<
%= data[2] %>일 남았습니다. (
<
%= data[1] %>)
</h1>
</p>
</div>
<h2>
<
%= data[0] %> 에 추천하는 활동 목록입니다.
</h2>
<!--recommend activity 추가파트 시작-->
<h3>
1. 가나다
</h3>
<h3>
2. 라마바
</h3>
<h3>
2. 라마바
</h3>
</body>
</html>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment