1 | <!-- Todo: Style the output and autocomplete list Note: I leave this to stefan --> |
2 | <!DOCTYPE html> |
3 | <html lang="en"> |
4 | |
5 | <head> |
6 | <meta charset="UTF-8"> |
7 | <title>Talk to Eleutheria</title> |
8 | <link rel="stylesheet" type="text/css" href="http://tinybrain.de:8080/getraw.php?id=1002160&contentType=text/css"> |
9 | <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.js"></script> |
10 | <script src="https://cdnjs.cloudflare.com/ajax/libs/awesomplete/1.0.0/awesomplete.min.js"></script> |
11 | <script> |
12 | $(document).keypress(function (e) { |
13 | if (e.which == 13) { |
14 | var command = document.getElementById("input").value; |
15 | var style = "font-family: PT Sans; font-size: 50px; text-align: center"; |
16 | var url = "http://bots.tinybrain.de/1002076/raw?q=" + encodeURIComponent(command) + "&style=" + encodeURIComponent(style); |
17 | $("#answer").html('<object width="100%" data="' + url + '"/>'); |
18 | } |
19 | }); |
20 | $(document).on("click","a",function(){ |
21 | var command = document.getElementById("input").value; |
22 | var style = "font-family: PT Sans; font-size: 50px; text-align: center"; |
23 | var url = "http://bots.tinybrain.de/1002076/raw?q=" + encodeURIComponent(command) + "&style=" + encodeURIComponent(style); |
24 | $("#answer").html('<object width="100%" data="' + url + '"/>'); |
25 | }); |
26 | </script> |
27 | </head> |
28 | |
29 | <body> |
30 | <a href="http://tinybrain.de/"><img src="http://eyeocr.sourceforge.net/filestore/filestore.php?cmd=serve&file=blob_1002132&contentType=image/png" alt="Eleutheria" border="0" /></a> |
31 | <input data-list="#autocomplete" class="awesomplete" autofocus id="input" type="text" placeholder="Talk to the robot..." style="text-align: center" ></input> |
32 | <a class="submit" href="javascript:void(0)">SUBMIT</a> |
33 | <div id="answer" class ="result"></div> |
34 | <h4 id="footer">With the help of Bugra Gündüz</h4> |
35 | <ul style="display:none;" id="autocomplete"> |
36 | <li>* * are * *</li> |
37 | <li>* * is * *</li> |
38 | <li>* random english words</li> |
39 | <li>1 random english word</li> |
40 | <li>Are there any * other than *?</li> |
41 | <li>all things</li> |
42 | <li>am i a *</li> |
43 | <li>check theory</li> |
44 | <li>cheesebase reload</li> |
45 | <li>get disk space</li> |
46 | <li>get unix hour</li> |
47 | <li>get unix time</li> |
48 | <li>how many * * * *</li> |
49 | <li>how many computers run javax</li> |
50 | <li>how many english words do you know?</li> |
51 | <li>if the * is in the *, and the * is in the *, and the * is in the *, is the * in the *?</li> |
52 | <li>if the * is in the *, and the * is in the *, and the * is in the *, then is the * in the *?</li> |
53 | <li>if the * is in the *, and the * is in the *, is the * in the *?</li> |
54 | <li>if the * is in the *, and the * is in the *, then is the * in the *?</li> |
55 | <li>is * a *</li> |
56 | <li>is * an english word?</li> |
57 | <li>javax: how many statements? *</li> |
58 | <li>list all *</li> |
59 | <li>look up *</li> |
60 | <li>lookup *</li> |
61 | <li>name * *</li> |
62 | <li>name a *</li> |
63 | <li>please say *</li> |
64 | <li>please scrape *</li> |
65 | <li>random english word</li> |
66 | <li>random english words</li> |
67 | <li>show clusters</li> |
68 | <li>show theory</li> |
69 | <li>the text of snippet * is *</li> |
70 | <li>unix hour</li> |
71 | <li>what is *</li> |
72 | <li>what is the unix hour</li> |
73 | <li>which bot is the biggest</li> |
74 | </ul> |
75 | </body> |
76 | |
77 | </html> |
Began life as a copy of #1002122
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: | #1002123 |
Snippet name: | alternate homepage, with fixes |
Eternal ID of this version: | #1002123/1 |
Text MD5: | 60d079d990c063a9d3e3fc7dc9e1687b |
Author: | stefan |
Category: | |
Type: | HTML |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-12-27 19:56:36 |
Source code size: | 3389 bytes / 77 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 695 / 726 |
Referenced in: | [show references] |