The viewer can be hosted inside an iframe to keep its scripts and styles isolated from the host page.

Embed a viewer page in an iframe.
<iframe style="width: 800px; height: 400px"
        src="Using the Full-Screen Mode in the Viewer.html"></iframe>

How it works. The viewer lives in its own document, so it integrates into any host page without sharing its stylesheet or global scope.
In the screenshot below you can see the result of the sample code:

Showing the Viewer in iframe

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.