diff --git a/index.htm b/index.htm index 7bbe99d..e1601a9 100644 --- a/index.htm +++ b/index.htm @@ -11,6 +11,8 @@ + + @@ -22,32 +24,30 @@ -
+
-
-
-

Telegraph Manager

-

- An easy way to manage your articles, profile and views for telegra.ph. -

-
+
+

Telegraph Manager

+

+ An easy way to manage your articles, profile and views for telegra.ph. +

-
+
Your browser doesn't support JavaScript and/or HTML5 LocalStorage. Please update your browser and enable JavaScript.
-
+

create an account

-
+

login with token

@@ -55,7 +55,7 @@
-
+

click to login to telegra.ph

@@ -68,7 +68,7 @@
-
+
@@ -93,17 +93,17 @@
-
+
back
-
+

change account information

-
+

logout

Warning! To be able log into this account again you will need this token: diff --git a/main.js b/main.js index 7bd78ae..4128998 100644 --- a/main.js +++ b/main.js @@ -21,7 +21,7 @@ $(document).ready(function(){ // Window scroll for loading more pages window.onscroll = function(){ // Trigger loading of more pages when there are still cards to scroll - var triggerElement = $(".card:nth-last-child("+numberOfPagesToLoad+")"); + var triggerElement = $(".article:nth-last-child("+numberOfPagesToLoad+")"); if(isScrolledIntoView(triggerElement)){ if(canLoadMore){ @@ -237,7 +237,7 @@ function loadPages(){ // Should the text read 'view' or 'views' var s = this.views == 1 ? "" : "s"; - pageList.append("

"+this.title+"

"+this.views+" view"+s+"

"+this.description+"

"); + pageList.append("

"+this.title+"

"+this.views+" view"+s+"

"+this.description+"

"); }); diff --git a/style.css b/style.css index 58ff2a5..a5774b9 100644 --- a/style.css +++ b/style.css @@ -1,48 +1,8 @@ -* { - margin: 0; - padding: 0; - font-family: 'Roboto', sans-serif; -} - -a, a:visited{ - color: #000; -} - -body{ - background-color: #eee; -} - -p{ - margin: 1em; -} - /* Initially hide all screens, except for screen-nosupport */ #screen-login, #screen-login-telegraph, #screen-main, #screen-edit { display: none; } -.card{ - display: block; - background-color: #fff; - border-radius: 3px; - box-shadow: 0px 2px 4px #777; - padding: 1em; - margin-top: 1em; - margin-left: 1em; - margin-right: 1em; -} -a.card{ - cursor: pointer; -} -#wrapper{ - max-width: 600px; - margin: 1em auto; -} -.card.blank{ - background: none; - box-shadow: none; -} - /* error popup */ .error{ z-index: 2; @@ -51,6 +11,11 @@ a.card{ transition: 200ms; color: #B71C1C; font-weight: bold; + background-color: #fff; + box-shadow: 0 2px 4px #777; + margin: 1em; + padding: 1em; + border-radius: 3px; } .error.active{ top: 0; @@ -60,7 +25,6 @@ a.card{ #user-info{ text-align: center; - margin: 3em; } #user-info > *{ display: block; @@ -81,22 +45,9 @@ a.card{ content: ")"; } -#page-list a{ - display: block; - text-decoration: none; - transition: 300ms; -} -#page-list a:hover{ - box-shadow: 0px 4px 8px #777; - transform: translateY(-2px); -} #page-list h1{ - margin-bottom: 0.4em; font-size: 1.5em; } -#page-list p{ - margin-bottom: 0.5em; -} #fab{ display: block; @@ -153,7 +104,6 @@ a.card{ input, button{ display: block; width: 100%; - margin-top: 1em; border-radius: 3px; padding: 3px; border: 1px solid #bbb;