Debian Codegraph @

www/public/test/manual/confirm-and-prompt.html

raw symbols SCIP
1 <html lang="en">
2 <head>
3 <meta charset="utf-8" />
4 <title>Test if indicators are invisible by default</title>
5 <script src="../../src/htmx.js"></script>
6 </head>
7 <body style="padding:20px;font-family: sans-serif">
8 <script src="../../node_modules/sinon/pkg/sinon.js"></script>
9 <script src="../../src/htmx.js"></script>
10 <script src="../util/util.js"></script>
11 <script>
12 server = makeServer();
13 server.autoRespond = true;
14 server.respondWith("GET", "/prompt", function(xhr){
15 xhr.respond(200, {}, "You entered: " + xhr.requestHeaders["HX-Prompt"]);
16 })
17 server.respondWith("GET", "/confirm", function(xhr){
18 xhr.respond(200, {}, "Confirmed")
19 })
20 </script>
21 <h1>Prompt & Confirm Tests</h1>
22 <button hx-get="/prompt" hx-prompt="Enter some text and it should be echoed in this button">Click For Prompt</button>
23 <br/>
24 <br/>
25 <br/>
26 <button hx-get="/confirm" hx-confirm="Confirm The Action">Click For Confirm</button>
27 </body>
28 </html>