이성주

html 구상한대로 기본 틀 완성

{
"CurrentProjectSetting": null
}
\ No newline at end of file
{
"ExpandedNodes": [
""
],
"SelectedNode": "\\score_result.html",
"PreviewInSolutionExplorer": false
}
\ No newline at end of file
No preview for this file type
No preview for this file type
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Who Are You? - 하스스톤 멀리건 도우미</title>
<title>HearthCompare - 하스스톤 도우미</title>
<!-- 부트스트랩 -->
<link href="../../static/bootstrap-3.3.2-dist/css/bootstrap.min.css?ver=1" rel="stylesheet">
......@@ -23,16 +23,16 @@
type:'POST',
url:'/logout',
success:function(result){
alert('로그아웃 성공!')
alert('로그아웃에 성공하였습니다.\n로그인 화면으로 이동합니다.')
window.location.href='/'
},
error:function(result){
alert('로그아웃 실패!')
alert('로그아웃에 실패하였습니다.')
return false
}
})
})
$('#backToSelectOpponent').click(function(){
$('#backToSelectMine').click(function(){
window.history.back()
})
})
......@@ -48,7 +48,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">Who Are You?</a>
<a class="navbar-brand" href="/">HearthCompare</a>
</div>
<div class="navbar-collapse collapse" id="navbar" aria-expanded="false" style="height: 1px;">
<ul class="nav navbar-nav">
......@@ -64,46 +64,28 @@
<div class="padding" style="width:100px"></div>
<br>
<br>
<h3 class="form-signin-heading">상대편의 주요 덱</h3>
<h3 class="form-signin-heading">상대편 직업의 주요 덱</h3>
<div id="opponentDecks">
<table class="table" style="text-align: center;">
<thead>
<td>덱 이름</td>
<td>플레이 수</td>
<td>승률</td>
</thead>
<tbody>
<tr>
<td><a class="list-group-item">덱이름1</a></td>
<td><a class="list-group-item">10000</a></td>
</tr>
<tr>
<td><a class="list-group-item">덱이름1</a></td>
<td><a class="list-group-item">56</a></td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<h3 class="form-signin-heading">내 덱의 추천 멀리건</h3>
<div id="yourMulligan">
<table class="table" style="text-align: center;">
<thead>
<td>카드 이름</td>
<td>멀리건 승률</td>
</thead>
<tbody>
<tr>
<td><a class="list-group-item">카드이름1</a></td>
<td><a class="list-group-item">59.8</a></td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<br><br><br><br><br>
<div class="row">
<div class="col-md-6">
<a href="/decklist"><input class="btn btn-lg btn-primary btn-block" type="button" id="backToDeckList" value="덱 선택으로 돌아가기" /></a>
<a href="/menulist"><input class="btn btn-lg btn-primary btn-block" type="button" id="backToMenuList" value="메뉴 선택으로 돌아가기" /></a>
</div>
<div class="col-md-6">
<input class="btn btn-lg btn-primary btn-block" type="button" id="backToSelectOpponent" value="상대편 직업 선택으로 돌아가기"/>
<a href="/select_opponent"><input class="btn btn-lg btn-primary btn-block" type="button" id="backToSelectOpponent" value="상대 직업 선택으로 돌아가기" /></a>
</div>
</div>
</div>
......
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Who Are You? - 하스스톤 멀리건 도우미</title>
<title>HearthCompare - 하스스톤 도우미</title>
<!-- 부트스트랩 -->
<link href="../../static/bootstrap-3.3.2-dist/css/bootstrap.min.css?ver=1" rel="stylesheet">
......@@ -23,11 +23,11 @@
type:'POST',
url:'/logout',
success:function(result){
alert('로그아웃 성공!')
alert('로그아웃에 성공하였습니다.\n로그인 화면으로 이동합니다.')
window.location.href='/'
},
error:function(result){
alert('로그아웃 실패!')
alert('로그아웃에 실패하였습니다.')
return false
}
})
......@@ -45,7 +45,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/main">Who Are You?</a>
<a class="navbar-brand" href="/main">HearthCompare</a>
</div>
<div class="navbar-collapse collapse" id="navbar" aria-expanded="false" style="height: 1px;">
<ul class="nav navbar-nav">
......@@ -57,12 +57,13 @@
</div>
</nav>
<div class="container show-grid" >
<div class="container show-grid">
<div class="padding" style="width:100px"></div>
<div class="container" style="width:50%;">
<div class="row">
<h3 class="form-signin-heading col-md-10" style="text-align: left;">내 덱 리스트</h3>
<a href="/newdeck"><input type="button" class="btn col-md-2" value="+" style="margin-top: 18px;" /></a>
<a href="/newdeck"><input type="button" class="btn col-md-2" value="+" style="margin-left: 345px;" /></a>
<a><input type="button" class="btn col-md-2" value="-" style="margin-left: 20px;" /></a>
</div>
<br>
<table class="table">
......@@ -70,6 +71,13 @@
<tr><td style="text-align: center;"><a class="list-group-item" href="#">덱 이름</a></td></tr>
</table>
</div>
<br><br><br><br><br><br><br><br><br><br>
<div class="row">
<div class="col-md-4"></div>
<div class="col-md-4">
<a href="/menulist"><input class="btn btn-lg btn-primary btn-block" type="button" id="backToMenuList" value="메뉴 선택으로 돌아가기" /></a>
</div>
</div>
</div>
<!-- jQuery (부트스트랩의 자바스크립트 플러그인을 위해 필요합니다) -->
......
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Who Are You? - 하스스톤 멀리건 도우미</title>
<title>HearthCompare - 하스스톤 도우미</title>
<!-- 부트스트랩 -->
<link href="../../static/bootstrap-3.3.2-dist/css/bootstrap.min.css" rel="stylesheet">
<link href="../../static/main.css" rel="stylesheet">
......@@ -38,11 +38,11 @@
traditional:true,
processdata:false,
success:function(result){
alert('로그인 성공!')
window.location.href='/decklist'
alert('로그인에 성공하였습니다.\nHearthCompare에 오신 것을 환영합니다.')
window.location.href='/menulist'
},
error:function(result){
alert(`로그인 실패!\nmessage:${result['message']}`)
alert(`로그인에 실패하였습니다.\n아이디와 비밀번호를 다시 확인해주세요.\nmessage:${result['message']}`)
return false
}
})
......@@ -64,7 +64,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">Who Are You?</a>
<a class="navbar-brand" href="/">HearthCompare</a>
</div>
<div class="navbar-collapse collapse" id="navbar" aria-expanded="false" style="height: 1px;">
<ul class="nav navbar-nav">
......
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HearthCompare - 하스스톤 도우미</title>
<!-- 부트스트랩 -->
<link href="../../static/bootstrap-3.3.2-dist/css/bootstrap.min.css?ver=1" rel="stylesheet">
<link href="../../static/main.css" rel="stylesheet">
<!-- IE8 에서 HTML5 요소와 미디어 쿼리를 위한 HTML5 shim 와 Respond.js -->
<!-- WARNING: Respond.js 는 당신이 file:// 을 통해 페이지를 볼 때는 동작하지 않습니다. -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$('#logoutButton').click(function(){
$.ajax({
type:'POST',
url:'/logout',
success:function(result){
alert('로그아웃에 성공하였습니다.\n로그인 화면으로 이동합니다.')
window.location.href='/'
},
error:function(result){
alert('로그아웃에 실패하였습니다.')
return false
}
})
})
})
</script>
</head>
<body>
<nav class="navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle collapsed" aria-expanded="false" aria-controls="navbar" type="button" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/main">HearthCompare</a>
</div>
<div class="navbar-collapse collapse" id="navbar" aria-expanded="false" style="height: 1px;">
<ul class="nav navbar-nav"></ul>
<div class="navbar-right">
<input type="button" class="btn navbar-btn" id="logoutButton" style="color:#000;" value="로그아웃" />
</div>
</div>
</div>
</nav>
<div class="container show-grid">
<div class="padding" style="width:100px"></div>
<div class="container" style="width:50%;">
<h3 class="form-signin-heading">메뉴</h3>
<br>
<table class="table">
<tr><td style="text-align: center;"><a class="list-group-item" href="/decklist">1. 멀리건 승률 확인하기</a></td></tr>
<tr><td style="text-align: center;"><a class="list-group-item" href="/select_opponent">2. 상대편 직업의 주요 덱 보기</a></td></tr>
<tr><td style="text-align: center;"><a class="list-group-item" href="#">3. 투기장 카드 점수 확인하기</a></td></tr>
</table>
</div>
</div>
<!-- jQuery (부트스트랩의 자바스크립트 플러그인을 위해 필요합니다) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- 모든 컴파일된 플러그인을 포함합니다 (아래), 원하지 않는다면 필요한 각각의 파일을 포함하세요 -->
<script src="../../static/bootstrap-3.3.2-dist/js/bootstrap.min.js"></script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Who Are You? - 하스스톤 멀리건 도우미</title>
<title>HearthCompare - 하스스톤 도우미</title>
<!-- 부트스트랩 -->
<link href="../../static/bootstrap-3.3.2-dist/css/bootstrap.min.css?ver=1" rel="stylesheet">
......@@ -23,11 +23,11 @@
type:'POST',
url:'/logout',
success:function(result){
alert('로그아웃 성공!')
alert('로그아웃에 성공하였습니다.\n로그인 화면으로 이동합니다.')
window.location.href='/'
},
error:function(result){
alert('로그아웃 실패!')
alert('로그아웃에 실패하였습니다.')
return false
}
})
......@@ -37,7 +37,7 @@
data.deckTitle=$('#deckTitle').val()
data.deckCode=$('#deckCode').val()
const stringData=JSON.stringify(data)
alert('잠시 기다리시겠습니까?')
alert('덱이 추가되는 동안 잠시만 기다려주십시오.')
$.ajax({
type:'POST',
url:'/api/deck/newdeck',
......@@ -47,11 +47,11 @@
traditional:true,
processdata:false,
success:function(result){
alert('덱 생성 성공!')
alert('덱 추가를 성공하였습니다.\n내 덱 리스트 화면으로 이동합니다.')
window.location.href='/decklist'
},
error:function(result){
alert(`덱 생성 실패!\nmessage:${result['message']}`)
alert(`덱 추가를 실패하였습니다.\nmessage:${result['message']}`)
return false
}
})
......@@ -69,7 +69,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">Who Are You?</a>
<a class="navbar-brand" href="/">HearthCompare</a>
</div>
<div class="navbar-collapse collapse" id="navbar" aria-expanded="false" style="height: 1px;">
<ul class="nav navbar-nav">
......@@ -89,7 +89,7 @@
<label class="sr-only" for="deckTitle">덱 이름</label>
<input class="form-control" id="deckTitle" autofocus="" required="" type="text" placeholder="덱 이름" name="deckTitle">
<label class="sr-only" for="deckCode">덱 코드</label>
<textarea class="form-control" id="deckCode" required="" placeholder="#으로 시작하는 문장은 제외한 덱 코드만 입력해 주세요." style="resize:none;height:150px;" name="deckCode"></textarea>
<textarea class="form-control" id="deckCode" required="" placeholder="카드 정보를 제외한 덱 코드만 입력해주세요." style="resize:none;height:150px;" name="deckCode"></textarea>
</form>
<input type="button" class="btn btn-primary btn-block" id="newDeckButton" value="확인" />
</div>
......
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HearthCompare - 하스스톤 도우미</title>
<!-- 부트스트랩 -->
<link href="../../static/bootstrap-3.3.2-dist/css/bootstrap.min.css?ver=1" rel="stylesheet">
<link href="../../static/main.css" rel="stylesheet">
<!-- IE8 에서 HTML5 요소와 미디어 쿼리를 위한 HTML5 shim 와 Respond.js -->
<!-- WARNING: Respond.js 는 당신이 file:// 을 통해 페이지를 볼 때는 동작하지 않습니다. -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$('#logoutButton').click(function(){
$.ajax({
type:'POST',
url:'/logout',
success:function(result){
alert('로그아웃에 성공하였습니다.\n로그인 화면으로 이동합니다.')
window.location.href='/'
},
error:function(result){
alert('로그아웃에 실패하였습니다.')
return false
}
})
})
})
</script>
</head>
<body>
<nav class="navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle collapsed" aria-expanded="false" aria-controls="navbar" type="button" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">HearthCompare</a>
</div>
<div class="navbar-collapse collapse" id="navbar" aria-expanded="false" style="height: 1px;">
<ul class="nav navbar-nav"></ul>
<div class="navbar-right">
<input type="button" class="btn navbar-btn" id="logoutButton" style="color:#000;" value="로그아웃" />
</div>
</div>
</div>
</nav>
<div class="container show-grid">
<div class="padding" style="width:100px"></div>
<br>
<br>
<h3 class="form-signin-heading">내 덱</h3>
<div id="opponentDecks">
<table class="table" style="text-align: center;">
<thead>
<td>덱 이름</td>
<td>승률</td>
</thead>
<tbody>
<tr>
<td><a class="list-group-item">덱이름1</a></td>
<td><a class="list-group-item">56</a></td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<h3 class="form-signin-heading">멀리건 승률</h3>
<div id="yourMulligan">
<table class="table" style="text-align: center;">
<thead>
<td>카드 이름</td>
<td>멀리건 승률</td>
</thead>
<tbody>
<tr>
<td><a class="list-group-item">카드이름1</a></td>
<td><a class="list-group-item">60</a></td>
</tr>
<input type="button" class="btn btn-primary btn-block" id="newDeckButton" value="확인" />
<tr>
<td><a class="list-group-item">카드이름2</a></td>
<td><a class="list-group-item">59</a></td>
</tr>
<tr>
<td><a class="list-group-item">카드이름3</a></td>
<td><a class="list-group-item">58</a></td>
</tr>
<tr>
<td><a class="list-group-item">카드이름4</a></td>
<td><a class="list-group-item">57</a></td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<div class="row">
<div class="col-md-6">
<a href="/menulist"><input class="btn btn-lg btn-primary btn-block" type="button" id="backToMenuList" value="메뉴 선택으로 돌아가기" /></a>
</div>
<div class="col-md-6">
<a href="/decklist"><input class="btn btn-lg btn-primary btn-block" type="button" id="backToDeckList" value="내 덱 리스트로 돌아가기" /></a>
</div>
</div>
</div>
<!-- jQuery (부트스트랩의 자바스크립트 플러그인을 위해 필요합니다) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- 모든 컴파일된 플러그인을 포함합니다 (아래), 원하지 않는다면 필요한 각각의 파일을 포함하세요 -->
<script src="../../static/bootstrap-3.3.2-dist/js/bootstrap.min.js"></script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HearthCompare - 하스스톤 도우미</title>
<!-- 부트스트랩 -->
<link href="../../static/bootstrap-3.3.2-dist/css/bootstrap.min.css?ver=1" rel="stylesheet">
<link href="../../static/main.css" rel="stylesheet">
<!-- IE8 에서 HTML5 요소와 미디어 쿼리를 위한 HTML5 shim 와 Respond.js -->
<!-- WARNING: Respond.js 는 당신이 file:// 을 통해 페이지를 볼 때는 동작하지 않습니다. -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$('#logoutButton').click(function(){
$.ajax({
type:'POST',
url:'/logout',
success:function(result){
alert('로그아웃에 성공하였습니다.\n로그인 화면으로 이동합니다.')
window.location.href='/'
},
error:function(result){
alert('로그아웃에 실패하였습니다.')
return false
}
})
})
})
</script>
</head>
<body>
<nav class="navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle collapsed" aria-expanded="false" aria-controls="navbar" type="button" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">HearthCompare</a>
</div>
<div class="navbar-collapse collapse" id="navbar" aria-expanded="false" style="height: 1px;">
<ul class="nav navbar-nav"></ul>
<div class="navbar-right">
<input type="button" class="btn navbar-btn" id="logoutButton" style="color:#000;" value="로그아웃" />
</div>
</div>
</div>
</nav>
<div class="container show-grid">
<div class="padding" style="width:100px"></div>
<br>
<br>
<h3 class="form-signin-heading">내 직업</h3>
<div id="opponentDecks">
<table class="table" style="text-align: center;">
<thead>
<td>직업</td>
</thead>
<tbody>
<tr>
<td><a class="list-group-item">직업</a></td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<h3 class="form-signin-heading">투기장 카드 점수</h3>
<div id="yourMulligan">
<table class="table" style="text-align: center;">
<thead>
<td>카드 이름</td>
<td>카드 점수</td>
</thead>
<tbody>
<tr>
<td><a class="list-group-item">카드이름1</a></td>
<td><a class="list-group-item">60</a></td>
</tr>
<input type="button" class="btn btn-primary btn-block" id="newDeckButton" value="확인" />
<tr>
<td><a class="list-group-item">카드이름2</a></td>
<td><a class="list-group-item">59</a></td>
</tr>
<tr>
<td><a class="list-group-item">카드이름3</a></td>
<td><a class="list-group-item">58</a></td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<div class="row">
<div class="col-md-6">
<a href="/menulist"><input class="btn btn-lg btn-primary btn-block" type="button" id="backToMenuList" value="메뉴 선택으로 돌아가기" /></a>
</div>
<div class="col-md-6">
<a href="/select_mine"><input class="btn btn-lg btn-primary btn-block" type="button" id="backToMine" value="내 직업 선택으로 돌아가기" /></a>
</div>
</div>
</div>
<!-- jQuery (부트스트랩의 자바스크립트 플러그인을 위해 필요합니다) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- 모든 컴파일된 플러그인을 포함합니다 (아래), 원하지 않는다면 필요한 각각의 파일을 포함하세요 -->
<script src="../../static/bootstrap-3.3.2-dist/js/bootstrap.min.js"></script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HearthCompare - 하스스톤 도우미</title>
<!-- 부트스트랩 -->
<link href="../../static/bootstrap-3.3.2-dist/css/bootstrap.min.css?ver=1" rel="stylesheet">
<link href="../../static/main.css" rel="stylesheet">
<!-- IE8 에서 HTML5 요소와 미디어 쿼리를 위한 HTML5 shim 와 Respond.js -->
<!-- WARNING: Respond.js 는 당신이 file:// 을 통해 페이지를 볼 때는 동작하지 않습니다. -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$('#logoutButton').click(function(){
$.ajax({
type:'POST',
url:'/logout',
success:function(result){
alert('로그아웃에 성공하였습니다.\n로그인 화면으로 이동합니다.')
window.location.href='/'
},
error:function(result){
alert('로그아웃에 실패하였습니다.')
return false
}
})
})
$('#submitButton').click(function(){
let data=new Object()
let opponentClass=$('input[name="checkOpponent"]:checked').val()
data.opponentClass=opponentClass
const stringData=JSON.stringify(data)
alert('상대편 직업의 덱을 검색하는 동안 잠시만 기다려주십시오.\n검색이 완료되면 자동으로 창이 이동됩니다.')
$.ajax({
type:'POST',
url:'/api/card/setopponentclass',
data:stringData,
dataType:'JSON',
contentType:'application/json; charset=utf-8',
traditional:true,
processdata:false,
success:function(){
window.location.href='/deck_result'
},
error:function(){
alert('상대편의 직업 선택에 실패했습니다.')
return false
}
})
})
})
</script>
</head>
<body>
<nav class="navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle collapsed" aria-expanded="false" aria-controls="navbar" type="button" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">HearthCompare</a>
</div>
<div class="navbar-collapse collapse" id="navbar" aria-expanded="false" style="height: 1px;">
<ul class="nav navbar-nav"></ul>
<div class="navbar-right">
<input type="button" class="btn navbar-btn" id="logoutButton" style="color:#000;" value="로그아웃" />
</div>
</div>
</div>
</nav>
<div class="container show-grid">
<div class="padding" style="width:100px"></div>
<h3 class="form-signin-heading">상대편의 직업을 선택해 주세요</h3>
<br>
<br>
<div class="row" style="text-align: center;">
<div class="col-md-4">
<img src="https://gamepedia.cursecdn.com/hearthstone_gamepedia/c/c5/Garrosh_Hellscream%28635%29.png?version=1b614ad5340f67612d99542b05168969" style="width:200px;height:250px;" />
<br>
<input type="radio" name="checkOpponent" value="WARRIOR" />전사
</div>
<div class="col-md-4">
<img src="https://gamepedia.cursecdn.com/hearthstone_gamepedia/4/4b/Thrall%28319%29.png?version=d0a09d4b1a9973cf5d3853798915d1ac" style="width:200px;height:250px;" />
<br>
<input type="radio" name="checkOpponent" value="SHAMAN" />주술사
</div>
<div class="col-md-4">
<img src="https://gamepedia.cursecdn.com/hearthstone_gamepedia/a/a4/Valeera_Sanguinar%282%29.png?version=8e1f8248cfd10cd0780944f5adae3c88" style="width:200px;height:250px;" />
<br>
<input type="radio" name="checkOpponent" value="ROGUE" />도적
</div>
</div>
<br>
<br>
<br>
<div class="row" style="text-align: center;">
<div class="col-md-4">
<img src="https://gamepedia.cursecdn.com/hearthstone_gamepedia/4/4d/Uther_Lightbringer%28257%29.png?version=6dfe616bf25bb33225417253ae47a6d8" style="width:200px;height:250px;" />
<br>
<input type="radio" name="checkOpponent" value="PALADIN" />성기사
</div>
<div class="col-md-4">
<img src="https://gamepedia.cursecdn.com/hearthstone_gamepedia/a/a0/Rexxar%28484%29.png?version=f018fc6e46b383cc12aefb4b51a66206" style="width:200px;height:250px;" />
<br>
<input type="radio" name="checkOpponent" value="HUNTER" />사냥꾼
</div>
<div class="col-md-4">
<img src="https://gamepedia.cursecdn.com/hearthstone_gamepedia/f/fa/Malfurion_Stormrage%28621%29.png?version=77c0505d00ce8f853911fe2926f85271" style="width:200px;height:250px;" />
<br>
<input type="radio" name="checkOpponent" value="DRUID" />드루이드
</div>
</div>
<br>
<br>
<br>
<div class="row" style="text-align: center;">
<div class="col-md-4">
<img src="https://gamepedia.cursecdn.com/hearthstone_gamepedia/0/0a/Gul%27dan%28618%29.png?version=cdc516499d50f4887dc32d5a57674c2d" style="width:200px;height:250px;" />
<br>
<input type="radio" name="checkOpponent" value="WARLOCK" />흑마법사
</div>
<div class="col-md-4">
<img src="https://gamepedia.cursecdn.com/hearthstone_gamepedia/3/3c/Jaina_Proudmoore%28320%29.png?version=3b2fe59be9088a51fc77e579e4faa8ce" style="width:200px;height:250px;" />
<br>
<input type="radio" name="checkOpponent" value="MAGE" />마법사
</div>
<div class="col-md-4">
<img src="https://gamepedia.cursecdn.com/hearthstone_gamepedia/8/80/Anduin_Wrynn%28110%29.png?version=0bac7e0db29ce55f333afe972a0afdb0" style="width:200px;height:250px;" />
<br>
<input type="radio" name="checkOpponent" value="PRIEST" />사제
</div>
</div>
<br>
<br>
<div class="row">
<div class="col-md-5"></div>
<div class="col-md-2">
<input class="btn btn-lg btn-primary btn-block" type="button" id="submitButton" value="확인" />
</div>
<div class="col-md-5"></div>
</div>
<div class="padding" style="width:100px"></div>
</div>
<!-- jQuery (부트스트랩의 자바스크립트 플러그인을 위해 필요합니다) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- 모든 컴파일된 플러그인을 포함합니다 (아래), 원하지 않는다면 필요한 각각의 파일을 포함하세요 -->
<script src="../../static/bootstrap-3.3.2-dist/js/bootstrap.min.js"></script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Who Are You? - 하스스톤 멀리건 도우미</title>
<title>HearthCompare - 하스스톤 도우미</title>
<!-- 부트스트랩 -->
<link href="../../static/bootstrap-3.3.2-dist/css/bootstrap.min.css?ver=1" rel="stylesheet">
......@@ -23,11 +23,11 @@
type:'POST',
url:'/logout',
success:function(result){
alert('로그아웃 성공!')
alert('로그아웃에 성공하였습니다.\n로그인 화면으로 이동합니다.')
window.location.href='/'
},
error:function(result){
alert('로그아웃 실패!')
alert('로그아웃에 실패하였습니다.')
return false
}
})
......@@ -37,7 +37,6 @@
let opponentClass=$('input[name="checkOpponent"]:checked').val()
data.opponentClass=opponentClass
const stringData=JSON.stringify(data)
alert('잠시 기다리시겠습니까?')
$.ajax({
type:'POST',
url:'/api/card/setopponentclass',
......@@ -47,10 +46,10 @@
traditional:true,
processdata:false,
success:function(){
window.location.href='/result'
window.location.href='/deck_result'
},
error:function(){
alert('상대 직업 선택 실패!')
alert('내 직업 선택에 실패했습니다.')
return false
}
})
......@@ -68,7 +67,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">Who Are You?</a>
<a class="navbar-brand" href="/">HearthCompare</a>
</div>
<div class="navbar-collapse collapse" id="navbar" aria-expanded="false" style="height: 1px;">
<ul class="nav navbar-nav">
......@@ -82,7 +81,7 @@
<div class="container show-grid" >
<div class="padding" style="width:100px"></div>
<h3 class="form-signin-heading">상대편의 직업을 선택해 주세요</h3>
<h3 class="form-signin-heading">내가 고른 투기장 직업을 선택해 주세요</h3>
<br>
<br>
<div class="row" style="text-align: center;">
......
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Who Are You? - 하스스톤 멀리건 도우미</title>
<title>HearthCompare - 하스스톤 도우미</title>
<!-- 부트스트랩 -->
<link href="../../static/bootstrap-3.3.2-dist/css/bootstrap.min.css" rel="stylesheet">
......@@ -20,7 +20,7 @@
$(document).ready(function(){
$('#signupButton').click(function(){
if($('#password').val()!==$('#repeatPassword').val()) {
alert('두 비밀번호가 일치하지 않습니다!')
alert('비밀번호와 확인란이 일치하지 않습니다.')
return false
}
else{
......@@ -37,11 +37,11 @@
traditional:true,
processdata:false,
success:function(result){
alert('회원가입 성공!')
alert('회원가입에 성공하였습니다.\n로그인 화면으로 이동합니다.')
window.location.href='/login'
},
error:function(result){
alert(`회원가입 실패!\nmessage:${result['message']}`)
alert(`회원가입에 실패하였습니다.\nmessage:${result['message']}`)
return false
}
})
......@@ -61,7 +61,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">Who Are You?</a>
<a class="navbar-brand" href="/">HearthCompare</a>
</div>
<div class="navbar-collapse collapse" id="navbar" aria-expanded="false" style="height: 1px;">
<ul class="nav navbar-nav">
......