// source --> https://www.die-bruecke-gz.de/wp-content/themes/twentyten-die-bruecke/lib/goalProgress/goalProgress-die-bruecke.min.js?ver=1.2 
/*!
 *  Tinacious Design goalProgress jQuery plugin
 *  Plugin URL: https://github.com/tinacious/goalProgress
 *
 *  Christina Holly (Tinacious Design)
 *  http://tinaciousdesign.com
 *
 *  Thomas Kessler - www.kessler-design.com
 *  adjusted for "Die Brücke e.V."
 */
(function(a){a.fn.extend({goalProgress:function(b){var c={goalAmount:100,currentAmount:50,speed:1000,textBefore:"",textAfter:"",countdownAmount:0};var b=a.extend(c,b);return this.each(function(){var f=a(this);var k=parseInt(c.goalAmount);var e=parseInt(c.currentAmount);var g=parseInt(c.speed);var m=(e/k)*100;function j(n){return"<span>"+(c.textBefore+n+c.textAfter).replace(/\s/g,"&nbsp;")+"</span>"}var h='<div class="progressBar">'+j(0)+"</div>";var l='<div class="progressBarBg">'+j(0)+"</div>";var i='<div class="goalProgress">'+h+l+"</div>";f.append(i);if(c.countdownAmount==0){f.find("div.progressBar, div.progressBarBg").html(j(e));var d=f.find("div.progressBar");d.animate({width:m+"%"},g)}else{f.find("div.progressBar").animate({width:m+"%"},{duration:g,step:function(n,o){f.find("div.progressBar, div.progressBarBg").html(j(Math.round(n/100*k)))},complete:function(){f.find("div.progressBar, div.progressBarBg").html(j(e))}})}})}})})(jQuery);
/*!
 * Thomas Kessler - www.kessler-design.com
 */
(function(a){a(document).ready(function(){if(typeof spendenbarometerParams!=="undefined"){function b(g,e){var f=g.css("padding-"+e);return parseInt((f=="")?"0":f)}var d=spendenbarometerParams;var c=(d.spendenbarometer)?jQuery.parseJSON(d.spendenbarometer):null;jQuery.each(c,function(f,e){a("#spendenbarometer_"+e.id).goalProgress(e);var g=a("#spendenbarometer_"+e.id+" div.progressBar");a("#spendenbarometer_"+e.id+" div.goalProgress").height(a("#spendenbarometer_"+e.id+" div.progressBar").height()+b(g,"top")+b(g,"bottom"))})}})})(jQuery);