luajitos

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

index.html (1022B)


      1 <!DOCTYPE html>
      2 <html>
      3     <head>
      4         <title>HTML Test Application</title>
      5         <meta name="window-width" content="500">
      6         <meta name="window-height" content="600">
      7         <!-- meta name="window-height" value="600"> also works -->
      8     </head>
      9     <body>
     10         <h1>HTML App Test</h1>
     11         <p>This app uses type="html" in its manifest.</p>
     12 
     13         <p><a href="about.html">Go to About page</a></p>
     14 
     15         <button onclick="alert('Hello from HTML app!')">Show Alert</button>
     16         <button onclick="setName()">Set Name</button>
     17 
     18         <h2>Form Test</h2>
     19         <form>
     20             <label>Name:</label>
     21             <input type="text" id="name" name="name">
     22             <br>
     23             <input type="submit" value="Submit">
     24         </form>
     25 
     26         <p>Uses the app's own permissions and context!</p>
     27 
     28         <script>
     29             console.log("HTML Test App loaded!")
     30 
     31             function setName()
     32                 query("#name").value = "Test User"
     33             end
     34         </script>
     35     </body>
     36 </html>