File size: 1,427 Bytes
4a8b1a3
cf78de4
4a8b1a3
 
 
 
 
 
 
46af6d4
 
 
 
 
 
 
 
 
cf78de4
46af6d4
 
 
 
 
cf78de4
46af6d4
 
 
 
 
 
 
 
 
 
 
 
4a8b1a3
0cbe662
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MBTI ๋ถ„์„๊ธฐ</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div id="app">
        <!-- ์งˆ๋ฌธ ํ™”๋ฉด -->
        <div id="question-container">
            <h1>MBTI ๋ถ„์„๊ธฐ</h1>
            <div id="question-box">
                <p id="question-text">์งˆ๋ฌธ์ด ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.</p>
                <div id="options">
                    <button class="option-btn" onclick="selectAnswer('์˜ˆ')">์˜ˆ</button>
                    <button class="option-btn" onclick="selectAnswer('์•„๋‹ˆ์˜ค')">์•„๋‹ˆ์˜ค</button>
                </div>
            </div>
            <div id="progress">
                <p>์งˆ๋ฌธ <span id="question-number">1</span>/21</p>
            </div>
        </div>

        <!-- ๊ฒฐ๊ณผ ํ™”๋ฉด -->
        <div id="result-container" class="hidden">
            <h1>MBTI ๊ฒฐ๊ณผ</h1>
            <p id="mbti-type">MBTI ์œ ํ˜•: </p>
            <p id="mbti-description">์„ฑ๊ฒฉ ์„ค๋ช…</p>
            <p id="mbti-jobs">์ถ”์ฒœ ์ง์—…: </p>
            <p id="mbti-tips">์ž์‚ฐ ๊ด€๋ฆฌ ์š”๋ น: </p>
            <img id="mbti-image" src="" alt="MBTI ์ด๋ฏธ์ง€">
            <button id="restart-btn" onclick="restartQuiz()">๋‹ค์‹œ ์‹œ์ž‘ํ•˜๊ธฐ</button>
        </div>
    </div>
    <script src="script.js"></script>
</body>
</html>