links moved to the page bottom

This commit is contained in:
Christian Mueller
2014-01-26 09:56:56 +01:00
parent 4a395fe167
commit c0ac559608
3 changed files with 8 additions and 1 deletions
+7
View File
@@ -48,4 +48,11 @@ function onLoad() {
elem.innerHTML = md2html(child.value); elem.innerHTML = md2html(child.value);
show(elem); show(elem);
} }
if(window.innerHeight >= document.body.clientHeight) {
var links = $("links");
links.style.position = "fixed";
links.style.bottom = 0;
}
} }
+1 -1
View File
@@ -29,7 +29,7 @@
[:title (print-str (get-message :name) "—" title)] [:title (print-str (get-message :name) "—" title)]
[:meta {:charset "UTF-8"}] [:meta {:charset "UTF-8"}]
[:meta {:name "viewport" :content "width=device-width, initial-scale=1.0"}] [:meta {:name "viewport" :content "width=device-width, initial-scale=1.0"}]
[:link {:rel "stylesheet/less" :type "text/css" :href "/style.less"}] [:link {:rel "stylesheet/less" :type "text/css" :href "/styles/main.less"}]
(html (html
(include-js "/js/less.js") (include-js "/js/less.js")
(include-js "/js/themes.js") (include-js "/js/themes.js")