Warning: Undefined array key "HTTP_ACCEPT_ENCODING" in /home/speedca/public_html/combine.php on line 86

Warning: Undefined array key "HTTP_ACCEPT_ENCODING" in /home/speedca/public_html/combine.php on line 87

Warning: Cannot modify header information - headers already sent by (output started at /home/speedca/public_html/combine.php:86) in /home/speedca/public_html/combine.php on line 114

Warning: Cannot modify header information - headers already sent by (output started at /home/speedca/public_html/combine.php:86) in /home/speedca/public_html/combine.php on line 115
/* * Tinacious Design goalProgress jQuery plugin * Plugin URL: https://github.com/tinacious/goalProgress * * Christina Holly (Tinacious Design) * http://tinaciousdesign.com * */ !function($){ $.fn.extend({ goalProgress: function(options) { var defaults = { goalAmount: 100, currentAmount: 50, speed: 2000, textBefore: '', textAfter: '', milestoneNumber: 70, milestoneClass: 'almost-full', callback: function() {} } var options = $.extend(defaults, options); return this.each(function(){ var obj = $(this); // Collect and sanitize user input var goalAmountParsed = parseInt(defaults.goalAmount); var currentAmountParsed = parseInt(defaults.currentAmount); // Calculate size of the progress bar var percentage = (currentAmountParsed / goalAmountParsed) * 100; var milestoneNumberClass = (percentage > defaults.milestoneNumber) ? ' ' + defaults.milestoneClass : '' // Generate the HTML var progressBar = '
' + defaults.textBefore + $.number(currentAmountParsed) + defaults.textAfter + '
'; var progressBarWrapped = '
' + progressBar + '
'; // Append to the target obj.append(progressBarWrapped); // Ready var rendered = obj.find('div.progressBar'); // Remove Spaces rendered.each(function() { $(this).html($(this).text().replace(/\s/g, ' ')); }); // Animate! rendered.animate({width: percentage +'%'}, defaults.speed, defaults.callback); if(typeof callback == 'function') { callback.call(this) } }); } }); }(window.jQuery);