aboutsummaryrefslogtreecommitdiff
path: root/webAO/components/audioChannels.js
diff options
context:
space:
mode:
authorcaleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu>2022-03-23 17:36:01 -0400
committercaleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu>2022-03-23 17:36:01 -0400
commite28fcc59a76772eae64ed480919cddb60a3b5fce (patch)
treedb7ed6cf18f928fae734f3cc9430bb2b220ba2a0 /webAO/components/audioChannels.js
parenta7facd6e825e3a2d60752df0b8526482b19a12de (diff)
parentffa23343e0a0badd9e50a005359fdb79efead995 (diff)
Merge branch 'master' of https://github.com/AttorneyOnline/webAO into multipleBackgroundTypes
Diffstat (limited to 'webAO/components/audioChannels.js')
-rw-r--r--webAO/components/audioChannels.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/webAO/components/audioChannels.js b/webAO/components/audioChannels.js
new file mode 100644
index 0000000..1979653
--- /dev/null
+++ b/webAO/components/audioChannels.js
@@ -0,0 +1,13 @@
+/**
+ *
+ * @param {number} amountOfChannels Amount of Blips to put on page
+ */
+const createAudioChannels = (amountOfChannels) => {
+ for (let i = 0; i < amountOfChannels; i++) {
+ const audioChannel = document.createElement('audio')
+ audioChannel.setAttribute('class', 'audioChannel')
+ document.body.appendChild(audioChannel)
+ }
+}
+createAudioChannels(4)
+export default createAudioChannels