File size: 2,419 Bytes
d2d0ace
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e11ca4e
 
 
bec63f7
e11ca4e
 
 
 
 
d2d0ace
 
e11ca4e
 
 
 
 
 
bec63f7
e11ca4e
bec63f7
 
 
 
e11ca4e
 
d2d0ace
bec63f7
 
 
 
 
d2d0ace
 
 
 
 
 
 
90a16cb
 
 
 
 
 
 
 
 
 
 
d2d0ace
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CTM Research Agent</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <header>
            <h1>CTM Research Agent</h1>
            <p>Your AI-powered assistant for in-depth research and analysis.</p>
        </header>

        <main>
            <div class="input-section">
                <h2>Submit Your Research Query</h2>
                <textarea id="researchQuery" placeholder="Ask a question based on the available research reports..."></textarea>
                <button id="submitButton">Submit</button>
            </div>
            <div class="output-section">
                <h2>Results</h2>
                <div id="resultDisplay" class="result-container"></div>
            </div>

            <div class="reports-section">
                <h2>Available Research Reports</h2>
                <div id="reportsList" class="reports-container"></div>
            </div>
            
            <div class="upload-section">
                <h2>Add New Research Report</h2>
                <form id="uploadForm">
                    <input type="text" id="reportTitle" placeholder="Report Title / Header" required>
                    <input type="text" id="reportDescription" placeholder="Report Subject / Description" required>
                    <textarea id="reportBody" placeholder="Paste the full plain text body of the report here..." required></textarea>
                    <button type="submit" id="uploadButton">Process and Add Report</button>
                </form>
                <div id="uploadStatus"></div>
            </div>
            
            <div class="history-section">
                <h2>Recent Research</h2>
                <div id="historyContainer" class="history-container"></div>
            </div>
        </main>

        <footer>
            <p>&copy; 2025 CTM Research</p>
        </footer>
    </div>
    <script src="script.js"></script>
  <script src="script.js"></script>

    <div id="reportModal" class="modal">
      <div class="modal-content">
        <span class="modal-close-button">&times;</span>
        <h2 id="modalTitle"></h2>
        <div id="modalBody" class="modal-body-container"></div>
      </div>
    </div>
</body>
</html>
</body>
</html>