File size: 2,227 Bytes
c736338
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>EU AI Obligations for Developers - Interactive Flowchart</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div class="container">
        <header>
            <h1>EU AI Obligations for Developers</h1>
            <p class="subtitle">Interactive flowchart to determine your obligations under EU AI regulations</p>
        </header>

        <div class="mode-selector">
            <button id="guided-btn" class="mode-btn active">Guided Mode</button>
            <button id="flowchart-btn" class="mode-btn">Full Flowchart</button>
        </div>

        <div class="content">
            <!-- Guided Mode -->
            <div id="guided-mode" class="guided-mode">
                <div class="navigation-panel">
                    <div class="context-section">
                        <h3>Context</h3>
                        <div class="context-text">You develop a GPAI model</div>
                    </div>
                    
                    <div class="history-section">
                        <h3>Decision History</h3>
                    </div>
                </div>
                
                <div class="current-panel">
                    <div id="question-container">
                        <!-- Dynamic content will be inserted here -->
                    </div>
                </div>
            </div>

            <!-- Full Flowchart Mode -->
            <div id="flowchart-mode" class="flowchart-mode hidden">
                <div class="controls">
                    <button class="control-btn" onclick="zoomIn()" title="Zoom In">+</button>
                    <button class="control-btn" onclick="zoomOut()" title="Zoom Out"></button>
                    <button class="control-btn" onclick="resetView()" title="Reset View"></button>
                </div>
                <div class="flowchart-container" id="flowchart-container">
                    <div id="mermaid-container"></div>
                </div>
            </div>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>