File size: 1,436 Bytes
e7b1e22
 
 
 
 
243b6fb
 
 
 
 
 
e7b1e22
 
 
 
3cb4983
 
 
 
 
 
 
 
 
 
e7b1e22
243b6fb
e7b1e22
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>Interview Q&A Assistant</title>
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
  <link rel="stylesheet" href="/statics/styles.css"/>
  <link rel="icon" type="image/png" href="/statics/icon.png"/>
  <!-- markdown‑to‑html -->
  <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/purify.min.js"></script>
</head>
<body>
  <main class="container">
    <h1>Interview Q&amp;A Assistant</h1>
    <p class="subtitle">🎙&nbsp;Hold the button, ask your interview question, release to get an answer.<br>
      📸&nbsp;Or upload a screenshot of the question.</p>
      <button id="record-button"     class="record-btn">🎤 Hold&nbsp;to&nbsp;Ask</button>
      <button id="screenshot-button" class="screenshot-btn">📸 Drop&nbsp;your&nbsp;Screenshot</button>
      <input  id="file-input" type="file" accept="image/*" hidden />
      <section class="output-section">
      <h2>Your Question
        <img src="/statics/edit.png" id="edit-btn" class="edit-icon" title="Edit & re-ask">
      </h2>
      <div id="question-output" class="output" contenteditable="false"></div>
      <h2>AI&nbsp;Answer</h2>
      <pre id="answer-output" class="output markdown"></pre>
    </section>
  </main>

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