Example 10 - Marks
To stop each spin individually, it is required to generate startSpin on each spin individually.
  • 1
  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 0
Example 11 - Stop time
Set stop time for a spin (Suitable for long list)
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
Spin time:
Stop time:
View Code
$('#btn-example11-start').click(function() {
  $('#example11 ul').playSpin({
    time: $('#txt-example11-time').val(),
    useStopTime: true,
    stopTime: $('#txt-example11-stoptime').val(),
  });
});
Extra Example - Ajax
Here is an extra coding example, for instance, ajax to server, generate random numbers and save into database, return the numbers.
(Required basic javascript and server side language, eg: PHP) View Code
$('#btn-click').click(function() {
  $.ajax({
    url: // url
    data: // pass data or leave it
  })
  .done(function(numbers) {
    $('#slotmachine').playSpin({
      endNum: numbers,
    });
  });
});
Buy Me a Coffee