-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraph.js
40 lines (32 loc) · 1.32 KB
/
graph.js
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
/* <div class="row graph-area center-align">
<div class="col s6">
<button class="card-title waves-effect waves-teal btn-flat">Temperature</button>
<canvas id="myCanvas" width="150" height="100" style="border:1px solid #000000;"></canvas>
</div> */
// var dropdowns = document.querySelectorAll('.dropdown-trigger');
// console.log(dropdowns);
// for (var i = 0; i < dropdowns.length; i++){
// M.Dropdown.init(dropdowns[i]);
// }
// dropdown
// document.addEventListener('DOMContentLoaded', function() {
// var elems = document.querySelectorAll('.collapsible');
// var instances = M.Collapsible.init(elems, options);
// });
// // Or with jQuery
// $(document).ready(function(){
// $('.collapsible').collapsible();
// });
// keyboard event - draft work
// document.addEventListener('keyup', (event) => {
// const keyName = event.key;
// // console.log(event);
// // console.log(event.key);
// // key - 'Enter', code - 'Enter', keyCode - 13
// if (keyName === 'Enter') {
// // do sth
// // return;
// console.log('Hey key');
// console.log(event.key);
// }
// }, false);