Created
June 30, 2016 15:31
-
-
Save samkeeleyong/f1af432f1888cdb0f8dd669af611a071 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cardNumber = 93; | |
if (allCardsMapping[cardNumber] != undefined) { | |
var randomNumber = Math.floor(Math.random() * (allCardsMapping[cardNumber].length - 0 + 1)) + 0; | |
var fileName = allCardsMapping[cardNumber][randomNumber]; | |
var audioFileUrl = "https://icebluenoshunkan.kirara.ca/va2/" + fileName + ".mp3"; | |
new Audio(audioFileUrl).play(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment