fixed problem where links wouldn't be clickable

This commit is contained in:
Jeena Paradies 2012-11-22 11:34:26 +01:00
parent 201b0a46ba
commit d39b643844

View file

@ -55,20 +55,17 @@ String.prototype.endsWith = function(suffix) {
return this.match(suffix+"$") == suffix; return this.match(suffix+"$") == suffix;
}; };
var entityMap = { var __entityMap = {
"&": "&", "&": "&",
"<": "&lt;", "<": "&lt;",
">": "&gt;", ">": "&gt;"
'"': '&quot;', };
"'": '&#39;',
"/": '&#x2F;'
};
String.prototype.escapeHTML = function() { String.prototype.escapeHTML = function() {
return String(this).replace(/[&<>"'\/]/g, function (s) { return String(this).replace(/[&<>]/g, function (s) {
return entityMap[s]; return __entityMap[s];
}); });
} }
var console = { var console = {
log: function(s) { log: function(s) {
@ -108,11 +105,18 @@ var console = {
} }
}; };
function loadPlugin(url) { function loadPlugin(js_url, css_url) {
if (js_url) {
}
var plugin = document.createElement("script"); var plugin = document.createElement("script");
plugin.type = "text/javascript"; plugin.type = "text/javascript";
plugin.src = url; plugin.src = js_url;
document.getElementsByTagName("head")[0].appendChild(plugin); document.getElementsByTagName("head")[0].appendChild(plugin);
if (css_url != null) {
}
} }
function debug(string) { function debug(string) {