Advertisement
BrU32

Untitled

May 16th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. <script>
  2. function RollSlott(){
  3. var Bar=parseFloat(635.0);
  4. var Barr=parseFloat(645.0);
  5.  
  6. document.body.innerHTML=(Bar+":"+Barr);
  7. var PlayLen=21.1;
  8. if(Bar!=0){
  9. Bar--
  10. }else if(Bar!=21.9){
  11. Bar++
  12. }
  13. var context = new AudioContext();
  14. oscillator=context.createOscillator();
  15. oscillator.type = 'sine';
  16. oscillator.frequency.value = Bar;
  17. oscillator.connect(context.destination);
  18. oscillator.start(0);
  19. oscillator.stop(PlayLen);
  20. oscillator.disconnect(PlayLen);
  21. }
  22. </script>
  23. <button onclick="script:
  24. var rolls=10;
  25. while(rolls!=0){
  26. rolls--;
  27. var Timer1 = setTimeout ('RollSlott();',0.0001);
  28. }">Roll Static Test Now!!</button>
  29. <script>
  30. function RollSlot(){
  31. var Bar=parseFloat(630.0);
  32. var Barr=parseFloat(645.0);
  33.  
  34. document.body.innerHTML=(Bar+":"+Barr);
  35. var PlayLen=80
  36. if(Bar!=0){
  37. Bar--
  38. }else if(Bar!=645.0){
  39. Bar++
  40. }
  41. var context = new AudioContext();
  42. oscillator=context.createOscillator();
  43. oscillator.type = 'sine';
  44. oscillator.frequency.value = Bar;
  45. oscillator.connect(context.destination);
  46. oscillator.start(0);
  47. oscillator.stop(PlayLen);
  48. oscillator.disconnect(PlayLen);
  49. }
  50. </script>
  51. <button onclick="script:
  52. var rolls=10;
  53. while(rolls!=0){
  54. rolls--;
  55. var Timer1 = setTimeout ('RollSlot();',0.0001);
  56. }">Roll Static Test Now!!</button>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement