신동해

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

......@@ -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 예제 - 블로그 검색
......
......@@ -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">
......
......@@ -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>
......