Skip to content

Instantly share code, notes, and snippets.

@erikhazzard
Created August 14, 2012 05:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save erikhazzard/3346705 to your computer and use it in GitHub Desktop.
Save erikhazzard/3346705 to your computer and use it in GitHub Desktop.
demo_init_1.js
(function() {
var _this = this;
ZABZO.init = function() {
ZABZO.setupZabzo({
svgId: "#zabzo-svg",
callback: function(){
ZABZO.updateProgress(50);
}
});
ZABZO.domEls.progress = $('#progress-val');
return ZABZO.setupDemo();
};
ZABZO.setupDemo = function() {
/* $('#task-small').click(function() {
return ZABZO.updateProgress(5);
});
$('#task-medium').click(function() {
return ZABZO.updateProgress(15);
});
$('#task-big').click(function() {
return ZABZO.updateProgress(30);
});
$('#task-100').click(function() {
return ZABZO.updateProgress(100);
});*/
$('#task-reset').click(function() {
return ZABZO.updateProgress(-1);
});
$('#animate').click(function() {
return ZABZO.animate();
});
return $('#updatePhil').click(function() {
return ZABZO.classProgress.updateClass('phil165', Math.random());
});
};
$(document).ready(function() {
ZABZO.init();
if ($('#class-progress-svg-wrapper').length > 0) {
return ZABZO.classProgress.init({
targetId: '#class-progress-svg-wrapper'
});
}
});
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment