2 FSI Viewer JS
21
NeptuneLabs - FSI Viewer
object to the constructor:
Example:
<head>
[…]
//adding the fsiviewer.js script
<script src="js/fsiviewer.js" type="text/javascript"></script>
</head>
<body>
[…]
//Adding parameters directly to the tag:
<fsi-viewer width="500" height="600" src="/images/sample.jpg"
debug="true" skin="silver">
</fsi-viewer>
debug
Description
display debug and status information in the JavaScript
console
Syntax
Boolean
Default
false
Context
FSI Viewer JS
Display debug and status information in the browser's JavaScript console.
headers
Description
display debug and status information in the JavaScript
console
Syntax
String
Default
"cors"
Context
FSI Viewer JS
The "&headers=" parameter to use for image requests.
The default value "cors" ensures cors compatibility for cross-origin scenarios.