This is an automated email from the ASF dual-hosted git repository.
poorejc pushed a commit to branch FLAGON-434
in repository https://gitbox.apache.org/repos/asf/incubator-flagon-useralejs.git
The following commit(s) were added to refs/heads/FLAGON-434 by this push:
new e61a99f [FLAGON-443] added options API example to index.html
e61a99f is described below
commit e61a99f2765ad6c4ea621a0d9e86475d9f4fa095
Author: poorejc <[email protected]>
AuthorDate: Mon Aug 19 23:05:06 2019 -0400
[FLAGON-443] added options API example to index.html
---
example/index.html | 14 ++++++++------
example/index_form.html | 4 +++-
2 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/example/index.html b/example/index.html
index ddd4a66..b5c90a4 100644
--- a/example/index.html
+++ b/example/index.html
@@ -18,18 +18,20 @@ limitations under the License.
<head>
<title>UserAleJS - Example Page</title>
<script
- src="file:///{your file
path}/incubator-flagon-useralejs/build/userale-2.0.2.min.js"
+
src="file:///Users/jpoore/Documents/Apache_Flagon/test/incubator-flagon-useralejs/build/userale-2.0.2.min.js"
data-url="http://localhost:8000/"
data-user="example-user"
data-version="2.0.2"
data-tool="Apache UserALE.js Example"
></script>
-<!--
+<!--Try out the options function to change UserALE.js params@
<script type="text/javascript">
- const changeMe = "me";
- window.userale.options({
- "userId": changeMe
- })
+ const changeMe = "me";
+ window.userale.options({
+ "userId": changeMe,
+ "version": "4.2.0",
+ "sessionID": "42"
+ })
</script>
-->
<!--Try out a UserALE.js filter!
diff --git a/example/index_form.html b/example/index_form.html
index 33f8aa3..c526287 100644
--- a/example/index_form.html
+++ b/example/index_form.html
@@ -40,7 +40,9 @@ limitations under the License.
<script type="text/javascript">
const changeMe = "me";
window.userale.options({
- "userId": changeMe
+ "userId": changeMe,
+ "version": "4.0.2",
+ "sessionID": "4"
})
</script>