Merge branch 'master' of github.com:Rushilwiz/tj2023

This commit is contained in:
Rushil Umaretiya 2020-10-30 14:26:59 -04:00
commit b5222c2c38
2 changed files with 5 additions and 5 deletions

View File

@ -40,8 +40,8 @@
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="{% url 'council' %}">About us</a>
<a class="dropdown-item" href="{% url 'notes' %}">Our Meetings</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url 'contact' %}">Contact Us</a>
<!-- <div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url 'contact' %}">Contact Us</a> -->
</div>
</li>
</ul>

View File

@ -36,7 +36,7 @@
</div>
<script>
document.addEventListener("DOMContentLoaded", function(){
var thing = ({{ bar.money_raised }})/50000;
var thing = ({{ bar.money_raised }})/10000;
thing = thing * 100;
console.log(thing);
width = 1;
@ -45,10 +45,10 @@
if (width < thing) {
width+=.25;
document.getElementById('bar').style.width = width + "%";
document.getElementById('bar').innerHTML = "$" + (width * 500)
document.getElementById('bar').innerHTML = "$" + (width * 100)
} else {
document.getElementById('bar').style.width = thing + "%";
document.getElementById('bar').innerHTML = "$" + (thing * 500)
document.getElementById('bar').innerHTML = "$" + (thing * 100)
clearInterval(id);
}
}