Toggle navigation
Toggle navigation
This project
Loading...
Sign in
신동해
/
Omniscient-Public-Point-Of-View
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
4
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
신동해
2021-12-09 10:10:43 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2878a8321f310344c90c2e7e784aa6ae71e50a9c
2878a832
1 parent
f2f214db
Update server.js : static path edited, Update index.ejs,list.ejs : img path edited
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
imgs/main.png → public/imgs/main.png
imgs/word.png → public/imgs/word.png
server.js
views/index.ejs
views/list.ejs
imgs/main.png
→
public/
imgs/main.png
View file @
2878a83
30.1 KB
imgs/word.png
→
public/
imgs/word.png
View file @
2878a83
4.44 KB
server.js
View file @
2878a83
...
...
@@ -3,7 +3,7 @@ const app = express();
const
bodyParser
=
require
(
'body-parser'
)
app
.
use
(
bodyParser
.
urlencoded
({
extended
:
true
}));
app
.
set
(
'view engine'
,
'ejs'
);
app
.
use
(
'/public'
,
express
.
static
(
'
public'
));
app
.
use
(
express
.
static
(
__dirname
+
'/
public'
));
const
fs
=
require
(
'fs'
);
// JSON 파일 읽기
// 네이버 검색 Open API 예제 - 블로그 검색
...
...
views/index.ejs
View file @
2878a83
...
...
@@ -15,7 +15,7 @@
<!-- 메인페이지 대문 -->
<div
class=
"container mt-4"
style=
"padding: 180px 140px 180px 140px;"
>
<img
src=
".
.
\imgs\main.png"
alt=
"main"
style=
"display: block; margin:0 auto; top:50px;"
/>
<img
src=
".\imgs\main.png"
alt=
"main"
style=
"display: block; margin:0 auto; top:50px;"
/>
<form
action=
"/list"
method=
"GET"
>
<div
class=
"input-group mb-3"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"주제 검색"
aria-label=
"주제 검색"
aria-describedby=
"button-addon2"
name =
"subject"
>
...
...
views/list.ejs
View file @
2878a83
...
...
@@ -9,12 +9,12 @@
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css"
integrity=
"sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn"
crossorigin=
"anonymous"
>
<!-- custom CSS -->
<link
rel=
"stylesheet"
href=
".
./public
/main.css"
>
<link
rel=
"stylesheet"
href=
"./main.css"
>
</head>
<body>
<div
class=
"container mt-4"
>
<img
src=
".
.\imgs\
word.png"
alt=
"main"
style=
"display: block; margin:0 auto; top:50px;"
/>
<img
src=
".
/imgs/
word.png"
alt=
"main"
style=
"display: block; margin:0 auto; top:50px;"
/>
<!-- 검색 -->
<form
action=
"/list"
method=
"GET"
>
...
...
@@ -32,14 +32,14 @@
<div
id =
"진보"
>
<h4
style =
"text-align: center; color:blue; font-weight:bold;"
>
진보
</h4>
<h3
style=
"text-align:center;"
>
<iframe
src=
"oppov-334600.du.r.appspot.com/result/progress/<%=주제%>"
width=
"550"
height=
"600"
marginwidth=
"0"
frameborder=
"2"
scrolling=
"yes"
>
<iframe
src=
"
https://
oppov-334600.du.r.appspot.com/result/progress/<%=주제%>"
width=
"550"
height=
"600"
marginwidth=
"0"
frameborder=
"2"
scrolling=
"yes"
>
</iframe>
</h3>
</div>
<div
id =
"보수"
>
<h4
style =
"text-align: center; color:red; font-weight:bold;"
>
보수
</h4>
<h3
style=
"text-align:center;"
>
<iframe
src=
"oppov-334600.du.r.appspot.com/result/liberal/<%=주제%>"
width=
"550"
height=
"600"
marginwidth=
"0"
frameborder=
"2"
scrolling=
"yes"
>
<iframe
src=
"
https://
oppov-334600.du.r.appspot.com/result/liberal/<%=주제%>"
width=
"550"
height=
"600"
marginwidth=
"0"
frameborder=
"2"
scrolling=
"yes"
>
</iframe>
</h3>
</div>
...
...
Please
register
or
login
to post a comment