임에딘

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

...@@ -16,6 +16,13 @@ app.get('/', function(req,res){ ...@@ -16,6 +16,13 @@ app.get('/', function(req,res){
16 }); 16 });
17 }); 17 });
18 18
19 +app.get('/build/create', function(req,res){
20 + fs.readFile('build_index.html',function(err,data){
21 + res.writeHead(200,{'Content-Type':'text/html'});
22 + res.end(data);
23 + });
24 +});
25 +
19 app.get('/imgs',function(req,res){ 26 app.get('/imgs',function(req,res){
20 fs.readFile('logoIMG.jpg',function(err,data){ 27 fs.readFile('logoIMG.jpg',function(err,data){
21 res.writeHead(200,{'Content-Type':'text/html'}); 28 res.writeHead(200,{'Content-Type':'text/html'});
......
1 +<!DOCTYPE html>
2 +<html lang="ko-kr">
3 +<head>
4 + <style>
5 + .menu a{cursor:pointer;}
6 + .menu .hide{display:none;}
7 + </style>
8 + <meta charset="utf-8">
9 + <link href="//netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" media="screen">
10 + <link href="/static/core/style.css" rel="stylesheet" media="screen">
11 + <script type="text/javascript" src="node_modules/jquery/dist/jquery.js"></script>
12 + <script type="text/javascript">
13 + $().ready(function(){
14 + alert("jquery is running");
15 + });
16 + </script>
17 + <script async="" src="//www.google-analytics.com/analytics.js"></script>
18 + <script type="text/javascript" async="" src="//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js"></script>
19 + <title>StarCraft 2 Build Recommendation Project</title>
20 + <script>
21 + $(document).ready(function(){
22 + $(".menu>a").click(function(){
23 + $(this).next("ul").toggleClass("hide");
24 + });
25 + });
26 + </script>
27 +
28 +<body>
29 +<p stype="fond-family:verdana;">StarCraft 2 Build Recommendation Project</p>
30 +<br>
31 +<br>
32 +<img src="/imgs" alt="StarCraft2 LOGO image">
33 +
34 +<br>
35 +<br>
36 +<div>
37 + <ul>
38 + <li class="menu">
39 + <a><img src="" alt="상위메뉴이미지1"/></a>
40 + <ul class="hide">
41 + <li>메뉴1-1</li>
42 + <li>메뉴1-2</li>
43 + <li>메뉴1-3</li>
44 + <li>메뉴1-4</li>
45 + <li>메뉴1-5</li>
46 + <li>메뉴1-6</li>
47 + </ul>
48 + </li>
49 +
50 + <li class="menu">
51 + <a><img src="" alt="상위메뉴이미지2"/></a>
52 + <ul class="hide">
53 + <li>메뉴2-1</li>
54 + <li>메뉴2-2</li>
55 + <li>메뉴2-3</li>
56 + <li>메뉴2-4</li>
57 + <li>메뉴2-5</li>
58 + <li>메뉴2-6</li>
59 + </ul>
60 + </li>
61 + </ul>
62 +</div>
63 +
64 +<br>
65 +<br>
66 +<a class="btn btn-primary" href="/">돌아가기</a>
67 +<br>
68 +<br>
69 +<a href="https://starcraft2.com/ko-kr/game">Official Site</a>
70 +
71 +</body>
72 +</html>
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html lang="ko-kr"> 2 <html lang="ko-kr">
3 <head> 3 <head>
4 - <style>
5 - .menu a{cursor:pointer;}
6 - .menu .hide{display:none;}
7 - </style>
8 <meta charset="utf-8"> 4 <meta charset="utf-8">
9 <link href="//netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" media="screen"> 5 <link href="//netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" media="screen">
10 <link href="/static/core/style.css" rel="stylesheet" media="screen"> 6 <link href="/static/core/style.css" rel="stylesheet" media="screen">
11 <script type="text/javascript" src="node_modules/jquery/dist/jquery.js"></script> 7 <script type="text/javascript" src="node_modules/jquery/dist/jquery.js"></script>
12 <script type="text/javascript"> 8 <script type="text/javascript">
13 $().ready(function(){ 9 $().ready(function(){
14 - alert("jquery is running"); 10 + alert("StarCraft2 Build Recommendation Project");
15 }); 11 });
16 </script> 12 </script>
17 <script async="" src="//www.google-analytics.com/analytics.js"></script> 13 <script async="" src="//www.google-analytics.com/analytics.js"></script>
18 <script type="text/javascript" async="" src="//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js"></script> 14 <script type="text/javascript" async="" src="//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js"></script>
19 <title>StarCraft 2 Build Recommendation Project</title> 15 <title>StarCraft 2 Build Recommendation Project</title>
20 - <script>
21 - $(document).ready(function(){
22 - $(".menu>a").click(function(){
23 - $(this).next("ul").toggleClass("hide");
24 - });
25 - });
26 - </script>
27 16
28 <body> 17 <body>
29 <p stype="fond-family:verdana;">StarCraft 2 Build Recommendation Project</p> 18 <p stype="fond-family:verdana;">StarCraft 2 Build Recommendation Project</p>
...@@ -110,36 +99,6 @@ ...@@ -110,36 +99,6 @@
110 <a class="btn btn-primary" href="/build/create/">빌드</a> 99 <a class="btn btn-primary" href="/build/create/">빌드</a>
111 <br> 100 <br>
112 <br> 101 <br>
113 -<div>
114 - <ul>
115 - <li class="menu">
116 - <a><img src="" alt="상위메뉴이미지1"/></a>
117 - <ul class="hide">
118 - <li>메뉴1-1</li>
119 - <li>메뉴1-2</li>
120 - <li>메뉴1-3</li>
121 - <li>메뉴1-4</li>
122 - <li>메뉴1-5</li>
123 - <li>메뉴1-6</li>
124 - </ul>
125 - </li>
126 -
127 - <li class="menu">
128 - <a><img src="" alt="상위메뉴이미지2"/></a>
129 - <ul class="hide">
130 - <li>메뉴2-1</li>
131 - <li>메뉴2-2</li>
132 - <li>메뉴2-3</li>
133 - <li>메뉴2-4</li>
134 - <li>메뉴2-5</li>
135 - <li>메뉴2-6</li>
136 - </ul>
137 - </li>
138 - </ul>
139 -</div>
140 -
141 -<br>
142 -<br>
143 <a href="https://starcraft2.com/ko-kr/game">Official Site</a> 102 <a href="https://starcraft2.com/ko-kr/game">Official Site</a>
144 103
145 </body> 104 </body>
......