I am using a JavaScript library to identify swipe gestures.
The documentation describes how to refer to the library. In HTML it should be something as followed:
<html>
<head>
<script src="dist/slideout.min.js"></script>
<style>
</head>
This should create the following object:
I tried the following approaches in XPages to load the library:
<head>
<script src="dist/slideout.min.js"></script>
<style>
with the library as an imported file.
<xp:this.resources>
<xp:script src="/slideout.js" clientSide="true"></xp:script>
</xp:this.resources>
with the library as a client js library (original code imported in the library)
and finally the library code in a script block.
All these three methods seem to fail while the object is not being created.
What should I do to correct this?