Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxguist committed Apr 21, 2024
1 parent 0a736d3 commit 9aacd2a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,12 @@ <h1>Voice Accounting</h1>
<audio id='B' preload='auto' controls style='display:none'> <source src='region/B.mp3' type='audio/mpeg'> Your browser does not support the audio element. </audio>
<audio id='D' preload='auto' controls style='display:none'> <source src='region/D.mp3' type='audio/mpeg'> Your browser does not support the audio element. </audio>
<audio id='E' preload='auto' controls style='display:none'> <source src='region/E.mp3' type='audio/mpeg'> Your browser does not support the audio element. </audio>
<audio id='MI' preload='auto' controls style='display:none'> <source src='region/MI.mp3' type='audio/mpeg'> Your browser does not support the audio element. </audio>
<audio id='-' preload='auto' controls style='display:none'> <source src='region/-.mp3' type='audio/mpeg'> Your browser does not support the audio element. </audio>
<audio id='MU' preload='auto' controls style='display:none'> <source src='region/MU.mp3' type='audio/mpeg'> Your browser does not support the audio element. </audio>
<audio id='NL' preload='auto' controls style='display:none'> <source src='region/NL.mp3' type='audio/mpeg'> Your browser does not support the audio element. </audio>
<audio id='P' preload='auto' controls style='display:none'> <source src='region/P.mp3' type='audio/mpeg'> Your browser does not support the audio element. </audio>
<audio id='R' preload='auto' controls style='display:none'> <source src='region/R.mp3' type='audio/mpeg'> Your browser does not support the audio element. </audio>
<audio id='-' preload='auto' controls style='display:none'> <source src='region/-.mp3' type='audio/mpeg'> Your browser does not support the audio element. </audio>
<audio id='`' preload='auto' controls style='display:none'> <source src='region/`.mp3' type='audio/mpeg'> Your browser does not support the audio element. </audio>



Expand Down
Binary file modified region/-.mp3
Binary file not shown.
Binary file removed region/MI.mp3
Binary file not shown.
Binary file added region/`.mp3
Binary file not shown.
6 changes: 3 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function doFunction(testxi){
// Create an array of audio file URLs
// const audioFiles = ['audio1.mp3', 'audio2.mp3', 'audio3.mp3'];

const audioFiles = Array.from(testxi.toString().replaceAll('.', '-'), (x) => 'region/' + x + '.mp3')
const audioFiles = Array.from(testxi.toString().replaceAll('.', '`'), (x) => 'region/' + x + '.mp3')

// Create an array to store audio elements
const audioElements = [];
Expand Down Expand Up @@ -572,7 +572,7 @@ document.onkeydown = function (e) {

} else if (e.key == ".") {
event.preventDefault();
document.getElementById('-').play();
document.getElementById('`').play();
document.getElementById("period").click();
} else if (e.key == "+") {
event.preventDefault();
Expand All @@ -584,7 +584,7 @@ document.onkeydown = function (e) {
document.getElementById("op-add").click();
} else if (e.key == "-") {
event.preventDefault();
document.getElementById('MI').play();
document.getElementById('-').play();
document.getElementById("op-subtract").click();
} else if (e.key == "*") {
event.preventDefault();
Expand Down

0 comments on commit 9aacd2a

Please sign in to comment.