body#ttrssDigest {
- background : #fafafa;
color : black;
font-family : sans-serif;
font-size : 12px;
margin : 0px;
+ background : url("images/tile.png");
}
a {
#content {
position : absolute;
left : 0px;
- top : 30px;
+ top : 0px;
right : 0px;
bottom : 0px;
-webkit-transition: left 0.2s linear, right 0.2s linear;
bottom : 0px;
top : 30px;
background : white;
- border-width : 0px 0px 0px 2px;
- border-color : #e0e0e0;
- border-style : solid;
z-index : -1;
opacity : 0;
-webkit-transition: opacity 0.2s linear;
bottom : 0px;
font-size : 14px;
overflow : auto;
- border-width : 0px 4px 0px 0px;
- border-color : #e0e0e0;
+ border-width : 0px 3px 0px 0px;
+ border-color : #88b0f0;
border-style : solid;
+ background : #eee;
}
#feeds ul#feeds-content img {
#feeds ul#feeds-content div.unread-ctr {
color : #d0d0d0;
padding-left : 10px;
- display : inline;
+ float : right;
}
#feeds ul#feeds-content li {
padding : 10px;
clear : both;
cursor : pointer;
- border-width : 1px 0px 1px 0px;
- border-color : transparent;
- border-style : solid;
- color : gray;
+ color : #303030;
white-space : nowrap;
}
#feeds ul#feeds-content li.selected {
background : white;
- border-color : #e0e0e0;
- border-style : solid;
}
#feeds ul#feeds-content {
list-style-type : none;
font-weight : bold;
- margin : 10px 10px 10px 10px;
+ margin : 0px;
padding : 0px;
}
#headlines {
font-size : 14px;
position : absolute;
- left : 302px;
- top : 0px;
+ left : 303px;
+ top : 30px;
bottom : 0px;
right : 0px;
overflow : auto;
+ border-width : 0px 3px 0px 0px;
+ border-style : solid;
+ border-color : #88b0f0;
}
#headlines h1 a {
padding : 10px;
color : gray;
clear : left;
- background : #eeeeee;
border-width : 0px 0px 1px 0px;
border-style : solid;
border-color : #e0e0e0;
+ background : #eee;
}
#headlines ul#headlines-content a.title {
#headlines ul#headlines-content div.info {
font-size : 11px;
+ margin-top : 5px;
}
#headlines ul#headlines-content div.info a {
else
publ_part = "<img title='"+__("Publish article")+"' onclick=\"toggle_pub(this, "+article.id+")\" src='images/pub_unset.png'>";
- var tmp = "<div id=\"toolbar\">" +
- "<a target=\"_blank\" href=\""+article.url+"\">" + __("Original article") + "</a>" +
- "<div style=\"float : right\"><a href=\"#\" onclick=\"close_article()\">" +
- __("Close this panel") + "</a></div></div>" +
- "<div id=\"inner\">" +
+ var tmp = "<div id=\"inner\">" +
"<div id=\"ops\">" +
mark_part +
publ_part +
"</div>" +
- "<h1>" + article.title + "</h1>" +
+ "<h1>" + "<a target=\"_blank\" href=\""+article.url+"\">" +
+ article.title + "</a>" + "</h1>" +
"<div id=\"tags\">" +
tags_part +
+ "<div style=\"float : right\"><a href=\"#\" onclick=\"close_article()\">" +
+ __("close") + "</a></div>" +
"</div>" +
article.content + "</div>";
icon_part = "<img src='" + get_feed_icon(feed) + "'/>";
+ var title = (feed.title.length > 30) ?
+ feed.title.substring(0, 30) + "…" :
+ feed.title;
+
var tmp_html = "<li id=\"F-"+feed.id+"\" onclick=\"viewfeed("+feed.id+")\">" +
- icon_part + feed.title +
+ icon_part + title +
"<div class='unread-ctr'>" + "<span class=\"unread\">" + feed.unread + "</span>" +
"</div>" + "</li>";
"<div class='body'>" +
"<div onclick=\"view("+article.id+")\" class='excerpt'>" +
article.excerpt + "</div>" +
- "<div class='info'>";
+ "<div onclick=\"view("+article.id+")\" class='info'>";
/* tmp_html += "<a href=\#\" onclick=\"viewfeed("+feed.id+")\">" +
feed.title + "</a> " + " @ "; */
parse_feeds(transport);
Element.hide("overlay");
+ document.onkeydown = hotkey_handler;
+
window.setTimeout('viewfeed(-4)', 100);
_update_timeout = window.setTimeout('update()', 5*1000);
} });
exception_error("toggle_select_article", e);
}
}
+
+function hotkey_handler(e) {
+ try {
+
+ if (e.target.nodeName == "INPUT" || e.target.nodeName == "TEXTAREA") return;
+
+ var keycode = false;
+ var shift_key = false;
+
+ var cmdline = $('cmdline');
+
+ try {
+ shift_key = e.shiftKey;
+ } catch (e) {
+
+ }
+
+ if (window.event) {
+ keycode = window.event.keyCode;
+ } else if (e) {
+ keycode = e.which;
+ }
+
+ var keychar = String.fromCharCode(keycode);
+
+ if (keycode == 16) return; // ignore lone shift
+ if (keycode == 17) return; // ignore lone ctrl
+
+ switch (keycode) {
+ case 27: // esc
+ close_article();
+ break;
+ default:
+ console.log("KP: CODE=" + keycode + " CHAR=" + keychar);
+ }
+
+
+ } catch (e) {
+ exception_error("hotkey_handler", e);
+ }
+}