1 | <!DOCTYPE html> |
2 | <html lang="en"> |
3 | |
4 | <head> |
5 | <meta charset="UTF-8"> |
6 | <title>Hello Robot</title> |
7 | <link rel="stylesheet" type="text/css" href="http://tinybrain.de:8080/getraw.php?id=1002068&contentType=text/css"> |
8 | <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.js"></script> |
9 | <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/2.5.0/math.js"></script> |
10 | <script> |
11 | $(document).keypress(function (e) { |
12 | if (e.which == 13) { |
13 | var command = document.getElementById("input").value; |
14 | var answer = document.getElementById("answer"); |
15 | answer.innerHTML = "Hi!!!! " + command; |
16 | } |
17 | }); |
18 | </script> |
19 | </head> |
20 | |
21 | <body> |
22 | <h1 id="header">Yo.</h1> |
23 | <input autofocus id="input" type="text" placeholder="Talk to the robot..." value="get unix time"></input> |
24 | <a href="howto.html" style="display:block; margin-top:20px;">How to use?</a> |
25 | <h3 id="answer"></h3> |
26 | <h4 id="footer"></h4> |
27 | </body> |
28 | |
29 | </html> |
download render html show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1002067 |
Snippet name: | Hello Robot |
Eternal ID of this version: | #1002067/1 |
Text MD5: | d17ccf9b660766559c4fb20259187451 |
Author: | stefan |
Category: | |
Type: | HTML |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-12-16 01:03:07 |
Source code size: | 1057 bytes / 29 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 644 / 296 |
Referenced in: | [show references] |