yunkong2.yr/widgets/yr.html
2018-09-22 10:26:24 +08:00

33 lines
1.0 KiB
HTML

<!--
yunkong2.vis dwd Widget-Set
version: "2.0.0"
Copyright 2013-2018 bluefox<dogafox@gmail.com>
-->
<script type="text/javascript">
vis.binds.yr = {
version: "1.0.5",
showVersion: function () {
if (vis.binds.yr.version) {
console.log('Version vis-canvas-gauges: ' + vis.binds.yr.version);
vis.binds.yr.version = null;
}
}
};
vis.binds.yr.showVersion();
</script>
<script id="tplYrAdapter"
type="text/ejs"
class="vis-tpl"
data-vis-set="yr"
data-vis-name="yr.no Weather"
data-vis-prev='<img src="widgets/yr/img/Prev_YrAdapter.png"></img>'
data-vis-attrs="oid[yr.0.forecast.html]">
<div class="vis-widget <%== this.data.attr('class') %>" style="padding: 3px; background-color:#ccc; font-family: Arial; width: 310px; height: 80px" id="<%= this.data.attr('wid') %>">
<div class="vis-widget-body">
<%== vis.states.attr(this.data.oid + '.val') %>
</div>
</div>
</script>