First Commit. This was the first tool I asked a machine to build for me.
This commit is contained in:
98
popup.html
Normal file
98
popup.html
Normal file
@@ -0,0 +1,98 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Tab Exporter</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<main class="container" role="main">
|
||||
<header>
|
||||
<h1 id="main-heading">Tab Exporter</h1>
|
||||
<p class="subtitle">Export all your open tabs to a Markdown file</p>
|
||||
</header>
|
||||
|
||||
<section class="stats" aria-labelledby="stats-heading">
|
||||
<h2 id="stats-heading" class="visually-hidden">Tab Statistics</h2>
|
||||
<div class="stat-card" role="status" aria-live="polite">
|
||||
<span class="stat-number" id="tab-count">0</span>
|
||||
<span class="stat-label">Open Tabs</span>
|
||||
</div>
|
||||
<div class="stat-card" role="status" aria-live="polite">
|
||||
<span class="stat-number" id="window-count">0</span>
|
||||
<span class="stat-label">Windows</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="options" aria-labelledby="options-heading">
|
||||
<h2 id="options-heading" class="section-heading">Export Options</h2>
|
||||
|
||||
<div class="option-group">
|
||||
<label class="checkbox-label">
|
||||
<input
|
||||
type="checkbox"
|
||||
id="include-descriptions"
|
||||
checked
|
||||
aria-describedby="desc-help"
|
||||
>
|
||||
<span>Include page descriptions</span>
|
||||
</label>
|
||||
<p id="desc-help" class="help-text">Fetches meta descriptions from each tab (may take longer)</p>
|
||||
</div>
|
||||
|
||||
<div class="option-group">
|
||||
<label class="checkbox-label">
|
||||
<input
|
||||
type="checkbox"
|
||||
id="group-by-window"
|
||||
aria-describedby="window-help"
|
||||
>
|
||||
<span>Group tabs by window</span>
|
||||
</label>
|
||||
<p id="window-help" class="help-text">Organizes tabs under separate window headings</p>
|
||||
</div>
|
||||
|
||||
<div class="option-group">
|
||||
<label class="checkbox-label">
|
||||
<input
|
||||
type="checkbox"
|
||||
id="include-timestamp"
|
||||
checked
|
||||
aria-describedby="time-help"
|
||||
>
|
||||
<span>Include export timestamp</span>
|
||||
</label>
|
||||
<p id="time-help" class="help-text">Adds date and time to the exported file</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="actions">
|
||||
<button
|
||||
id="export-btn"
|
||||
class="btn btn-primary"
|
||||
aria-describedby="export-status"
|
||||
>
|
||||
<span class="btn-icon" aria-hidden="true">📥</span>
|
||||
Export Tabs
|
||||
</button>
|
||||
|
||||
<div
|
||||
id="export-status"
|
||||
class="status-message"
|
||||
role="status"
|
||||
aria-live="polite"
|
||||
aria-atomic="true"
|
||||
></div>
|
||||
</section>
|
||||
|
||||
<footer class="footer">
|
||||
<p class="footer-text">
|
||||
<kbd>Ctrl+Click</kbd> a tab to exclude it from export
|
||||
</p>
|
||||
</footer>
|
||||
</main>
|
||||
|
||||
<script src="popup.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user