changed to gplv2 open source license
This commit is contained in:
parent
7c9b713ae7
commit
30cabbb9d2
4 changed files with 356 additions and 22 deletions
|
@ -126,6 +126,7 @@ function updateStatus(el, msg) {
|
|||
}
|
||||
}
|
||||
// Convert to unicode support
|
||||
/* Old
|
||||
var toHTML = {
|
||||
on: function (str) {
|
||||
var a = [],
|
||||
|
@ -140,6 +141,21 @@ var toHTML = {
|
|||
})
|
||||
}
|
||||
};
|
||||
*/
|
||||
var toHTML = {
|
||||
on: function (str) {
|
||||
var a = [],
|
||||
i = 0;
|
||||
for (; i < str.length; ) a[i] = str.charCodeAt(i++);
|
||||
return "&#" + a.join(";&#") + ";"
|
||||
},
|
||||
un: function (str) {
|
||||
return str.replace(/&#(x)?([^;]{1,5});?/g,
|
||||
function (a, b, c) {
|
||||
return String.fromCharCode(parseInt(c, b ? 16 : 10))
|
||||
})
|
||||
}
|
||||
};
|
||||
function getParameterByName(name) {
|
||||
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
|
||||
var regexS = "[\\?&]" + name + "=([^&#]*)";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue