File: input.html

package info (click to toggle)
qutebrowser 3.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,432 kB
  • sloc: python: 72,411; javascript: 31,862; sh: 874; xml: 149; makefile: 52
file content (27 lines) | stat: -rw-r--r-- 926 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>

<html>
    <head>
        <meta charset="utf-8">
        <title>Simple input</title>
        <script type="text/javascript">
          function setup_event_listener() {
              console.log('input loaded')
              var elem = document.getElementById('qute-input-existing');
              console.log(elem);
              elem.addEventListener('input', function() {
                  console.log("contents: " + elem.value);
              });
          }
        </script>
    </head>
    <body onload="setup_event_listener()">
        <form><input id="qute-input"></input></form>
        With padding:
        <form><input type="text" style="padding-left: 20px;"></input></form>
        With existing text (logs to JS)::
        <form><input id="qute-input-existing" value="existing"></input></form>
        Contenteditable attributes
        <p contenteditable="true">laythe</p>
    </body>
</html>