spiegel-keyman/web/docs/engine/guide/examples/__first-example.html
2025-01-27 15:34:39 +07:00

26 lines
No EOL
796 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>KeymanWeb - A First Example</title>
<!-- Start of Code -->
<script src='https://s.keyman.com/kmw/engine/17.0.331/keymanweb.js'></script>
<script>var kmw = keyman;</script>
<script src='https://s.keyman.com/kmw/engine/17.0.331/kmwuitoggle.js'></script>
<script>
(function() {
keyman.init({attachType:'auto'}).then(function() {
keyman.addKeyboards('@en'); // Loads default English keyboard from Keyman Cloud (CDN)
keyman.addKeyboards('@th'); // Loads default Thai keyboard from Keyman Cloud (CDN)
});
})(keyman);
</script>
</head>
<body>
<h1>First Example</h1>
<p>Click me and type: <input placeholder="Hello World"/></p>
<a href="index">Back to Document</a>
</body>
</html>