comparison service/rfid_pn532_py/index.html @ 475:b264ca970aba

refactor common viewer setup Ignore-this: bfb64bb135568d6a48ade6ab48052f34
author drewp@bigasterisk.com
date Sat, 20 Apr 2019 23:53:43 -0700
parents f134b64a0ab7
children b87b6e9cedb2
comparison
equal deleted inserted replaced
474:1d2817cb9a6f 475:b264ca970aba
5 <meta charset="utf-8" /> 5 <meta charset="utf-8" />
6 <meta name="mobile-web-app-capable" content="yes"> 6 <meta name="mobile-web-app-capable" content="yes">
7 <meta name="viewport" content="width=device-width, initial-scale=1"> 7 <meta name="viewport" content="width=device-width, initial-scale=1">
8 <script src="/lib/polymer/1.0.9/webcomponentsjs/webcomponents.min.js"></script> 8 <script src="/lib/polymer/1.0.9/webcomponentsjs/webcomponents.min.js"></script>
9 <script src="/lib/require/require-2.3.3.js"></script> 9 <script src="/lib/require/require-2.3.3.js"></script>
10 <script> 10 <script src="/rdf/common_paths_and_ns.js"></script>
11 requirejs.config({
12 paths: {
13 "streamed-graph": "/rdf/streamed-graph",
14 "quadstore": "/rdf/quadstore",
15 "async-module": "/lib/async/80f1793/async",
16 "async": "/lib/async/80f1793/async",
17 "jsonld-module": "/lib/jsonld.js/0.4.11/js/jsonld",
18 "jsonld": "/lib/jsonld.js/0.4.11/js/jsonld",
19 "rdfstore": "/lib/rdf_store/0.9.7/dist/rdfstore",
20 "moment": "/lib/moment.min",
21 "underscore": "/lib/underscore-1.5.2.min",
22 }
23 });
24 </script>
25 <script>
26 window.NS = {
27 dev: 'http://projects.bigasterisk.com/device/',
28 room: 'http://projects.bigasterisk.com/room/',
29 rdfs: 'http://www.w3.org/2000/01/rdf-schema#',
30 sensor: 'http://bigasterisk.com/homeauto/sensor/',
31 };
32 </script>
33 <link rel="import" href="rfid-console.html"> 11 <link rel="import" href="rfid-console.html">
34 <style> 12 <style>
35 .served-resources { 13 .served-resources {
36 margin-top: 4em; 14 margin-top: 4em;
37 border-top: 1px solid gray; 15 border-top: 1px solid gray;
43 </style> 21 </style>
44 </head> 22 </head>
45 <body> 23 <body>
46 <rfid-console></rfid-console> 24 <rfid-console></rfid-console>
47 25
26 <template id="t" is="dom-bind">
27 <streamed-graph url="graph/events" graph="{{graph}}"></streamed-graph>
28 <div id="out"></div>
29 <script type="module" src="/rdf/streamed_graph_view.js"></script>
30 </template>
31
48 <div class="served-resources"> 32 <div class="served-resources">
49 <a href="stats/">/stats/</a> 33 <a href="stats/">/stats/</a>
50 <a href="graph">/graph</a> 34 <a href="graph">/graph</a>
51 <a href="graph/events">/graph/events</a> 35 <a href="graph/events">/graph/events</a>
52 <a href="output" >(post) /output</a> 36 <a href="output" >(post) /output</a>