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

zoom in and zoom out is not working #12

Closed
npapastefanakis opened this issue Jan 8, 2014 · 3 comments
Closed

zoom in and zoom out is not working #12

npapastefanakis opened this issue Jan 8, 2014 · 3 comments

Comments

@npapastefanakis
Copy link

i am trying to add in index.html the zoom in and zoom out button.

The code is:

<button id = "zoomIn" class = "toolbarButton zoomIn" title = "zoomIn"></button>
<button id = "zoomOut" class = "toolbarButton zoomOut" title = "zoomOut"></button>

It doesn't work.

Thanks

@npapastefanakis
Copy link
Author

The viewer.js has a document.getElementById("download") in it. If we delete the element the script crashes and this is the reason it is not working.

Before add the event listener to the toolbar, I suggest to check if the element exists in the DOM. This way we can remove / add whatever button we need to show.

Kind regards (this was not an issue)

Nice work guys

@ghost
Copy link

ghost commented Jan 25, 2014

How can I remove the download button ?

@adityab
Copy link
Member

adityab commented Feb 3, 2014

Hello!

If you wish to remove the download button from your copy of ViewerJS, you could simply add extra CSS to hide the element with ID "download".

@adityab adityab closed this as completed Feb 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants