Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

randomizer.js 1005B

123456789101112131415161718192021222324252627282930
  1. (function (){
  2. //list of tips
  3. var items = [
  4. "You can pin participants by clicking on their thumbnails.",// jshint ignore:line
  5. "You can tell others you have something to say by using the \"Raise Hand\" feature",// jshint ignore:line
  6. "You can learn about key shortcuts by pressing Shift+?",// jshint ignore:line
  7. "You can learn more about the state of everyone's connection by hovering on the bars in their thumbnail",// jshint ignore:line
  8. "You can hide all thumbnails by using the button in the bottom right corner"// jshint ignore:line
  9. ];
  10. /**
  11. * Creates a randomiser.
  12. * Put in in Global scope
  13. */
  14. window.randomizer = {
  15. /**
  16. * Get a random integer between 0 and items length.
  17. *
  18. * @return {string} a random integer
  19. */
  20. getItem: function (){
  21. var l = items.length - 1;
  22. var n = Math.round(Math.random() * l);
  23. return items[n];
  24. }
  25. };
  26. })();