fixes after revert
This commit is contained in:
parent
01cb207b65
commit
2d5e1f00e7
4 changed files with 24 additions and 9 deletions
|
@ -165,6 +165,7 @@ canvas {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
#list p {
|
#list p {
|
||||||
|
@ -284,10 +285,14 @@ canvas {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
#full article header p:nth-child(3) {
|
#full article header p:nth-child(2) {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#full article header p:nth-child(3) {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
#full .article {
|
#full .article {
|
||||||
clear: both;
|
clear: both;
|
||||||
padding-top: 1em;
|
padding-top: 1em;
|
||||||
|
|
|
@ -94,8 +94,8 @@
|
||||||
<article>
|
<article>
|
||||||
<header>
|
<header>
|
||||||
<p><span class="feed_title"></span> <span class="author"></span></p>
|
<p><span class="feed_title"></span> <span class="author"></span></p>
|
||||||
<h1><a class="title" href="" target="_blank"></a></h1>
|
|
||||||
<p><timedate class="date"></timedate></p>
|
<p><timedate class="date"></timedate></p>
|
||||||
|
<p><a class="link" href="" target="_blank"></a></p>
|
||||||
</header>
|
</header>
|
||||||
<div class="article"></div>
|
<div class="article"></div>
|
||||||
<div class="info swipe">
|
<div class="info swipe">
|
||||||
|
|
20
js/App.js
20
js/App.js
|
@ -7,6 +7,16 @@ function App() {
|
||||||
if(!color) color = "red";
|
if(!color) color = "red";
|
||||||
this.setColor(color);
|
this.setColor(color);
|
||||||
this.fontChange();
|
this.fontChange();
|
||||||
|
|
||||||
|
var _this = this;
|
||||||
|
|
||||||
|
window.onkeydown = function(e) {
|
||||||
|
if(e.keyCode == 39) {
|
||||||
|
_this.showNext();
|
||||||
|
} else if(e.keyCode == 37) {
|
||||||
|
_this.showPrevious();
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
App.prototype.authenticate = function() {
|
App.prototype.authenticate = function() {
|
||||||
|
@ -276,9 +286,9 @@ App.prototype.showFull = function(article, slide_back) {
|
||||||
|
|
||||||
$(page_id + " .date").innerHTML = (new Date(parseInt(article.updated, 10) * 1000)).toLocaleString();
|
$(page_id + " .date").innerHTML = (new Date(parseInt(article.updated, 10) * 1000)).toLocaleString();
|
||||||
|
|
||||||
var title = $(page_id + " .title");
|
var link = $(page_id + " .link");
|
||||||
title.innerHTML = article.title;
|
link.innerHTML = article.link;
|
||||||
title.href = article.link;
|
link.href = article.link;
|
||||||
|
|
||||||
$(page_id + " .feed_title").innerHTML = article.feed_title;
|
$(page_id + " .feed_title").innerHTML = article.feed_title;
|
||||||
|
|
||||||
|
@ -286,7 +296,9 @@ App.prototype.showFull = function(article, slide_back) {
|
||||||
if(article.author && article.author.length > 0)
|
if(article.author && article.author.length > 0)
|
||||||
$(page_id + " .author").innerHTML = "– " + article.author;
|
$(page_id + " .author").innerHTML = "– " + article.author;
|
||||||
|
|
||||||
$(page_id + " .article").innerHTML = article.content;
|
var content = article.content;
|
||||||
|
if(content.replace(/^\s+|\s+$/g,'').length == 0) content = article.title;
|
||||||
|
$(page_id + " .article").innerHTML = content;
|
||||||
$$(page_id + " .article a").forEach(function(o, i) {
|
$$(page_id + " .article a").forEach(function(o, i) {
|
||||||
o.target = "_blank";
|
o.target = "_blank";
|
||||||
});
|
});
|
||||||
|
|
|
@ -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: "all",
|
status: "unread",
|
||||||
limit: 100
|
limit: 100
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -134,8 +134,6 @@ 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