From ff72803167b18c2b6df01e518f4a7d3f6e749f65 Mon Sep 17 00:00:00 2001 From: nelabiernat <60930527+nelabiernat@users.noreply.github.com> Date: Thu, 23 Nov 2023 17:12:07 +0100 Subject: [PATCH 01/15] added API Sample --- samples/api/README.md | 119 +++++++++++++++++++++++++++++++++++++++++ samples/api/config.yml | 35 ++++++++++++ samples/api/index.html | 31 +++++++++++ samples/api/logo.png | Bin 0 -> 65650 bytes samples/api/script.js | 50 +++++++++++++++++ samples/api/style.css | 46 ++++++++++++++++ 6 files changed, 281 insertions(+) create mode 100644 samples/api/README.md create mode 100644 samples/api/config.yml create mode 100644 samples/api/index.html create mode 100644 samples/api/logo.png create mode 100644 samples/api/script.js create mode 100644 samples/api/style.css diff --git a/samples/api/README.md b/samples/api/README.md new file mode 100644 index 0000000..c9fba86 --- /dev/null +++ b/samples/api/README.md @@ -0,0 +1,119 @@ +# JS API Sample + +FSI Viewer contains an extensive JS API with methods and callbacks that you can use. +You can find [an overview of all available parameters in the corresponding documentation](https://docs.neptunelabs.com/docs/fsi-viewer/js-api/public-methods). + +This example is a simple demonstration of how to use these methods and callbacks. + +To display zoom with FSI Viewer, all you need to do is add the following script to the top of your page +to the top of your web page: + +```html +