Last active
August 29, 2015 14:17
-
-
Save DaveVoyles/1d71cf78f8c98e589527 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
/*x-radial-buttons.html*/ | |
var currentAccent = 'en-US'; | |
var accentArr = ['en-US', 'en-GB', 'es-ES']; | |
getCurrentAccent: function () { | |
return currentAccent; | |
}, | |
/* Main.js*/ | |
//@Caller: X-radial-buttons web component | |
//Setting the accent based on the radial button the user selected | |
pokemonApp.changeAccent = function (accent) { | |
var currentAccent = radialButtons.getCurrentAccent(); | |
console.log("current accent is: " + currentAccent + ". " + "Changing accent to: " + accent); | |
var Newaccent = playerElement.setAttribute("accent", accent); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment