-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMach1React-Test.html
42 lines (39 loc) · 1.66 KB
/
Mach1React-Test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Mach1 Spatial APIs | React Component Example</title>
<style>
body { color: black; }
</style>
</head>
<body>
<h1>Mach1 Spatial APIs</h1>
<script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js" crossorigin></script>
<h2>Mach1Decode React Example</h2>
<div id="decode-root"></div>
<script src="js/Mach1Decode.js"></script>
<script src="js/M1DecodeReactComponent.js"></script>
<script>
ReactDOM.render(React.createElement(M1DecodeReactComponent), document.getElementById('decode-root'));
</script>
<h4>Look at those Coefficients!</h4>
<h2>Mach1Encode React Example</h2>
<div id="encode-root"></div>
<script src="js/Mach1Encode.js"></script>
<script src="js/M1EncodeReactComponent.js"></script>
<script>
ReactDOM.render(React.createElement(M1EncodeReactComponent), document.getElementById('encode-root'));
</script>
<h4>Look at those Coefficients!</h4>
<h2>Mach1DecodePositional React Example</h2>
<div id="decode-positional-root"></div>
<script src="js/Mach1DecodePositional.js"></script>
<script src="js/M1DecodePositionalReactComponent.js"></script>
<script>
ReactDOM.render(React.createElement(M1DecodePositionalReactComponent), document.getElementById('decode-positional-root'));
</script>
<h5>We will expand upon this demo very soon</h5>
</body>
</html>