Spaces:
Running

File size: 645 Bytes
ff9d940
 
c74e6bc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ff9d940
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Forge AI Demo</title>
  <style>
    body { font-family: sans-serif; max-width: 500px; margin: 60px auto; text-align: center; }
    input, button { padding: 10px; font-size: 16px; margin: 6px; }
  </style>
</head>
<body>
  <h1>Forge AI</h1>
  <input id="name" placeholder="Type your name">
  <button onclick="greet()">Say hello</button>
  <p id="out"></p>
  <script>
    function greet() {
      const n = document.getElementById("name").value || "friend";
      document.getElementById("out").textContent = "Hello " + n + ", welcome to Forge AI!";
    }
  </script>
</body>
</html>