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