Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2019-1-OpenSourceSW
/
StarCraft2 Build Recommendation
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
임에딘
2018-12-12 01:10:37 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a52f688ea9b3c5efb8ded9a5d978d3b0fd3b938b
a52f688e
1 parent
6322c4d1
웹페이지 분리 및 build_index.html 추가
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
80 additions
and
42 deletions
app.js
build_index.html
index.html
app.js
View file @
a52f688
...
...
@@ -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'
});
...
...
build_index.html
0 → 100644
View file @
a52f688
<!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>
index.html
View file @
a52f688
<!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>
...
...
Please
register
or
login
to post a comment