expansion.js 555 B

123456789101112131415161718192021
  1. var nextWord = (function() {
  2. var wordArray = [
  3. 'Gitote Is Tasty',
  4. 'Get In Touch',
  5. 'Get It Tested',
  6. 'GNU Interactive Tools',
  7. 'Goods In Transit',
  8. 'Geek In Training',
  9. 'Goddess In Training',
  10. 'Gentleman In Training',
  11. 'Geologist In Training',
  12. 'Geeks In Town',
  13. 'General Information Test'
  14. ];
  15. var copy;
  16. return function() {
  17. if (!copy || !copy.length) copy = wordArray.slice();
  18. return copy.splice(Math.random() * copy.length | 0, 1);
  19. }
  20. }());