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.
27 lines
592 B
27 lines
592 B
6 years ago
|
var UID = +new Date();
|
||
|
|
||
|
exports.uniqueID = function(){
|
||
|
return (UID++).toString(36);
|
||
|
};
|
||
|
|
||
|
var NS = 'http://www.w3.org/2000/svg',
|
||
|
XLINK = 'http://www.w3.org/1999/xlink',
|
||
|
XML = 'http://www.w3.org/XML/1998/namespace';
|
||
|
|
||
|
exports.NS = NS;
|
||
|
|
||
|
exports.createElement = function(tag){
|
||
|
return document.createElementNS(NS, tag);
|
||
|
};
|
||
|
|
||
|
exports.link = function(element, url){
|
||
|
element.setAttributeNS(XLINK, 'href', url);
|
||
|
};
|
||
|
|
||
|
exports.preserveSpace = function(element){
|
||
|
element.setAttributeNS(XML, 'space', 'preserve');
|
||
|
};
|
||
|
|
||
|
exports.createTextNode = function(text){
|
||
|
return document.createTextNode(text);
|
||
|
}
|