FeedMonkey HTML5 RSS Feed Reader

Check-in [2e9c3fd831]
Login

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

Overview
Comment:Use document element (base is deprecated). Use timeout (updating URL hash, among others, resets scroll position).
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/clean | trunk | master
Files: files | file ages | folders
SHA3-256:2e9c3fd83132097904390723c8dfc657fc145bcdc21c929129162c65e3b0cc99
User & Date: ajv-899-334-8894@vsta.org 2016-02-19 04:58:07
Context
2017-01-29
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
2016-02-19
04:58
Use document element (base is deprecated). Use timeout (updating URL hash, among others, resets scroll position). check-in: 2e9c3fd831 user: ajv-899-334-8894@vsta.org tags: origin/clean, trunk, master
2014-10-26
23:29
version bump Leaf check-in: 1d90e2c513 user: spam@jeenaparadies.net tags: origin/clean, trunk, 0.4.3
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to js/App.js.

33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
...
131
132
133
134
135
136
137


138
139
140
141




142

143



144

145
146
147
148
149
150
151
152
153
154
155
156

		// do not reload page
		e.preventDefault();
		e.stopPropagation();

		var url = window.location.hash;

		if(url == "#list") {
			_this.setCurrentRead();
			_this.changeToPage("#list");
		} else if(url == "#reload") {
			_this.reload();
		} else if(url == "#settings") {
			_this.changeToPage("#settings");
		} else if(url.indexOf("#color-") == 0) {
................................................................................
	this.login.log_out();
};

App.prototype.changeToPage = function(page) {

	// FIXME
	var active = $(".active");


	if(active.id == "list") {
		this.saveScrollTop = document.body.scrollTop;
	}





	if(page == "#list") {

		document.body.scrollTop = this.saveScrollTop;



	} else {

		window.scroll(0, 0);
	}

	active.removeClass("active");
	$(page).addClass("active");
};

App.prototype.setColor = function(color) {
	localStorage.color = color;
	document.body.className = "";
	document.body.addClass(color);
	this.updatePieChart();







|







 







>
>
|
|


>
>
>
>
|
>
|
>
>
>

>


<
<
<







33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
...
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157



158
159
160
161
162
163
164

		// do not reload page
		e.preventDefault();
		e.stopPropagation();

		var url = window.location.hash;

		if (url == "#list") {
			_this.setCurrentRead();
			_this.changeToPage("#list");
		} else if(url == "#reload") {
			_this.reload();
		} else if(url == "#settings") {
			_this.changeToPage("#settings");
		} else if(url.indexOf("#color-") == 0) {
................................................................................
	this.login.log_out();
};

App.prototype.changeToPage = function(page) {

	// FIXME
	var active = $(".active");

	// Save old position
	if (active.id == "list") {
		this.saveScrollTop = document.documentElement.scrollTop;
	}

	// Switch displays
	active.removeClass("active");
	$(page).addClass("active");

	if (page == "#list") {
		var elem = document.documentElement;
		var posit = this.saveScrollTop;

		// Restore old position, after display settles
		setTimeout(function() { elem.scrollTop = posit; }, 500);
	} else {
		// Else top of page
		window.scroll(0, 0);
	}



};

App.prototype.setColor = function(color) {
	localStorage.color = color;
	document.body.className = "";
	document.body.addClass(color);
	this.updatePieChart();