landing page simplified

This commit is contained in:
Christian Müller
2014-09-28 11:53:30 +02:00
parent 63b048b0c6
commit 2aebc91b6e
6 changed files with 19 additions and 25 deletions
+1 -1
View File
@@ -38,5 +38,5 @@ function onLoad() {
}
if(iosDetected) $note.className += " ui-border"; else $note.focus();
}
showLinks();
showFooter();
}
+8 -9
View File
@@ -109,16 +109,15 @@ document.getElementsByTagName("head")[0].appendChild(fileref)
less.modifyVars(vars);
function showLinks(){
var links = $("links");
if(links){
if(window.innerHeight * 0.85 >= document.body.clientHeight) {
links.style.position = "fixed";
links.style.bottom = 0;
}
show(links);
function showFooter(){
var elem = $("footer");
if(!elem) return;
if(window.innerHeight * 0.85 >= document.body.clientHeight) {
elem.style.position = "fixed";
elem.style.bottom = 0;
}
show(elem);
}
// for the case if main.js is not loaded
var onLoad = showLinks;
var onLoad = showFooter;