Skip to content

Instantly share code, notes, and snippets.

@DaveVoyles
Last active August 29, 2015 14:17
Show Gist options
  • Save DaveVoyles/1d71cf78f8c98e589527 to your computer and use it in GitHub Desktop.
Save DaveVoyles/1d71cf78f8c98e589527 to your computer and use it in GitHub Desktop.
/*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