1
0
mirror of https://gitlab.com/redline-racing-division/redline-racing-website.git synced 2025-07-26 16:11:34 +00:00

made changing sponsors easier

This commit is contained in:
2019-09-27 14:16:40 -07:00
parent 8dd5210d4b
commit 555409a956
5 changed files with 91 additions and 73 deletions

View File

@@ -75,7 +75,7 @@
>
</p>
</div>
<div class="inner">
<div class="inner" style="margin-bottom: 10%">
<h2 class="major">Thank You to This Years Sponsors</h2>
<div id="gold"><h3 class="sponsor">Gold Level Sponsors</h3></div>
<div id="silver"><h3 class="sponsor">Silver Level Sponsors</h3></div>
@@ -159,14 +159,11 @@
<script src="assets/js/main.js"></script>
<script>
(function() {
var sponsorPath = "images/sponsors/";
$.getJSON(sponsorPath + "List.json", {}).done(function(data) {
console.log("Sponsorship");
$.getJSON("sponsors/list.json", {}).done(function(data) {
$.each(data, function(i, item) {
for (var i = 0; i < item.length; i++) {
$("#" + item[i].SponsorLevel).append(
"<img src='" +
sponsorPath +
item[i].companyImg +
"'class = " +
item[i].SponsorLevel +