임에딘

웹페이지 분리 및 build_index.html 추가

......@@ -16,6 +16,13 @@ app.get('/', function(req,res){
});
});
app.get('/build/create', function(req,res){
fs.readFile('build_index.html',function(err,data){
res.writeHead(200,{'Content-Type':'text/html'});
res.end(data);
});
});
app.get('/imgs',function(req,res){
fs.readFile('logoIMG.jpg',function(err,data){
res.writeHead(200,{'Content-Type':'text/html'});
......
<!DOCTYPE html>
<html lang="ko-kr">
<head>
<style>
.menu a{cursor:pointer;}
.menu .hide{display:none;}
</style>
<meta charset="utf-8">
<link href="//netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="/static/core/style.css" rel="stylesheet" media="screen">
<script type="text/javascript" src="node_modules/jquery/dist/jquery.js"></script>
<script type="text/javascript">
$().ready(function(){
alert("jquery is running");
});
</script>
<script async="" src="//www.google-analytics.com/analytics.js"></script>
<script type="text/javascript" async="" src="//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js"></script>
<title>StarCraft 2 Build Recommendation Project</title>
<script>
$(document).ready(function(){
$(".menu>a").click(function(){
$(this).next("ul").toggleClass("hide");
});
});
</script>
<body>
<p stype="fond-family:verdana;">StarCraft 2 Build Recommendation Project</p>
<br>
<br>
<img src="/imgs" alt="StarCraft2 LOGO image">
<br>
<br>
<div>
<ul>
<li class="menu">
<a><img src="" alt="상위메뉴이미지1"/></a>
<ul class="hide">
<li>메뉴1-1</li>
<li>메뉴1-2</li>
<li>메뉴1-3</li>
<li>메뉴1-4</li>
<li>메뉴1-5</li>
<li>메뉴1-6</li>
</ul>
</li>
<li class="menu">
<a><img src="" alt="상위메뉴이미지2"/></a>
<ul class="hide">
<li>메뉴2-1</li>
<li>메뉴2-2</li>
<li>메뉴2-3</li>
<li>메뉴2-4</li>
<li>메뉴2-5</li>
<li>메뉴2-6</li>
</ul>
</li>
</ul>
</div>
<br>
<br>
<a class="btn btn-primary" href="/">돌아가기</a>
<br>
<br>
<a href="https://starcraft2.com/ko-kr/game">Official Site</a>
</body>
</html>
<!DOCTYPE html>
<html lang="ko-kr">
<head>
<style>
.menu a{cursor:pointer;}
.menu .hide{display:none;}
</style>
<meta charset="utf-8">
<link href="//netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="/static/core/style.css" rel="stylesheet" media="screen">
<script type="text/javascript" src="node_modules/jquery/dist/jquery.js"></script>
<script type="text/javascript">
$().ready(function(){
alert("jquery is running");
alert("StarCraft2 Build Recommendation Project");
});
</script>
<script async="" src="//www.google-analytics.com/analytics.js"></script>
<script type="text/javascript" async="" src="//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js"></script>
<title>StarCraft 2 Build Recommendation Project</title>
<script>
$(document).ready(function(){
$(".menu>a").click(function(){
$(this).next("ul").toggleClass("hide");
});
});
</script>
<body>
<p stype="fond-family:verdana;">StarCraft 2 Build Recommendation Project</p>
......@@ -110,36 +99,6 @@
<a class="btn btn-primary" href="/build/create/">빌드</a>
<br>
<br>
<div>
<ul>
<li class="menu">
<a><img src="" alt="상위메뉴이미지1"/></a>
<ul class="hide">
<li>메뉴1-1</li>
<li>메뉴1-2</li>
<li>메뉴1-3</li>
<li>메뉴1-4</li>
<li>메뉴1-5</li>
<li>메뉴1-6</li>
</ul>
</li>
<li class="menu">
<a><img src="" alt="상위메뉴이미지2"/></a>
<ul class="hide">
<li>메뉴2-1</li>
<li>메뉴2-2</li>
<li>메뉴2-3</li>
<li>메뉴2-4</li>
<li>메뉴2-5</li>
<li>메뉴2-6</li>
</ul>
</li>
</ul>
</div>
<br>
<br>
<a href="https://starcraft2.com/ko-kr/game">Official Site</a>
</body>
......