Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrianrodriguez/9120029 to your computer and use it in GitHub Desktop.
Save adrianrodriguez/9120029 to your computer and use it in GitHub Desktop.
var interaction = (function($, window, undefined) {
// These are some global variables.
var example_a = '';
// This is a standard document ready from jQuery. It allows the script to self-start.
$(document).ready(function(){
interaction.init();
var total = setInterval(function(){
interaction.totals();
}, 50);
});
return {
init: function(){
// These things happen when the page is loaded
interaction.clicks();
},
clicks: function(){
// Watch some clicks here
},
totals: function() {
if ($('.PO_total').length) {
var text = $('.PO_total').text();
console.log(text);
clearInterval(total);
}
}
};
})(jQuery, this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment