Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Commit 5537fb5

Browse files
author
benoit.fonty
committed
addded missing example
1 parent fe0db84 commit 5537fb5

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!DOCTYPE html><html lang="en"><head>
2+
<!-- Those meta make the capture of handwriting inputs easier on mobile devices -->
3+
<meta charset="UTF-8">
4+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
5+
<meta name="apple-mobile-web-app-capable" content="yes">
6+
<meta name="mobile-web-app-capable" content="yes">
7+
<meta name="HandheldFriendly" content="true">
8+
9+
<title>Get started</title>
10+
11+
<link rel="stylesheet" href="../examples.css">
12+
13+
<script src="../../../../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
14+
<script type="module" src="../../../../myscript-text-web.js"></script>
15+
<style>
16+
.description {
17+
margin: 12px;
18+
}
19+
</style>
20+
</head>
21+
22+
<body>
23+
<input type="text" class="input-field" id="lexicon" data-type="text/plain" placeholder="Add your own lexicon (space-separated) and press &quot;Send&quot;">
24+
<button class="classic-btn" id="reinit">Send</button>
25+
<myscript-text-web scheme="https" host="webdemoapi.myscript.com" applicationkey="515131ab-35fa-411c-bb4d-3917e00faf60" hmackey="54b2ca8a-6752-469d-87dd-553bb450e9ad" touch-action="none">
26+
</myscript-text-web>
27+
<script>window.addEventListener('load', () => {
28+
const textElement = document.querySelector('myscript-text-web');
29+
const reinitButton = document.getElementById('reinit');
30+
const lexicon = document.getElementById('lexicon');
31+
reinitButton.addEventListener('click', function () {
32+
const values = lexicon.value;
33+
textElement.unloaded = true;
34+
textElement.customlexicon = values.split(' ');
35+
textElement.unloaded = false;
36+
});
37+
});</script>
38+
39+
40+
</body></html>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy