Sha256: 6b571407dab55d82768717d32dd828cd2705bff551cc8b1c31ae9ae20baf18ed

Contents?: true

Size: 601 Bytes

Versions: 5

Compression:

Stored size: 601 Bytes

Contents

button#underscoreTrigger Count to 10
span#underscoreFeedback style="color: green"

javascript:
  $(function() {
    $('#underscoreTrigger').click(function() {
      var numbers = [1,2,3,4,5,6,7,8,9,10];
      var delay = 300;
      var last = _.last(numbers);
      var feedback = $('#underscoreFeedback');

      feedback.empty();

      _.forEach(numbers, function(i) {
        setTimeout(function() {
          feedback.append(i);
          feedback.append(i == last ? '!' : ' ');
        },delay*(i-1));
      });

      setTimeout(function() { feedback.fadeOut(); }, delay*last);

    });
  });

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
app_drone-0.8.6 lib/app_drone/drones/underscore/flair.html.slim.erb~
app_drone-0.8.5 lib/app_drone/drones/underscore/flair.html.slim.erb~
app_drone-0.8.4alpha lib/app_drone/drones/underscore/flair.html.slim.erb~
app_drone-0.8.3 lib/app_drone/drones/underscore/flair.html.slim.erb~
app_drone-0.8.2 lib/app_drone/drones/underscore/flair.html.slim.erb~