Skip to content

Instantly share code, notes, and snippets.

@rwaldron
Created August 15, 2010 19:45

Revisions

  1. rwaldron revised this gist Aug 15, 2010. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion auto-run-concat-test.js
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    $LAB.script("http://code.jquery.com/jquery.js").wait(function () {
    var tally = 0;

    jQuery(function () {
    function loopClickEmToRunEm() {
    setTimeout(function () {
    @@ -11,12 +13,15 @@ $LAB.script("http://code.jquery.com/jquery.js").wait(function () {
    jQuery('#button_3').trigger('click');
    }, 6000);
    setTimeout(function () {

    console.log(tally++);
    loopClickEmToRunEm();

    }, 9000);
    }
    setTimeout(function () {
    loopClickEmToRunEm();

    }, 1000);
    });
    });
    });
  2. rwaldron revised this gist Aug 15, 2010. 1 changed file with 3 additions and 4 deletions.
    7 changes: 3 additions & 4 deletions auto-run-concat-test.js
    Original file line number Diff line number Diff line change
    @@ -6,14 +6,13 @@ $LAB.script("http://code.jquery.com/jquery.js").wait(function () {
    }, 0);
    setTimeout(function () {
    jQuery('#button_2').trigger('click');
    }, 2000);
    }, 3000);
    setTimeout(function () {
    jQuery('#button_3').trigger('click');
    }, 3000);
    }, 6000);
    setTimeout(function () {
    loopClickEmToRunEm();

    }, 5000);
    }, 9000);
    }
    setTimeout(function () {
    loopClickEmToRunEm();
  3. rwaldron revised this gist Aug 15, 2010. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions auto-run-concat-test.js
    Original file line number Diff line number Diff line change
    @@ -2,13 +2,13 @@ $LAB.script("http://code.jquery.com/jquery.js").wait(function () {
    jQuery(function () {
    function loopClickEmToRunEm() {
    setTimeout(function () {
    jQuery('#button_1').trigger('click').delay(1000);
    jQuery('#button_1').trigger('click');
    }, 0);
    setTimeout(function () {
    jQuery('#button_2').trigger('click').delay(1000);
    jQuery('#button_2').trigger('click');
    }, 2000);
    setTimeout(function () {
    jQuery('#button_3').trigger('click').delay(1000);
    jQuery('#button_3').trigger('click');
    }, 3000);
    setTimeout(function () {
    loopClickEmToRunEm();
  4. rwaldron created this gist Aug 15, 2010.
    23 changes: 23 additions & 0 deletions auto-run-concat-test.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    $LAB.script("http://code.jquery.com/jquery.js").wait(function () {
    jQuery(function () {
    function loopClickEmToRunEm() {
    setTimeout(function () {
    jQuery('#button_1').trigger('click').delay(1000);
    }, 0);
    setTimeout(function () {
    jQuery('#button_2').trigger('click').delay(1000);
    }, 2000);
    setTimeout(function () {
    jQuery('#button_3').trigger('click').delay(1000);
    }, 3000);
    setTimeout(function () {
    loopClickEmToRunEm();

    }, 5000);
    }
    setTimeout(function () {
    loopClickEmToRunEm();

    }, 1000);
    });
    });