UNPKG

node-red-contrib-covid19

Version:

A node-red node to gather information about the statistics of COVID-19 (Corona) virus.

49 lines (41 loc) 1.59 kB
/** * Copyright 2020 Nemanja Vukmirovic * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. **/ <script type="text/javascript"> RED.nodes.registerType('affected countries',{ category: 'COVID19', color: '#a6bbcf', defaults: { name: {value:""}, }, inputs:1, outputs:1, icon: "/icons/icon.png", label: function() { return this.name||"affected countries"; }, }); </script> <script type="text/html" data-template-name="affected countries"> <div class="form-row"> <label for="node-input-name"><i class="icon-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Name"> </div> </script> <script type="text/html" data-help-name="affected countries"> <p>A simple node that returns all countries affected by <strong> COVID-19 (Corona) </strong>virus.</p> <h3><strong>Outputs</strong></h3> <p> all of the countries with the stats will be returned as an object in msg.covid.countries</p> </script>