This app provides monitoring and information features for the common freifunk user and the technical stuff of a freifunk community.
Code base is taken from a TUM Practical Course project and added here to see if Freifunk Altdorf can use it.
https://www.freifunk-altdorf.de
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
788 B
40 lines
788 B
var Class = require('../../core/class'); |
|
var Transform = require('../../core/transform'); |
|
var Element = require('../../dom/shadow'); |
|
var DOM = require('./dom'); |
|
|
|
module.exports = Class(Element, Transform, { |
|
|
|
initialize: function(tag){ |
|
//this.uid = uniqueID(); |
|
var element = this.element = DOM.createElement(tag); |
|
//element.setAttribute('id', 'e' + this.uid); |
|
}, |
|
|
|
_place: function(){ |
|
if (this.parentNode){ |
|
this._transform(); |
|
} |
|
}, |
|
|
|
// visibility |
|
|
|
hide: function(){ |
|
this.element.style.display = 'none'; |
|
return this; |
|
}, |
|
|
|
show: function(){ |
|
this.element.style.display = ''; |
|
return this; |
|
}, |
|
|
|
// interaction |
|
|
|
indicate: function(cursor, tooltip){ |
|
if (cursor) this.element.style.cursor = cursor; |
|
if (tooltip) this.element.title = tooltip; |
|
return this; |
|
} |
|
|
|
});
|
|
|