score_result.html 6.48 KB
<!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
                    }
                })
            })
            $('#showprob').click(function(){
                var obj = new Object()
                obj.value1 = $('#btn1').val()
                obj.value2 = $('#btn2').val()
                obj.value3 = $('#btn3').val()
                obj.MinClass = $('#mineclass').val()
                obj.MinClass1 = $('#mineclass1').val()
                const stringData = JSON.stringify(obj)
                $.ajax({
                    type:'POST',
                    url:'/api/card/getresultmine',
                    data:stringData,
                    async:false,
                    //dataType:'JSON',
                    contentType:'application/json; charset=utf-8',
                    traditional:true,
                    processdata:false,
                    success:function(result){
                        alert('검색 성공')
                        //let temp = JSON.stringify(result)
                        //$('text1').text(temp)
                    },
                    error:function(request,status,error){
                    alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
                   }
                })
            })
        })
    </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="/menulist">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-top" style="width:100px"></div>
        <br><br><br><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><input type="text" class="btn-block" id="btn1" name="keyword" style="height:42px; text-align:center;" /></td>
                        <td><a class="list-group-item">0</a></td>
                    </tr>
                    <tr>
                        <td><input type="text" class="btn-block" id="btn2" name="keyword" style="height:42px; text-align:center;" /></td>
                        <td><a class="list-group-item">0</a></td>
                    </tr>
                    <tr>
                        <td><input type="text" class="btn-block" id="btn3" name="keyword" style="height:42px; text-align:center;" /></td>
                        <td><a class="list-group-item">0</a></td>
                    </tr>
                </tbody>
            </table>
            <button type="submit" class="btn btn-primary btn-block" id="show_prob">카드 점수 표출하기</button>
        </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>