Advertisement
CoffeeCode

JS RunFlick

Nov 25th, 2013
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.           Flick.prototype.runFlick = function() {
  2.             var bDelay, dDelay, pDelay, pImg, randP, randT, tDelay, tImg;
  3.             tImg = this.targetImg;
  4.             pImg = this.primeImgMult;
  5.             dDelay = this.dotDelay;
  6.             bDelay = this.blankDelay;
  7.             pDelay = this.primeDelay;
  8.             tDelay = this.targetDelay;
  9.             randP = --this.primeCountDown;
  10.             randT = randP;
  11.             console.log("primeCountDown ist = " + this.primeCountDown);
  12.             this.resultLogger.setShowingPrime(pImg[randP].src);
  13.             this.resultLogger.setShowingTarget(tImg[randT].src);
  14.             return $("#imgNoise").hide(0, function() {
  15.               return $("#imgDot").fadeIn(0).delay(dDelay).fadeOut(0, function() {
  16.                 return $("#imgBlank").fadeIn(0).delay(bDelay).fadeOut(0, function() {
  17.                   $("#imgPrime").attr("src", pImg[randP].src);
  18.                   return $("#imgPrime").fadeIn(0).delay(pDelay).fadeOut(0, function() {
  19.                     return $("#imgBlank").fadeIn(0).delay(bDelay).fadeOut(0, function() {
  20.                       $("#imgTarget").attr("src", tImg[randT].src);
  21.                       return $("#imgTarget").fadeIn(0).delay(tDelay).fadeOut(0, function() {
  22.                         return $("#imgNoise").show();
  23.                       });
  24.                     });
  25.                   });
  26.                 });
  27.               });
  28.             });
  29.           };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement