first steps to indienotes
This commit is contained in:
parent
2267e54cd4
commit
69c5c270ad
3 changed files with 24 additions and 4 deletions
|
@ -188,6 +188,7 @@ canvas {
|
||||||
|
|
||||||
#list li {
|
#list li {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
min-height: 3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.red #list li { border-bottom: 1px solid #c0392b; }
|
.red #list li { border-bottom: 1px solid #c0392b; }
|
||||||
|
@ -199,7 +200,7 @@ canvas {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 7px;
|
right: 7px;
|
||||||
top: 0.1em;
|
top: 0;
|
||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
font-size: 3em;
|
font-size: 3em;
|
||||||
font-family: "Entypo";
|
font-family: "Entypo";
|
||||||
|
@ -248,6 +249,7 @@ canvas {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#full .wrapper {
|
#full .wrapper {
|
||||||
|
@ -278,6 +280,20 @@ canvas {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#full article header p:nth-child(1) {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
#full article header p:nth-child(3) {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
#full .article {
|
||||||
|
clear: both;
|
||||||
|
padding-top: 1em;
|
||||||
|
font-size: 1.3em;
|
||||||
|
}
|
||||||
|
|
||||||
#full footer.bar {
|
#full footer.bar {
|
||||||
margin: auto 0 0 0;
|
margin: auto 0 0 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
|
@ -182,8 +182,10 @@ App.prototype.populateList = function() {
|
||||||
html_str += "<li"+ (article.unread ? " class='unread'" : "") +">";
|
html_str += "<li"+ (article.unread ? " class='unread'" : "") +">";
|
||||||
html_str += "<a href='#full-"+i+"'>";
|
html_str += "<a href='#full-"+i+"'>";
|
||||||
html_str += "<p class='title'>" + article.feed_title + "</p>";
|
html_str += "<p class='title'>" + article.feed_title + "</p>";
|
||||||
html_str += "<h2>" + article.title + "</h2>";
|
var content = article.content.stripHTML();
|
||||||
if(article.excerpt) html_str += "<p class='excerpt'>" + article.excerpt + "</p>";
|
if(content.replace(/^\s+|\s+$/g,'').length == 0) content = article.title;
|
||||||
|
html_str += "<h2>" + content + "</h2>";
|
||||||
|
//if(article.excerpt) html_str += "<p class='excerpt'>" + article.excerpt + "</p>";
|
||||||
html_str += "</a></li>";
|
html_str += "</a></li>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ Pond.prototype.reload = function(callback) {
|
||||||
|
|
||||||
Pond.prototype.getUnreadFeeds = function(callback, skip) {
|
Pond.prototype.getUnreadFeeds = function(callback, skip) {
|
||||||
var options = {
|
var options = {
|
||||||
status: "unread",
|
status: "all",
|
||||||
limit: 100
|
limit: 100
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -134,6 +134,8 @@ Pond.prototype.normalizeArticle = function(article) {
|
||||||
|
|
||||||
var timestamp = new Date(article.published_at).getTime() / 1000;
|
var timestamp = new Date(article.published_at).getTime() / 1000;
|
||||||
|
|
||||||
|
console.log(article.read)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id: article.id,
|
id: article.id,
|
||||||
guid_hash: article.url + article.id,
|
guid_hash: article.url + article.id,
|
||||||
|
|
Reference in a new issue