Interview_AI / statics /index.html
LiamKhoaLe's picture
Update Screenshot img upload. Allow request interrupt previous prompt. Allow question editable
3cb4983
<!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>