신동해

Update server.js : static path edited, Update index.ejs,list.ejs : img path edited

...@@ -3,7 +3,7 @@ const app = express(); ...@@ -3,7 +3,7 @@ const app = express();
3 const bodyParser = require('body-parser') 3 const bodyParser = require('body-parser')
4 app.use(bodyParser.urlencoded({extended : true})); 4 app.use(bodyParser.urlencoded({extended : true}));
5 app.set('view engine', 'ejs'); 5 app.set('view engine', 'ejs');
6 -app.use('/public', express.static('public')); 6 +app.use(express.static(__dirname+'/public'));
7 const fs = require('fs'); // JSON 파일 읽기 7 const fs = require('fs'); // JSON 파일 읽기
8 8
9 // 네이버 검색 Open API 예제 - 블로그 검색 9 // 네이버 검색 Open API 예제 - 블로그 검색
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
15 15
16 <!-- 메인페이지 대문 --> 16 <!-- 메인페이지 대문 -->
17 <div class="container mt-4" style="padding: 180px 140px 180px 140px;"> 17 <div class="container mt-4" style="padding: 180px 140px 180px 140px;">
18 - <img src="..\imgs\main.png" alt="main" style="display: block; margin:0 auto; top:50px;"/> 18 + <img src=".\imgs\main.png" alt="main" style="display: block; margin:0 auto; top:50px;"/>
19 <form action="/list" method="GET"> 19 <form action="/list" method="GET">
20 <div class="input-group mb-3"> 20 <div class="input-group mb-3">
21 <input type="text" class="form-control" placeholder="주제 검색" aria-label="주제 검색" aria-describedby="button-addon2" name = "subject"> 21 <input type="text" class="form-control" placeholder="주제 검색" aria-label="주제 검색" aria-describedby="button-addon2" name = "subject">
......
...@@ -9,12 +9,12 @@ ...@@ -9,12 +9,12 @@
9 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css" integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous"> 9 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css" integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous">
10 10
11 <!-- custom CSS --> 11 <!-- custom CSS -->
12 - <link rel="stylesheet" href="../public/main.css"> 12 + <link rel="stylesheet" href="./main.css">
13 13
14 </head> 14 </head>
15 <body> 15 <body>
16 <div class="container mt-4"> 16 <div class="container mt-4">
17 - <img src="..\imgs\word.png" alt="main" style="display: block; margin:0 auto; top:50px;"/> 17 + <img src="./imgs/word.png" alt="main" style="display: block; margin:0 auto; top:50px;"/>
18 18
19 <!-- 검색 --> 19 <!-- 검색 -->
20 <form action="/list" method="GET"> 20 <form action="/list" method="GET">
...@@ -32,14 +32,14 @@ ...@@ -32,14 +32,14 @@
32 <div id = "진보" > 32 <div id = "진보" >
33 <h4 style = "text-align: center; color:blue; font-weight:bold;">진보</h4> 33 <h4 style = "text-align: center; color:blue; font-weight:bold;">진보</h4>
34 <h3 style="text-align:center;"> 34 <h3 style="text-align:center;">
35 - <iframe src="oppov-334600.du.r.appspot.com/result/progress/<%=주제%>" width="550" height="600" marginwidth="0" frameborder="2" scrolling="yes"> 35 + <iframe src="https://oppov-334600.du.r.appspot.com/result/progress/<%=주제%>" width="550" height="600" marginwidth="0" frameborder="2" scrolling="yes">
36 </iframe> 36 </iframe>
37 </h3> 37 </h3>
38 </div> 38 </div>
39 <div id = "보수"> 39 <div id = "보수">
40 <h4 style = "text-align: center; color:red; font-weight:bold;">보수</h4> 40 <h4 style = "text-align: center; color:red; font-weight:bold;">보수</h4>
41 <h3 style="text-align:center;"> 41 <h3 style="text-align:center;">
42 - <iframe src="oppov-334600.du.r.appspot.com/result/liberal/<%=주제%>" width="550" height="600" marginwidth="0" frameborder="2" scrolling="yes"> 42 + <iframe src="https://oppov-334600.du.r.appspot.com/result/liberal/<%=주제%>" width="550" height="600" marginwidth="0" frameborder="2" scrolling="yes">
43 </iframe> 43 </iframe>
44 </h3> 44 </h3>
45 </div> 45 </div>
......