Toggle navigation
Toggle navigation
This project
Loading...
Sign in
오원석
/
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-14 02:35:19 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
47356df7fd30ac5ecef8b5a90c66c6502a0051c4
47356df7
1 parent
ffe2f945
마스터로 이전
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
19 deletions
router/main.js
views/index.ejs
router/main.js
View file @
47356df
...
...
@@ -7,7 +7,9 @@ ejs_terran_proficiency: ' ',
ejs_zerg_proficiency
:
' '
,
ejs_protoss_proficiency
:
' '
,
ejs_primary_race
:
' '
,
ejs_win_rate
:
' '
});
ejs_win_rate
:
' '
,
ejs_recommend_build_1
:
' '
,
ejs_recommend_build_2
:
' '
});
});
app
.
get
(
'/recommend'
,
function
(
req
,
res
,
next
){
...
...
@@ -237,6 +239,13 @@ js_protoss_proficiency="상대는 프로토스 '"+protoss_proficiency+"'입니
js_primary_race
=
"상대의 주 종족은 '"
+
primary_race
+
"'입니다."
;
js_win_rate
=
"상대의 이번 시즌 전체 승률은 '"
+
win_rate
+
"'입니다."
;
fs
.
readFile
(
'/PvP/Allin/PvP_AllIn1_DTRush.txt'
,
'utf8'
,
function
(
err
,
data
){
js_recommend_build_1
=
data
;
})
res
.
render
(
'index'
,{
top
:
'분석 결과'
,
ejs_momentum
:
js_momentum
,
...
...
@@ -244,7 +253,9 @@ ejs_terran_proficiency: js_terran_proficiency,
ejs_zerg_proficiency
:
js_zerg_proficiency
,
ejs_protoss_proficiency
:
js_protoss_proficiency
,
ejs_primary_race
:
js_primary_race
,
ejs_win_rate
:
js_win_rate
});
ejs_win_rate
:
js_win_rate
,
ejs_recommend_build_1
:
' '
,
ejs_recommend_build_2
:
' '
});
//build recommend command
//
...
...
views/index.ejs
View file @
47356df
<!DOCTYPE html>
<html
lang=
"ko-kr"
>
<head>
<style>
#myHeader
{
background-color
:
lightblue
;
color
:
black
;
padding
:
10px
;
text-align
:
center
;
}
</style>
<h5
id=
"myHeader"
>
StarCraft 2 Build Recommendation Project
</h5>
<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"
>
...
...
@@ -19,8 +9,14 @@
<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>
<body>
<p
stype=
"fond-family:verdana;"
>
StarCraft 2 Build Recommendation Project
</p>
<img
src=
"/imgs"
alt=
"StarCraft2 LOGO image"
>
<div
class=
"col-md-3"
>
<form
action=
"/recommend"
id=
"searchform"
action
method=
"get"
>
...
...
@@ -59,7 +55,7 @@
상대 종족
</label>
<div
class=
"controls"
>
<select
class=
"select form-control"
id=
"id_race"
name=
"
r
ace"
>
<select
class=
"select form-control"
id=
"id_race"
name=
"
enemyR
ace"
>
<option
value=
"terran"
>
테란
</option>
<option
value=
"zerg"
>
저그
</option>
<option
value=
"protoss"
>
프로토스
</option>
...
...
@@ -72,23 +68,35 @@
상대 아이디
</label>
<div
class=
"controls"
>
<input
class=
"textinput textInput form-control"
id=
"id_name"
maxlength=
"20"
name=
"
n
ame"
type=
"text"
>
<input
class=
"textinput textInput form-control"
id=
"id_name"
maxlength=
"20"
name=
"
enemyN
ame"
type=
"text"
>
</div>
</div>
<input
value=
"빌드 추천!"
type=
"submit"
/>
</form>
<
%= top%>
<br>
<
%=ejs_momentum%>
<
%=ejs_terran_proficiency%>
<
%=ejs_zerg_proficiency%>
<
%=ejs_protoss_proficiency%>
<
%=ejs_primary_race%>
<
%=ejs_momentum%>
<br>
<
%=ejs_terran_proficiency%>
<br>
<
%=ejs_zerg_proficiency%>
<br>
<
%=ejs_protoss_proficiency%>
<br>
<
%=ejs_primary_race%>
<br>
<
%=ejs_win_rate%>
<br>
<h3>
추천빌드 1 :
</h3>
<
%=ejs_recommend_build_1%>
<br>
<h3>
추천빌드 2 :
</h3>
<
%=ejs_recommend_build_2%>
<br>
<a
href=
"https://starcraft2.com/ko-kr/game"
>
Official Site
</a>
</body>
...
...
Please
register
or
login
to post a comment