Mercurial > code > home > repos > homeauto
comparison service/arduinoNode/static/output-widgets.html @ 171:4d2df276baae
clean up rdf-observe demo ui
Ignore-this: 8795333fe63ccd47e8c3e9584efaa43d
author | drewp@bigasterisk.com |
---|---|
date | Tue, 14 Apr 2015 02:01:51 -0700 |
parents | 376599552a4c |
children | 0daa8cbbd8f6 |
comparison
equal
deleted
inserted
replaced
170:376599552a4c | 171:4d2df276baae |
---|---|
1 <link rel="import" href="/lib/polymer/0.5.2/core-ajax/core-ajax.html"> | 1 <link rel="import" href="/lib/polymer/0.5.2/core-ajax/core-ajax.html"> |
2 | 2 |
3 <polymer-element name="output-widget" attributes="subj pred"> | 3 <polymer-element name="output-widget" attributes="subj pred"> |
4 <template> | 4 <template> |
5 <core-ajax id="output" url="../output" method="POST"></core-ajax> | 5 <core-ajax id="output" url="../output" method="POST"></core-ajax> |
6 {{subj}} set {{pred}} to | 6 Set this device's {{pred}} to |
7 </template> | 7 </template> |
8 <script> | 8 <script> |
9 function ntriple(s, p, o) { | 9 function ntriple(s, p, o) { |
10 // incomplete | 10 // incomplete |
11 o = o.replace('\n', '\\n'); | 11 o = o.replace('\n', '\\n'); |