diff --git a/css/screen.css b/css/screen.css index 398de7e..2b64d8c 100644 --- a/css/screen.css +++ b/css/screen.css @@ -3,6 +3,7 @@ html, body { padding: 0; min-height: 100%; font-family: FeuraSans, sans-serif; + overflow-x: hidden; } .red { background: #e74c3c; color: #ecf0f1; } @@ -110,7 +111,7 @@ section > footer { } img { - max-width: 100%; + max-width: 100% !important; height: auto; } diff --git a/js/App.js b/js/App.js index 9fc5c05..94e17a1 100644 --- a/js/App.js +++ b/js/App.js @@ -14,7 +14,34 @@ function App() { else _this.showPrevious(); }); + // FIXME move that code somewhere else + $(".info.swipe").ontouchend = function(e) { + localStorage.info_swipe = true; + $(".info.swipe").addClass("hidden"); + }; + + if(localStorage.info_swipe) { + $(".info.swipe").addClass("hidden"); + } + + + var request = window.navigator.mozApps.getSelf(); + request.onsuccess = function() { + $("#version").innerHTML = request.result.manifest.version; + } + +}; + +App.prototype.authenticate = function() { + +}; + +App.prototype.after_login = function() { + + var _this = this; + window.onhashchange = function(e) { + // do not reload page e.preventDefault(); e.stopPropagation(); @@ -49,29 +76,6 @@ function App() { window.location.hash = "#"; } - // FIXME move that code somewhere else - $(".info.swipe").ontouchend = function(e) { - localStorage.info_swipe = true; - $(".info.swipe").addClass("hidden"); - }; - - if(localStorage.info_swipe) { - $(".info.swipe").addClass("hidden"); - } - - - var request = window.navigator.mozApps.getSelf(); - request.onsuccess = function() { - $("#version").innerHTML = request.result.manifest.version; - } - -}; - -App.prototype.authenticate = function() { - -}; - -App.prototype.after_login = function() { this.changeToPage("#list"); this.ttrss = new TinyTinyRSS(this, localStorage.server_url, localStorage.session_id);