FeedMonkey HTML5 RSS Feed Reader

Check-in [d9dcf7e0ea]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make collapsing feed article lists
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/clean | trunk | master
Files: files | file ages | folders
SHA3-256:d9dcf7e0ea3343ded74f1df65bfbdfee223d4c221c89f8f83d63176846b36c52
User & Date: ajv-899-334-8894@vsta.org 2017-01-29 05:13:19
Context
2017-01-29
17:03
Allow for successive growing of "unread_articles". Move helper function adjacent to method which uses it. check-in: b91e2dbdd2 user: ajv-899-334-8894@vsta.org tags: origin/clean, trunk, master
05:13
Make collapsing feed article lists check-in: d9dcf7e0ea user: ajv-899-334-8894@vsta.org tags: origin/clean, trunk, master
04:27
Group posts by feed name. Step #1 of getting collapsing feeds so it's easier to swim through larger feeds. check-in: 7dde4dacdd user: ajv-899-334-8894@vsta.org tags: origin/clean, trunk, master
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to js/App.js.

256
257
258
259
260
261
262


263
264


265
266
267
268
269
270
271

	// Now build the article list; it's a <ul> of feeds,
	//  then sub-<ul> of articles in that feed
	var html_str = "";
	var artidx = 0;
	for (i = 0; i < byfeed.length; ++i) {
	    var feed = byfeed[i];


	    html_str += "<li>" + feed[0].feed_title;
	    html_str += "<ul>";


	    for (var j = 0; j < feed.length; ++j) {
		article = ua[artidx];
		html_str += "<li"+ (article.unread ?
		    " class='unread'" : "") +">";
		html_str += "<a href='#full-" + artidx + "'>";
		html_str += "<h2>" + article.title + "</h2>";
		if (article.excerpt) {







>
>
|
<
>
>







256
257
258
259
260
261
262
263
264
265

266
267
268
269
270
271
272
273
274

	// Now build the article list; it's a <ul> of feeds,
	//  then sub-<ul> of articles in that feed
	var html_str = "";
	var artidx = 0;
	for (i = 0; i < byfeed.length; ++i) {
	    var feed = byfeed[i];
	    html_str += '<li><span' +
		' onclick="return(toggleFeed(' + i.toString() + '));"' +
		'>' + feed[0].feed_title + '</span>';

	    var feedid = '"feed' + i.toString() + '"';
	    html_str += '<ul id=' + feedid + ' style="display: none;">'
	    for (var j = 0; j < feed.length; ++j) {
		article = ua[artidx];
		html_str += "<li"+ (article.unread ?
		    " class='unread'" : "") +">";
		html_str += "<a href='#full-" + artidx + "'>";
		html_str += "<h2>" + article.title + "</h2>";
		if (article.excerpt) {

Changes to js/application.js.

3
4
5
6
7
8
9









10
11
12
13
14
15
16
		obj = JSON.stringify(obj);
	else {
		obj = arguments.join(' ')
	}
	
	alert(obj)
}










function $(obj) {
	if(typeof obj == "string") return document.querySelector(obj);
	else return obj;
}

function $$(obj) {







>
>
>
>
>
>
>
>
>







3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
		obj = JSON.stringify(obj);
	else {
		obj = arguments.join(' ')
	}
	
	alert(obj)
}

function toggleFeed(feedid) {
    var e = document.getElementById("feed" + feedid.toString());
    if (e.style.display == "none") {
	e.style.display = "";
    } else {
	e.style.display = "none";
    }
}

function $(obj) {
	if(typeof obj == "string") return document.querySelector(obj);
	else return obj;
}

function $$(obj) {