1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00
pdf.js/examples/mobile-viewer
Tim van der Meij f1f58bbe67
Give all HTML button elements a type
The HTML button elements we use are all regular buttons that don't
submit form data to a server. According to
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#notes
those buttons should all have their type set to `button` explicitly, but
we only do that a handful of them. This commit fixes the issue by
consistently giving all our buttons the `button` type.

Co-authored-by: Calixte Denizet <calixte.denizet@gmail.com>
2024-07-30 18:49:18 +02:00
..
images Move B2G viewer to the examples folder 2016-07-27 17:31:52 +02:00
README.md Correct the instructions in the README file for examples/mobile-viewer 2018-07-08 15:32:06 +02:00
viewer.css Simplify the l10n-handling in the mobile-viewer example 2023-10-28 10:26:34 +02:00
viewer.html Give all HTML button elements a type 2024-07-30 18:49:18 +02:00
viewer.mjs Ensure that GenericL10n works if the locale files cannot be loaded 2024-01-31 14:07:11 +01:00

Overview

Example to demonstrate PDF.js library usage with a viewer optimized for mobile usage.

Getting started

Build PDF.js using gulp dist-install and run gulp server to start a web server. You can then work with the mobile viewer at http://localhost:8888/examples/mobile-viewer/viewer.html.

Refer to viewer.js for the source code of the mobile viewer.