Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@emedina
Created April 27, 2011 11:25
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 emedina/944081 to your computer and use it in GitHub Desktop.
Save emedina/944081 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
//<![CDATA[
// Initialize a new counter
var myCounter;
var urlCounter = "/cuestamenos/counter";
jQuery.ajax({type:'POST', url:urlCounter,success:function(data,textStatus){ myCounter = new flipCounter('thecounter', {value: data, auto:false}); },error:function(XMLHttpRequest,textStatus,errorThrown){}});
//]]>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment