Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add view option? #36

Closed
hmmlsystems opened this issue Jun 27, 2019 · 2 comments
Closed

Add view option? #36

hmmlsystems opened this issue Jun 27, 2019 · 2 comments
Assignees

Comments

@hmmlsystems
Copy link

Great project! Keep up the great work!

Would love to see an option (https://github.com/subugoe/tify#options) added where you can set the view on load. The user can still change it but it would be nice to set it on load vs. right now it loads by default with the Info view.

Maybe:

view (string, default:”info”): Controls what view is displayed. By default, TIFY displays the Info view. Possible values: pages ({"view":"thumbnails"}), info ({"view":"info"}), export ({"view":"export"}), help ({"view":"help"}), or “” ({"view":""}).

Thanks.

Currently I’m using this JavaScript as a work around:

function updateURL() {
			if (history.pushState) {
				  var newurl = window.location.protocol + "//" + window.location.host + window.location.pathname + '?tify={"view":"thumbnails"}';
				  window.history.pushState({path:newurl},'',newurl);
			  }
		}
@t11r
Copy link
Contributor

t11r commented Sep 26, 2019

Hi @hmmlsystems, on behalf of the previous maintainers at @subugoe, let me express my apologies for the delayed answer. I took over a few days ago, and things will improve now.

Nice idea, it will be implemented it in one of the upcoming releases.

@t11r
Copy link
Contributor

t11r commented Apr 7, 2022

The latest release has an option view to set the initial view.

@t11r t11r closed this as completed Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants