broadfield-dev commited on
Commit
d684af2
Β·
verified Β·
1 Parent(s): 324d7b3

Update templates/index.html

Browse files
Files changed (1) hide show
  1. 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 β€” v29 Browser Memory Fix</title>
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
- <label>Branches:</label>
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="1"></textarea>
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 v29</h3>
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 v29 β€” Browser Memory Fixes
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 v29 β€” Browser Memory Fixes Applied (zoom cleanup, addOptions replace, keyed exit/remove), ID:', sessionId);
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>