|
1 | | ---- |
2 | | -layout: shell |
3 | | ---- |
4 | | - |
5 | | -<form action="pattern-test-response.html" method="get" data-pat-inject="target: #main-content" class="concise pat-inject"> |
6 | | - <fieldset class="horizontal pat-autosubmit"> |
7 | | - <label> |
8 | | - Take your pick |
9 | | - <select name="mySelect"> |
10 | | - <option value="A"> |
11 | | - Item A |
12 | | - </option> |
13 | | - <option value="B"> |
14 | | - Item B |
15 | | - </option> |
16 | | - </select> |
17 | | - </label> |
18 | | - <fieldset class="group checklist"> |
19 | | - <legend>We like options</legend> |
20 | | - <label><input type="checkbox" name="cream" /> Cream</label> |
21 | | - <label><input type="checkbox" name="syrup" /> Syrup</label> |
22 | | - </fieldset> |
23 | | - <label><input type="file" name="myFile" /> Upload a file</label> |
24 | | - <fieldset class="group checklist radio"> |
25 | | - <legend>Choose your flavour</legend> |
26 | | - <label><input type="radio" name="radio" /> Strawberry</label> |
27 | | - <label><input type="radio" name="radio" /> Banana</label> |
28 | | - <label><input type="radio" name="radio" /> Raspberry</label> |
29 | | - </fieldset> |
30 | | - <label>Free text field triggers with default delay <input type="text" name="keyup"/></label> |
31 | | - <label>Free text field triggers with 3000 ms delay <input type="search" name="keyup" data-pat-autosubmit="delay: 3000ms" /></label> |
32 | | - <label>Free text field triggers when field loses focus <input type="text" name="defocus" data-pat-autosubmit="delay: defocus" /></label> |
33 | | - </fieldset> |
34 | | -</form> |
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | + <head> |
| 4 | + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 5 | + <title>Auto submit</title> |
| 6 | + <link rel="stylesheet" href="../common.css" type="text/css"> |
| 7 | + <link rel="stylesheet" href="autosubmit.css" type="text/css"> |
| 8 | + <script data-main="../main" src="../../src/bower_components/requirejs/require.js"></script> |
| 9 | + </head> |
| 10 | + <body class="home"> |
| 11 | + <section> |
| 12 | + <h1>Auto submit</h1> |
| 13 | + <section class="description"> |
| 14 | + <a href="documentation.md" class="pat-inject" data-pat-inject="source: ## Description::element; target: self::element; trigger: autoload">Description</a> |
| 15 | + </section> |
| 16 | + <section class="demo"> |
| 17 | + <h2>Demo</h2> |
| 18 | + <form action="pattern-test-response.html" method="get" data-pat-inject="target: #main-content" class="concise pat-inject"> |
| 19 | + <fieldset class="horizontal pat-autosubmit"> |
| 20 | + <label> |
| 21 | + Take your pick |
| 22 | + <select name="mySelect"> |
| 23 | + <option value="A"> |
| 24 | + Item A |
| 25 | + </option> |
| 26 | + <option value="B"> |
| 27 | + Item B |
| 28 | + </option> |
| 29 | + </select> |
| 30 | + </label> |
| 31 | + <fieldset class="group checklist"> |
| 32 | + <legend>We like options</legend> |
| 33 | + <label><input type="checkbox" name="cream" /> Cream</label> |
| 34 | + <label><input type="checkbox" name="syrup" /> Syrup</label> |
| 35 | + </fieldset> |
| 36 | + <label><input type="file" name="myFile" /> Upload a file</label> |
| 37 | + <fieldset class="group checklist radio"> |
| 38 | + <legend>Choose your flavour</legend> |
| 39 | + <label><input type="radio" name="radio" /> Strawberry</label> |
| 40 | + <label><input type="radio" name="radio" /> Banana</label> |
| 41 | + <label><input type="radio" name="radio" /> Raspberry</label> |
| 42 | + </fieldset> |
| 43 | + <label>Free text field triggers with default delay <input type="text" name="keyup"/></label> |
| 44 | + <label>Free text field triggers with 3000 ms delay <input type="search" name="keyup" data-pat-autosubmit="delay: 3000ms" /></label> |
| 45 | + <label>Free text field triggers when field loses focus <input type="text" name="defocus" data-pat-autosubmit="delay: defocus" /></label> |
| 46 | + </fieldset> |
| 47 | + </form> |
| 48 | + <div id="main-content"> |
| 49 | + <p>Some content will appear here if you change anything in the form…</p> |
| 50 | + </div> |
| 51 | + </section> |
| 52 | + <section class="documentation"> |
| 53 | + <a href="documentation.md" class="pat-inject" data-pat-inject="source: ## Documentation::element; target: self::element; trigger: autoload">Documentation</a> |
| 54 | + </section> |
| 55 | + </section> |
| 56 | + <a href="../index.html" class="pat-inject" data-pat-inject="source: #global-navigation::element; target: self::element; trigger: autoload">Global navigation</a> |
| 57 | + </body> |
| 58 | +</html> |
0 commit comments