7 FSI Pages JS
135
NeptuneLabs - FSI Viewer
Adding the script
<head>
[…]
//adding the fsipages.js script
<script src="viewer/applications/pages/js/fsipages.js"
type="text/javascript"></script>
</head>
II) Add a <fsi-pages> tag to the part of your document body where the catalog should
be displayed. Add the desired dimension and the image directory to it:
Integrate FSI Pages JS
<body>
[…]
<fsi-pages width="100%" height="100%" dir="/images/catalog/">
//here you can place the fallback content (or image) in case the
browser
// cannot display the viewer, e,g,:
<b>Sorry</b>, your browser is not capable of running FSI Pages JS
</fsi-pages>
Parameters are added to the <fsi-pages> tag. Note that you can as well use FSI Pagesr
configuration files :