-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
24 lines (17 loc) · 1.05 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { letter_driver, groove_driver } from './src/pages/letters.js';
import { cube_driver, cube_player } from './src/pages/cubes.js';
import { audio_driver } from './src/shared/audio.js';
import { state } from './src/shared/common.js';
const audioContext = new (window.AudioContext || window.webkitAudioContext)();
state.updateState({audioContext: audioContext});
audio_driver();
document.getElementById('dice-driver').addEventListener('click', letter_driver);
document.getElementById('groove-driver').addEventListener('click', groove_driver);
document.getElementById("cubes-driver").addEventListener('click', cube_driver);
document.getElementById("cubes-player").addEventListener('click', cube_player);
document.getElementById("enableHits").addEventListener("change", function() {
document.getElementById('minHits').disabled = document.getElementById('enableHits').checked
});
document.getElementById("enableCombo").addEventListener("change", function() {
document.getElementById('maxCombo').disabled = document.getElementById('enableCombo').checked
});