Skip to content

Commit 060923c

Browse files
author
AJ Keller
committed
ADD: example
1 parent 1d16d06 commit 060923c

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

examples/basic/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7+
<title>OpenBCI Utilities</title>
8+
</head>
9+
<body>
10+
<button id="connect">
11+
Print something
12+
</button>
13+
<pre>See data in the console</pre>
14+
<script src="../../dist/openbciutilities.var.js"></script>
15+
<script src="./index.js"></script>
16+
</body>
17+
</html>

examples/basic/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
const onConnectClick = async () => {
3+
const OpenBCIUtilties = new OpenBCIUtilities();
4+
console.log(OpenBCIUtilties.Constants.isString("taco"));
5+
};
6+
7+
document.getElementById('connect')
8+
.addEventListener('click', onConnectClick);

0 commit comments

Comments
 (0)