Finally viewmode.html render.

This commit is contained in:
Paulo Gustavo Veiga
2014-03-05 00:14:28 -03:00
parent 5710d77bd5
commit dea5b727ac
33 changed files with 158 additions and 159 deletions

View File

@@ -57,13 +57,13 @@
function q(a, b, c) {
var d,e = b.href ? b.href.replace(/\?.*$/, "") : "",f = "less:" + (b.title || p(e));
(d = document.getElementById(f)) === null && (d = document.createElement("style"),d.type = "text/css",d.media = b.media || "screen",d.id = f,document.getElementsByTagName("head")[0].appendChild(d));
(d = document.getElementById(f)) === null && (d = document.createElement("style"),d.type = "text/css",d.media = b.media || "screen",d.id = f,document.getElementsByTagName("head")[0].append(d));
if (d.styleSheet)try {
d.styleSheet.cssText = a
} catch(g) {
throw new Error("Couldn't reassign styleSheet.cssText.")
} else(function(a) {
d.childNodes.length > 0 ? d.firstChild.nodeValue !== a.nodeValue && d.replaceChild(a, d.firstChild) : d.appendChild(a)
d.childNodes.length > 0 ? d.firstChild.nodeValue !== a.nodeValue && d.replaceChild(a, d.firstChild) : d.append(a)
})(document.createTextNode(a));
c && h && (u("saving " + e + " to cache."),h.setItem(e, a),h.setItem(e + ":timestamp", c))
}