MediaWiki:Centralnotice-template-scervantes m p1 lg thermometer variables: Difference between revisions

Content deleted Content added
No edit summary
Tag: Central Notice
No edit summary
Tag: Central Notice
Line 1,216:
<div class="frb-donation-text">
<div>
<span class="frb-donation-text-bold">Our donation goal:</span><span class="frb-donation-goal-number">9.2 million</span>
</div>
<div class="frb-donation-days-left">Only 10 days left</div>
Line 2,004:
// initial percentage of the thermometer covered expressed as an integer e.g. 30 = 30%
var thermometerProgress = 30
// copy that will show after the 'Our donation goal:' copy, can be donors or donations
var todaysDonationGoal = '9.5 million'
var formContainerPosition = $('.frb-amounts').offset().top;
var donationGoalBanner = $('.frb-donation-goal-banner');
Line 2,015 ⟶ 2,017:
 
$(document).ready(function(){
$('.frb-donation-goal-number').text(todaysDonationGoal)
$('.frb-thermometer-bar').css("width", `${thermometerProgress}%`);
})