File size: 3,843 Bytes
67041f9
 
 
 
 
 
 
 
 
 
 
 
 
016f062
67041f9
 
 
 
 
 
 
 
 
 
 
 
016f062
67041f9
016f062
 
 
 
 
67041f9
 
 
 
016f062
67041f9
 
a09ca12
 
 
 
 
 
 
 
 
 
 
 
 
 
67041f9
5ea4677
04a9f31
016f062
04a9f31
016f062
04a9f31
67041f9
04a9f31
016f062
04a9f31
016f062
 
 
 
 
 
 
 
 
 
 
 
04a9f31
67041f9
 
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="ja">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学習画面</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
    <div class="screen">
        <header class="header">
            <button class="menu-btn" aria-label="メニュー" onclick="openMenu()"></button>
            <h1 class="title" id="learning-title">学習セット: 面白い動画の分析</h1>
            <!-- 右上のボタンは不要なら削除 -->
            <button class="action-btn" aria-label="アクション"></button>
        </header>
        <main>
            <p style="text-align: center; color: #555; font-size: 14px; margin-bottom: 10px;" id="mode-indicator">クイズモード</p>

            <div class="card" id="learning-card" onclick="revealAnswer()">
                <p class="main-text" id="card-text">ここに表示される問題文または要約テキストはカードの中心に来るように調整されます。(サンプルテキスト)</p>
                <p class="answer-text" id="answer-text" style="display: none;">答え: 正解の選択肢</p>
            </div>

            <p class="tap-to-show" id="tap-to-show" onclick="revealAnswer()">タップして解答を表示</p>

            <!-- クイズの選択肢表示エリア (JSで動的に生成) -->
            <div id="options-area" style="margin-top: 15px;">
                <!-- 例:
                <button class="option-button">A: 選択肢A</button>
                <button class="option-button">B: 選択肢B</button>
                ...
                -->
            </div>

            <div class="pagination">
                <button id="prev-button" aria-label="前へ" onclick="goToPrev()"><</button>
                <span id="page-info">? / ?</span> <!-- 初期表示 -->
                <button id="next-button" aria-label="次へ" onclick="goToNext()">></button>
            </div>
             <!-- ★★★ ここからサイドメニューとオーバーレイを追加 ★★★ -->
    <div id="menu-overlay" class="menu-overlay" onclick="closeMenu()"></div>
    <nav id="side-menu" class="side-menu" aria-label="サイドメニュー">
        <button class="close-menu-btn" onclick="closeMenu()" aria-label="メニューを閉じる">×</button>
        <h2>メニュー</h2>
        <ul>
            <li><button onclick="goToInput()">➕ 入力</button></li>
            <li><button onclick="goToHistory()">🕒 履歴</button></li>
            <li><button onclick="goToSettings()">⚙️ 設定</button></li>
            <!-- 他に必要なメニュー項目を追加 -->
            <li><hr></li>
            <li><button onclick="handleLogout()" class="logout-menu-item">ログアウト</button></li>
        </ul>
    </nav>
        </main>
    </div>

    <!-- ★★★ ここから追加 ★★★ -->
    <div id="correct-effect" class="correct-effect"></div>
    <!-- ★★★ ここまで追加 ★★★ -->

    <script src="{{ url_for('static', filename='script.js') }}"></script>

    <!-- 例: フッターナビゲーション -->
    <footer class="footer-nav">
        <button onclick="goToInput()" aria-label="入力">
             <span class="nav-icon"></span> <!-- アイコンは好みで変更 -->
             <span class="nav-text">入力</span>
        </button>
        <button onclick="goToHistory()" aria-label="履歴">
             <span class="nav-icon">🕒</span>
             <span class="nav-text">履歴</span>
        </button>
        <button onclick="goToSettings()" aria-label="設定">
             <span class="nav-icon">⚙️</span>
             <span class="nav-text">設定</span>
        </button>
    </footer>
</body>
</html>