This example embeds AJAX-ZOOM image viewer into HTML with the help of the JavaScript "loader" file.
This JavaScript loader file is the only file that needs to be present as JavaScript tag in your HTML. Other than this file, you would need to specify which image, images or 360-product view you want to load in the AJAX-ZOOM viewer. The loader file looks for missing JavaScript and CSS files and preloads them on-the-fly. After all required files preload, the loader script requests AJAX-ZOOM viewer with specified content and places it into an HTML container. You must define the ID of the responsive element where you want the viewer to display at last.
Besides iframes, this is the easiest way to start using AJAX-ZOOM.
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
<!-- embed-responsive and embed-responsive-item are bootstrap css classes
but you do not need to use bootstrap and could easily reproduce this proportional container without css libraries
-->
<div class="embed-responsive" style="padding-bottom: 90%;">
<div id="axZmPlayerContainer" class="embed-responsive-item" style="max-height: 94vh; max-height: calc(100vh - 50px); border: #eee 1px solid;">
Loading, please wait...
</div>
</div>
<script type="text/javascript">
var ajaxZoom = {};
ajaxZoom.path = "../axZm/"; // Path to the axZm folder
// Parameter passed to AJAX-ZOOM which defines what to load into the gallery
// Description of possible predefined parameters is best viewed in example27.php
ajaxZoom.parameter = "zoomDir=furniture";
// "example" parameter defines a set of configuration parameters
// which can be found in /axZm/zoomConfigCustom.inc.php
// you can extend it, change or define your own configuration set
ajaxZoom.parameter += "&example=11";
ajaxZoom.divID = "axZmPlayerContainer"; // The id of the Div where ajax-zoom has to be inserted
ajaxZoom.responsive = true; // Embed responsive
// other parameters inside /axZm/jquery.axZm.loader.js
</script>
<script type="text/javascript" src="../axZm/jquery.axZm.loader.js"></script>