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.
24 lines
866 B
24 lines
866 B
6 years ago
|
var $export = require('./$.export')
|
||
|
, toIndex = require('./$.to-index')
|
||
|
, fromCharCode = String.fromCharCode
|
||
|
, $fromCodePoint = String.fromCodePoint;
|
||
|
|
||
|
// length should be 1, old FF problem
|
||
|
$export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', {
|
||
|
// 21.1.2.2 String.fromCodePoint(...codePoints)
|
||
|
fromCodePoint: function fromCodePoint(x){ // eslint-disable-line no-unused-vars
|
||
|
var res = []
|
||
|
, $$ = arguments
|
||
|
, $$len = $$.length
|
||
|
, i = 0
|
||
|
, code;
|
||
|
while($$len > i){
|
||
|
code = +$$[i++];
|
||
|
if(toIndex(code, 0x10ffff) !== code)throw RangeError(code + ' is not a valid code point');
|
||
|
res.push(code < 0x10000
|
||
|
? fromCharCode(code)
|
||
|
: fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00)
|
||
|
);
|
||
|
} return res.join('');
|
||
|
}
|
||
|
});
|