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