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 () {
|
2016-05-22 11:23:43 +00:00
|
|
|
var self = this;
|
2015-08-26 23:31:19 +00:00
|
|
|
|
|
|
|
self.render = function (el) {
|
2016-05-22 11:23:43 +00:00
|
|
|
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>';
|
2016-05-22 11:23:43 +00:00
|
|
|
el.appendChild(p);
|
|
|
|
};
|
2015-08-26 23:31:19 +00:00
|
|
|
|
2016-05-22 11:23:43 +00:00
|
|
|
return self;
|
|
|
|
};
|
|
|
|
});
|
2015-08-26 23:31:19 +00:00
|
|
|
|