Browse Source

links moved to the page bottom

master
Christian Mueller 12 years ago
parent
commit
c0ac559608
  1. 7
      resources/public/js/main.js
  2. 0
      resources/public/styles/main.less
  3. 2
      src/NoteHub/views/pages.clj

7
resources/public/js/main.js

@ -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;
}
} }

0
resources/public/style.less → resources/public/styles/main.less

2
src/NoteHub/views/pages.clj

@ -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")

Loading…
Cancel
Save