styling delay fixed

This commit is contained in:
Christian Müller
2014-12-23 17:12:37 +01:00
parent bacfee7512
commit ab41d82cf5
+2 -1
View File
@@ -108,8 +108,9 @@ fileref.setAttribute("type", "text/css")
fileref.setAttribute("href", fontURL) fileref.setAttribute("href", fontURL)
document.getElementsByTagName("head")[0].appendChild(fileref) document.getElementsByTagName("head")[0].appendChild(fileref)
less.modifyVars(vars);
function showFooter(){ function showFooter(){
less.modifyVars(vars);
var elem = $("footer"); var elem = $("footer");
if(!elem) return; if(!elem) return;
if(window.innerHeight * 0.85 >= document.body.clientHeight) { if(window.innerHeight * 0.85 >= document.body.clientHeight) {