Files
Teleprompter/index.html
T

99 lines
4.3 KiB
HTML
Raw Normal View History

2025-12-12 14:05:16 +01:00
<!DOCTYPE html>
<html lang="en">
2025-12-12 14:05:16 +01:00
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Teleprompter</title>
<!-- Premium Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=JetBrains+Mono:wght@400&display=swap"
rel="stylesheet">
2025-12-12 14:05:16 +01:00
<link rel="stylesheet" href="styles.css">
</head>
2025-12-12 14:05:16 +01:00
<body>
<div id="wrapper">
<!-- Main Scroll Area -->
<div id="scroll-container">
<div id="content-area">
<div id="placeholder">
<h1>Ready to Record?</h1>
<p>Open a markdown file to begin your session.</p>
<button id="btn-hero-open">Select File</button>
</div>
<div id="markdown-output" style="display: none;"></div>
</div>
<!-- Padding at bottom to allow full scrolling -->
<div style="height: 50vh;"></div>
</div>
<!-- Floating Control Bar -->
<div id="control-bar">
<div class="control-group">
<button id="btn-open" class="icon-btn" title="Open File">
<!-- Folder Icon -->
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" class="icon">
<path
d="M4 6C4 4.89543 4.89543 4 6 4H10L12 6H18C19.1046 6 20 6.89543 20 8V18C20 19.1046 19.1046 20 18 20H6C4.89543 20 4 19.1046 4 18V6Z"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
2025-12-12 14:05:16 +01:00
</svg>
</button>
</div>
<div class="divider"></div>
<div class="control-group">
<button id="btn-play" class="action-btn" title="Start/Stop Scrolling">
<!-- Play Icon -->
2025-12-12 14:05:16 +01:00
<svg id="icon-play" width="24" height="24" viewBox="0 0 24 24" fill="none" class="icon">
<path d="M5 3L19 12L5 21V3Z" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" fill="currentColor" />
2025-12-12 14:05:16 +01:00
</svg>
<!-- Pause Icon (Initially hidden) -->
<svg id="icon-pause" width="24" height="24" viewBox="0 0 24 24" fill="none" class="icon"
style="display: none;">
<path d="M10 4H6V20H10V4Z" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" fill="currentColor" />
<path d="M18 4H14V20H18V4Z" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" fill="currentColor" />
2025-12-12 14:05:16 +01:00
</svg>
</button>
</div>
<div class="divider"></div>
<div class="control-group slider-group">
<span class="label">Speed</span>
<input type="range" id="input-speed" min="1" max="100" value="30">
</div>
<div class="divider"></div>
<div class="control-group slider-group">
<span class="label">Size</span>
<input type="range" id="input-size" min="20" max="150" value="60">
</div>
<div class="divider"></div>
<div class="control-group">
<button id="btn-reset" class="icon-btn" title="Reset Position">
2025-12-12 14:05:16 +01:00
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" class="icon">
<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
<path d="M3 3v5h5" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" />
2025-12-12 14:05:16 +01:00
</svg>
</button>
</div>
2025-12-12 14:05:16 +01:00
</div>
</div>
2025-12-12 14:05:16 +01:00
<script src="./node_modules/marked/marked.min.js"></script>
<script src="dist/renderer.js"></script>
2025-12-12 14:05:16 +01:00
</body>
</html>