~cytrogen/gstack

ref: a0328be04c37ce4a52f6fb169b355400ecbb0ef2 gstack/browse/test/fixtures/dialog.html -rw-r--r-- 603 bytes
a0328be0 — Garry Tan feat: always-on adversarial review + scope drift + plan mode design tools (v0.14.3.0) (#694) 13 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Test Page - Dialog</title>
</head>
<body>
  <h1>Dialog Test</h1>
  <button id="alert-btn" onclick="alert('Hello from alert')">Alert</button>
  <button id="confirm-btn" onclick="document.getElementById('confirm-result').textContent = confirm('Are you sure?') ? 'confirmed' : 'cancelled'">Confirm</button>
  <button id="prompt-btn" onclick="document.getElementById('prompt-result').textContent = prompt('Enter name:', 'default') || 'null'">Prompt</button>
  <p id="confirm-result"></p>
  <p id="prompt-result"></p>
</body>
</html>