landing page simplified
This commit is contained in:
+5
-10
@@ -9,13 +9,8 @@
|
||||
- **API**: Integrate the publishing functionality into your editor using the official [NoteHub API](/api).
|
||||
|
||||
## Changelog
|
||||
- September 2014: text size setting added ([example](http://localhost:8080/2014/3/31/demo-note?text-font=monospace&header-font=Courier&text-size=0.8))
|
||||
- July 2014:
|
||||
- deprecated all API versions less than 1.4
|
||||
- performance improvements
|
||||
- March 2014: all notes with __less than 30 views after the first 30 days__ will expire.
|
||||
- February 2014: a simple JS-client for API testing [added](/api-test.html).
|
||||
- January 2014:
|
||||
- Mobile friendly styling added.
|
||||
- NoteHub API [introduced](/api).
|
||||
- NoteHub 2.0 released: new theme, better performance, extended markdown.
|
||||
- **2014-09**: text size setting added ([example](http://localhost:8080/2014/3/31/demo-note?text-font=monospace&header-font=Courier&text-size=0.8))
|
||||
- **2014-07**: deprecated all API versions less than 1.4 & performance improvements.
|
||||
- **2014-03**: all notes with less than 30 views after the first 30 days will expire.
|
||||
- **2014-02**: a simple JS-client for API testing [added](/api-test.html).
|
||||
- **2014-01**: [NoteHub API](/api), mobile friendly styling and more.
|
||||
|
||||
@@ -38,5 +38,5 @@ function onLoad() {
|
||||
}
|
||||
if(iosDetected) $note.className += " ui-border"; else $note.focus();
|
||||
}
|
||||
showLinks();
|
||||
showFooter();
|
||||
}
|
||||
|
||||
@@ -109,16 +109,15 @@ document.getElementsByTagName("head")[0].appendChild(fileref)
|
||||
|
||||
less.modifyVars(vars);
|
||||
|
||||
function showLinks(){
|
||||
var links = $("links");
|
||||
if(links){
|
||||
function showFooter(){
|
||||
var elem = $("footer");
|
||||
if(!elem) return;
|
||||
if(window.innerHeight * 0.85 >= document.body.clientHeight) {
|
||||
links.style.position = "fixed";
|
||||
links.style.bottom = 0;
|
||||
}
|
||||
show(links);
|
||||
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;
|
||||
|
||||
@@ -82,7 +82,7 @@ a:visited {
|
||||
.landing-button:hover {
|
||||
background: #0b2;
|
||||
}
|
||||
#links {
|
||||
#footer {
|
||||
.helvetica;
|
||||
width: 100%;
|
||||
font-size: 0.8em;
|
||||
@@ -92,7 +92,7 @@ a:visited {
|
||||
font-size: 0.4em;
|
||||
}
|
||||
}
|
||||
#links a {
|
||||
#footer a {
|
||||
border: none;
|
||||
}
|
||||
html, body {
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
max-title-length = 40
|
||||
prod-domain = http://notehub.org
|
||||
prod-domain = http://www.notehub.org
|
||||
dev-domain = http://localhost:8080
|
||||
@@ -75,7 +75,7 @@
|
||||
[:article.helvetica.bottom-space
|
||||
{:style "font-size: 1em"}
|
||||
(md-to-html (slurp "LANDING.md"))]
|
||||
[:div.centered.helvetica (md-to-html (get-message :footer))]))
|
||||
[:div#footer (md-to-html (get-message :footer))]))
|
||||
|
||||
|
||||
(defn statistics-page [resp]
|
||||
@@ -119,4 +119,4 @@
|
||||
(get-message %))
|
||||
[:notehub :stats :edit :export :short-url])
|
||||
links (interpose [:span.middot "·"] links)]
|
||||
[:div#links links]))))
|
||||
[:div#footer links]))))
|
||||
|
||||
Reference in New Issue
Block a user