Skip to content

Commit

Permalink
now with loading spinner icon
Browse files Browse the repository at this point in the history
  • Loading branch information
lvreynoso committed Feb 2, 2019
1 parent a93325f commit c9792c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/scripts/midikov.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ async function generateMIDI(event) {
}
let titlebar = document.getElementById('songTitle')
// console.log(titlebar);
let spinner = new Image(64, 64)
let spinner = new Image(24, 24)
spinner.src = 'img/spinner.gif'
titlebar.appendChild(spinner);
titlebar.textContent = 'Creating song...'
titlebar.appendChild(spinner);
player.pause();
try {
const midiResponse = await axios.post('/generate', { category: category, order: order });
Expand Down

0 comments on commit c9792c3

Please sign in to comment.