Commit 71f4ba99 authored by Balasankar C's avatar Balasankar C
Browse files

Adding offline donations

parent efbdbf88
...@@ -71,13 +71,14 @@ ...@@ -71,13 +71,14 @@
<aside id="meter" class="pull-right"> <aside id="meter" class="pull-right">
<div class="wrap"> <div class="wrap">
<p class="time-left"><i class="icon-time"></i> <span><img src="img/loader.gif" alt="Loading..." /></span></p> <p class="time-left"><i class="icon-time"></i> <span><img src="img/loader.gif" alt="Loading..." /></span></p>
<p class="money-raised"><span><img src="img/loader.gif" alt="Loading..." /></span></p> <p class="money-raised"><span><img src="img/loader.gif" alt="Loading..." /></span>*</p>
<div class="progress-bar"> <div class="progress-bar">
<div class="indicator"> <div class="indicator">
</div> </div>
</div> </div>
<p class="money-goal">Raised of €<span><img src="img/loader.gif" alt="Loading..." /></span> goal</p> <p class="money-goal">Raised of €<span><img src="img/loader.gif" alt="Loading..." /></span> goal</p>
</div> *Including offline donations
</div>
<a href="http://www.indiegogo.com/projects/keep-diaspora-service-at-poddery-com-live" class="donate">Donate Now</a> <a href="http://www.indiegogo.com/projects/keep-diaspora-service-at-poddery-com-live" class="donate">Donate Now</a>
</aside> </aside>
</article> </article>
......
...@@ -16,13 +16,16 @@ $(document).ready(function() { ...@@ -16,13 +16,16 @@ $(document).ready(function() {
money_raised =$('#big-goal.money-raised',extracted_content) money_raised =$('#big-goal.money-raised',extracted_content)
.text() .text()
.match(regex)[0]; .match(regex)[0];
money_raised=parseFloat(money_raised)+20.458;
money_goal = $('.money-raised.goal',extracted_content) money_goal = $('.money-raised.goal',extracted_content)
.text() .text()
.match(regex)[0]; .match(regex)[0];
time_left = $('.days-left',extracted_content).html(); time_left = $('.days-left',extracted_content).html();
progress_width = parseFloat(money_raised.replace('.',''))/parseFloat(money_goal.replace('.',''))*100+"%"; progress_width = parseFloat(money_raised/parseFloat(money_goal.replace('.','')))*100+"%";
} catch(e) { } catch(e) {
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment