Spaces:
Paused
Paused
Update templates/index.html
Browse files- templates/index.html +6 -7
templates/index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
| 6 |
-
<title>Overthinker
|
| 7 |
<script src="https://cdn.jsdelivr.net/npm/d3@7"></script>
|
| 8 |
<style>
|
| 9 |
* { margin:0; padding:0; box-sizing:border-box; }
|
|
@@ -318,8 +318,7 @@ body.light .dropdown-section kbd { background: rgba(0,0,0,0.04); border-color: r
|
|
| 318 |
<div class="top-bar">
|
| 319 |
<div class="logo"><h1>π§ Overthinker</h1></div>
|
| 320 |
<div class="top-controls">
|
| 321 |
-
<
|
| 322 |
-
<input type="number" id="branch-input" value="3" min="2" max="6">
|
| 323 |
<button class="btn btn-secondary btn-icon" id="theme-btn" title="Toggle Theme">π</button>
|
| 324 |
<button class="btn btn-secondary" id="info-btn" title="Info">βΉοΈ</button>
|
| 325 |
<button class="btn btn-secondary" id="help-btn" title="Help">β</button>
|
|
@@ -328,7 +327,7 @@ body.light .dropdown-section kbd { background: rgba(0,0,0,0.04); border-color: r
|
|
| 328 |
|
| 329 |
<div class="prompt-bar">
|
| 330 |
<div class="input-group">
|
| 331 |
-
<textarea id="decision-input" placeholder="What decision are you overthinking? e.g. 'Should I quit my job to start a startup?'..." rows="
|
| 332 |
<button class="btn btn-primary btn-generate" id="generate-btn">π³ Generate</button>
|
| 333 |
<button class="btn btn-secondary sample-btn" id="sample-btn">π― Sample</button>
|
| 334 |
</div>
|
|
@@ -344,7 +343,7 @@ body.light .dropdown-section kbd { background: rgba(0,0,0,0.04); border-color: r
|
|
| 344 |
<div id="info-dropdown" class="dropdown-overlay">
|
| 345 |
<div class="dropdown-box">
|
| 346 |
<button class="dropdown-close" id="info-close">β</button>
|
| 347 |
-
<h3>βΉοΈ About Overthinker
|
| 348 |
<div class="dropdown-section">
|
| 349 |
<h4>π€ Model</h4>
|
| 350 |
<p>Powered by <strong>nvidia/nemotron-3-nano-30b-a3b</strong> via <strong>OpenRouter</strong>. Optimized for structured decision tree generation with dual-prompt architecture (options vs outcomes).</p>
|
|
@@ -481,7 +480,7 @@ body.light .dropdown-section kbd { background: rgba(0,0,0,0.04); border-color: r
|
|
| 481 |
|
| 482 |
<script>
|
| 483 |
// =============================================
|
| 484 |
-
// OVER THINKER
|
| 485 |
// - Fix 1: addOptions() now replaces children instead of appending
|
| 486 |
// - Fix 2: Zoom handler cleanup on initSvg (prevents listener leaks)
|
| 487 |
// - Fix 3: Data arrays cleared before each render (via removeChildrenOf + keyed joins)
|
|
@@ -1816,7 +1815,7 @@ getSessionId();
|
|
| 1816 |
initSvg();
|
| 1817 |
if (localStorage.getItem('overthinker_theme') === 'light') toggleTheme();
|
| 1818 |
|
| 1819 |
-
console.log('π§ Overthinker
|
| 1820 |
</script>
|
| 1821 |
</body>
|
| 1822 |
</html>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
| 6 |
+
<title>Overthinker</title>
|
| 7 |
<script src="https://cdn.jsdelivr.net/npm/d3@7"></script>
|
| 8 |
<style>
|
| 9 |
* { margin:0; padding:0; box-sizing:border-box; }
|
|
|
|
| 318 |
<div class="top-bar">
|
| 319 |
<div class="logo"><h1>π§ Overthinker</h1></div>
|
| 320 |
<div class="top-controls">
|
| 321 |
+
<input type="number" id="branch-input" value="3" min="3" max="3" hidden>
|
|
|
|
| 322 |
<button class="btn btn-secondary btn-icon" id="theme-btn" title="Toggle Theme">π</button>
|
| 323 |
<button class="btn btn-secondary" id="info-btn" title="Info">βΉοΈ</button>
|
| 324 |
<button class="btn btn-secondary" id="help-btn" title="Help">β</button>
|
|
|
|
| 327 |
|
| 328 |
<div class="prompt-bar">
|
| 329 |
<div class="input-group">
|
| 330 |
+
<textarea id="decision-input" placeholder="What decision are you overthinking? e.g. 'Should I quit my job to start a startup?'..." rows="2"></textarea>
|
| 331 |
<button class="btn btn-primary btn-generate" id="generate-btn">π³ Generate</button>
|
| 332 |
<button class="btn btn-secondary sample-btn" id="sample-btn">π― Sample</button>
|
| 333 |
</div>
|
|
|
|
| 343 |
<div id="info-dropdown" class="dropdown-overlay">
|
| 344 |
<div class="dropdown-box">
|
| 345 |
<button class="dropdown-close" id="info-close">β</button>
|
| 346 |
+
<h3>βΉοΈ About Overthinker </h3>
|
| 347 |
<div class="dropdown-section">
|
| 348 |
<h4>π€ Model</h4>
|
| 349 |
<p>Powered by <strong>nvidia/nemotron-3-nano-30b-a3b</strong> via <strong>OpenRouter</strong>. Optimized for structured decision tree generation with dual-prompt architecture (options vs outcomes).</p>
|
|
|
|
| 480 |
|
| 481 |
<script>
|
| 482 |
// =============================================
|
| 483 |
+
// OVER THINKER β Browser Memory Fixes
|
| 484 |
// - Fix 1: addOptions() now replaces children instead of appending
|
| 485 |
// - Fix 2: Zoom handler cleanup on initSvg (prevents listener leaks)
|
| 486 |
// - Fix 3: Data arrays cleared before each render (via removeChildrenOf + keyed joins)
|
|
|
|
| 1815 |
initSvg();
|
| 1816 |
if (localStorage.getItem('overthinker_theme') === 'light') toggleTheme();
|
| 1817 |
|
| 1818 |
+
console.log('π§ Overthinker - Running), ID:', sessionId);
|
| 1819 |
</script>
|
| 1820 |
</body>
|
| 1821 |
</html>
|