meshviewer/lib/legend.js

20 lines
540 B
JavaScript
Raw Normal View History

2015-08-26 23:31:19 +00:00
define(function () {
2016-05-27 21:59:01 +00:00
"use strict";
2015-08-26 23:31:19 +00:00
return function () {
var self = this;
2015-08-26 23:31:19 +00:00
self.render = function (el) {
var p = document.createElement("p");
2017-01-20 14:06:06 +00:00
p.classList.add("legend");
p.innerHTML = '<span class="legend-new"><span class="symbol"></span> Neuer Knoten</span>' +
'<span class="legend-online"><span class="symbol"></span> Knoten ist online</span>' +
'<span class="legend-offline"><span class="symbol"></span> Knoten ist offline</span>';
el.appendChild(p);
};
2015-08-26 23:31:19 +00:00
return self;
};
});
2015-08-26 23:31:19 +00:00