Mercurial > code > home > repos > homeauto
annotate service/reasoning/index.html @ 236:273709eaaefd
use rdf-uri.html for shortening
Ignore-this: c0c35e1a6a7f6339926df67ed3550989
author | drewp@bigasterisk.com |
---|---|
date | Mon, 01 Feb 2016 02:33:33 -0800 |
parents | 47682350e6f2 |
children | 43f2e21e2225 |
rev | line source |
---|---|
180 | 1 <!DOCTYPE html> |
2 <html> | |
20
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
3 <head> |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
4 <title>reasoning</title> |
180 | 5 <link rel="import" href="https://bigasterisk.com/lib/polymer/0.5.2/core-splitter/core-splitter.html"> |
6 <link rel="import" href="https://bigasterisk.com/supdebug/bang/service-rows/main.html"> | |
20
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
7 <style type="text/css" media="all"> |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
8 /* <![CDATA[ */ |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
9 body { |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
10 font-family: sans-serif; |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
11 font-size: 12px; |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
12 |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
13 } |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
14 pre { |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
15 font-family: sans-serif; |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
16 } |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
17 pre div { |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
18 border-bottom: 1px solid #ccc; |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
19 } |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
20 .pred { |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
21 background: #e7e6f8; |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
22 } |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
23 .obj { |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
24 background: #ccf |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
25 } |
180 | 26 .pane { |
27 position: relative; | |
28 display: flex; | |
29 flex-direction: column; | |
30 } | |
31 .pane pre { | |
32 overflow: auto; | |
33 flex-grow: 1; | |
34 } | |
20
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
35 /* ]]> */ |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
36 </style> |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
37 |
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
38 </head> |
180 | 39 <body layout vertical fit> |
20
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
40 |
180 | 41 <div style="flex: 0 0 auto"> |
236 | 42 <service-rows nameSubstrs="reasoning"></service-rows> |
180 | 43 </div> |
44 | |
45 <div class="pane"> | |
46 <h2>Input</h2> | |
47 <pre id="input"/> | |
48 </div> | |
49 | |
50 <core-splitter direction="up"></core-splitter> | |
20
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
51 |
180 | 52 <div class="pane"> |
53 <h2>Rules</h2> | |
54 <pre id="rules"/> | |
55 </div> | |
56 | |
57 <core-splitter direction="up"></core-splitter> | |
20
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
58 |
180 | 59 <div class="pane"> |
60 <h2>Output</h2> | |
61 <pre id="output"/> | |
62 </div> | |
20
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
63 |
180 | 64 <div> |
65 <input id="auto" type="checkbox"/> <label for="auto">auto refresh</label> | |
66 </div> | |
20
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
67 |
132
d379351d398d
serve 3rdparty js from bigasterisk.com/lib
drewp@bigasterisk.com
parents:
47
diff
changeset
|
68 <script src="//bigasterisk.com/lib/jquery-2.0.3.min.js"></script> |
236 | 69 <script> |
70 window.NS = { | |
71 room: "http://projects.bigasterisk.com/room/", | |
72 dev: "http://projects.bigasterisk.com/device/", | |
73 dcterms: "http://purl.org/dc/terms/", | |
74 rdfs: "http://www.w3.org/2000/01/rdf-schema#", | |
75 map: "http://bigasterisk.com/map#", | |
76 rdf: "http://www.w3.org/1999/02/22-rdf-syntax-ns#", | |
77 }; | |
78 </script> | |
79 <link rel="import" href="/rdf/rdf-uri.html"> | |
80 <script type="text/javascript"> | |
81 // <![CDATA[ | |
82 $(function () { | |
83 function update() { | |
84 function makeAddStmts(elem) { | |
85 return function (stmts) { | |
86 elem.empty(); | |
87 $.each(stmts, function (i, s) { | |
88 elem.append($("<div>").html( | |
89 "<span>"+BigastUri.compactUri(s[0])+"</span> "+ | |
90 "<span class=\"pred\">"+BigastUri.compactUri(s[1])+"</span> "+ | |
91 "<span class=\"obj\">"+BigastUri.compactUri(s[2])+"</span>")); | |
92 }) | |
93 } | |
94 } | |
20
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
95 |
236 | 96 $.get("lastInputGraph", makeAddStmts($("#input"))); |
97 $.get("lastOutputGraph", makeAddStmts($("#output"))); | |
98 $.get("rules", function (txt) { | |
99 $("#rules").empty().text(txt); | |
100 }); | |
101 } | |
102 function loop() { | |
103 update(); | |
104 if ($("input#auto").is(":checked")) { | |
105 setTimeout(loop, 2000); | |
106 } | |
107 } | |
108 loop(); | |
109 $("input#auto").click(loop); | |
110 }); | |
111 // ]]> | |
112 </script> | |
20
3f0dd03112b5
move reasoning from /my/proj/room, new integration with magma
drewp@bigasterisk.com
parents:
diff
changeset
|
113 </body> |
132
d379351d398d
serve 3rdparty js from bigasterisk.com/lib
drewp@bigasterisk.com
parents:
47
diff
changeset
|
114 </html> |