login only with pond now

This commit is contained in:
Jeena 2014-02-21 11:01:11 +01:00
parent 69c5c270ad
commit 5a0950a8ee
6 changed files with 39 additions and 36 deletions

View file

@ -7,6 +7,16 @@ function App() {
if(!color) color = "red";
this.setColor(color);
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() {
@ -15,10 +25,13 @@ App.prototype.authenticate = function() {
App.prototype.after_login = function(backend) {
/*
var request = window.navigator.mozApps.getSelf();
request.onsuccess = function() {
$("#version").innerHTML = request.result.manifest.version;
}
if(request.result) {
$("#version").innerHTML = request.result.manifest.version;
}
}*/
var _this = this;
@ -276,8 +289,8 @@ App.prototype.showFull = function(article, slide_back) {
$(page_id + " .date").innerHTML = (new Date(parseInt(article.updated, 10) * 1000)).toLocaleString();
var title = $(page_id + " .title");
title.innerHTML = article.title;
var title = $(page_id + " .link");
title.innerHTML = article.link;
title.href = article.link;
$(page_id + " .feed_title").innerHTML = article.feed_title;
@ -286,7 +299,10 @@ App.prototype.showFull = function(article, slide_back) {
if(article.author && article.author.length > 0)
$(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.urlify();
$$(page_id + " .article a").forEach(function(o, i) {
o.target = "_blank";
});