Created
July 23, 2015 12:51
-
-
Save osrecio/ee94ae91c8e732639743 to your computer and use it in GitHub Desktop.
Add plus/minus collect click example...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mierda; | |
var clickNumber = 0; | |
console.clear(); | |
$(".box").click(function () { | |
clickNumber++; | |
clearTimeout(mierda); | |
mierda = setTimeout(function(){ console.log("Ajax Function: "+clickNumber);$('.box').removeClass('red').addClass('blue') }, 300); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment