diff --git a/www/conservancy/static/js/conservancy.js b/www/conservancy/static/js/conservancy.js index 1441b695808642e9a0e30288ee17886957ffbf71..fb6fea3418d9a9d0f2609862d8a9c7363486be0f 100644 --- a/www/conservancy/static/js/conservancy.js +++ b/www/conservancy/static/js/conservancy.js @@ -19,38 +19,6 @@ $(document).ready(function() { $('source', video).last().on('error', showVideoInnerHTML); }); - /* Set up the fundraiser multiprogressbar near the top of each page. */ - var siteFinalGoal = $('span#site-fundraiser-final-goal').text(); - var noCommaSiteFinalGoal = parseInt(siteFinalGoal.replace(/,/g, "")); - var siteMatchCount = $('span#site-fundraiser-match-count').text(); - var noCommaSiteMatchCount = parseInt(siteMatchCount.replace(/,/g, "")); - if (! noCommaSiteMatchCount) { - noCommaSiteMatchCount = "0"; - } - var barParts = [{ - value: (noCommaSiteMatchCount / noCommaSiteFinalGoal) * 100, - text: "$" + noCommaSiteMatchCount.toLocaleString() + " matched!", - barClass: "progress", - textClass: "soFarText", - }]; - if (barParts[0].value < 100) { - var matchesLeft = noCommaSiteFinalGoal - noCommaSiteMatchCount; - barParts.push({ - value: 100, - text: "$" + matchesLeft.toLocaleString() + " to go!", - barClass: "final-goal", - textClass: "goalText", - }); - } - $('#siteprogressbar').empty().multiprogressbar({parts: barParts}); - - $('span#fundraiser-percentage').css({ 'color' : 'green', - 'font-weight' : 'bold', - 'float' : 'right', - 'margin-right' : '40%', - 'margin-top' : '2.5%', - 'text-align' : 'inherit'}); - /* Set up donation form elements used across the whole site. */ $('.toggle-content').hide(); $('.toggle-control') @@ -69,23 +37,6 @@ $(document).ready(function() { $control.html($control.attr('data-text')); } }); - $('a.donate-now') - .addClass('clickable') - .bind('click', function() { - var $control = $('#donate-box'); - var $otherTextControl = $('.donate-sidebar'); - - setTimeout(function() { $control.find('.toggle-content').slideUp(100); - $control.toggleClass('expanded'); - $control.find('.toggle-content').slideDown(800).fadeOut(10); - $otherTextControl.find('.donate-box-highlight').fadeOut(100); - }, 300); - setTimeout(function() { $control.find('.toggle-content').fadeIn(2000); - $otherTextControl.find('.donate-box-highlight') - .css({'font-weight': 'bold', 'font-size' : '110%' }); - $otherTextControl.find('.donate-box-highlight').fadeIn(10000); - }, 500); - }); $('input[name=on0]:radio').on('change', function(event, duration) { var $input = $(this);