2015-08-27 01:31:19 +02:00
|
|
|
define(function () {
|
|
|
|
return function () {
|
2017-03-17 03:14:57 +01:00
|
|
|
var self = this;
|
2015-08-27 01:31:19 +02:00
|
|
|
|
|
|
|
self.render = function (el) {
|
2017-03-17 03:14:57 +01:00
|
|
|
var p = document.createElement("p");
|
|
|
|
p.setAttribute("class", "legend");
|
|
|
|
el.appendChild(p);
|
2015-08-27 01:31:19 +02:00
|
|
|
|
2017-03-17 03:14:57 +01:00
|
|
|
var spanNew = document.createElement("span");
|
|
|
|
spanNew.setAttribute("class", "legend-new");
|
|
|
|
var symbolNew = document.createElement("span");
|
|
|
|
symbolNew.setAttribute("class", "symbol");
|
|
|
|
var textNew = document.createTextNode(" Neuer Knoten");
|
|
|
|
spanNew.appendChild(symbolNew);
|
|
|
|
spanNew.appendChild(textNew);
|
|
|
|
p.appendChild(spanNew);
|
2015-08-27 01:31:19 +02:00
|
|
|
|
2017-03-17 03:14:57 +01:00
|
|
|
var spanOnline = document.createElement("span");
|
|
|
|
spanOnline.setAttribute("class", "legend-online");
|
|
|
|
var symbolOnline = document.createElement("span");
|
|
|
|
symbolOnline.setAttribute("class", "symbol");
|
|
|
|
var textOnline = document.createTextNode(" Knoten ist online");
|
|
|
|
spanOnline.appendChild(symbolOnline);
|
|
|
|
spanOnline.appendChild(textOnline);
|
|
|
|
p.appendChild(spanOnline);
|
2015-08-27 01:31:19 +02:00
|
|
|
|
2017-03-17 03:14:57 +01:00
|
|
|
var spanOffline = document.createElement("span");
|
|
|
|
spanOffline.setAttribute("class", "legend-offline");
|
|
|
|
var symbolOffline = document.createElement("span");
|
|
|
|
symbolOffline.setAttribute("class", "symbol");
|
|
|
|
var textOffline = document.createTextNode(" Knoten ist offline");
|
|
|
|
spanOffline.appendChild(symbolOffline);
|
|
|
|
spanOffline.appendChild(textOffline);
|
|
|
|
p.appendChild(spanOffline);
|
|
|
|
};
|
2015-08-27 01:31:19 +02:00
|
|
|
|
2017-03-17 03:14:57 +01:00
|
|
|
return self;
|
|
|
|
};
|
|
|
|
});
|
2015-08-27 01:31:19 +02:00
|
|
|
|