mirror of
https://gitlab.com/redline-racing-division/redline-racing-website.git
synced 2025-07-26 16:11:34 +00:00
added easy way to add sponsors
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
<!-- Content -->
|
||||
<div class="wrapper">
|
||||
<div class="inner">
|
||||
<h3 class="major">How to Help</h3>
|
||||
<h2 class="major">How to Help</h2>
|
||||
<p>
|
||||
Completion of our car and Success of our team is heavily dependent
|
||||
on sponsorships. All donations, both monetary, and material are
|
||||
@@ -76,8 +76,10 @@
|
||||
</p>
|
||||
</div>
|
||||
<div class="inner">
|
||||
<h3 class="major">Thank You to This Years Sponsors</h3>
|
||||
<p>idk how to approach this part yet.</p>
|
||||
<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>
|
||||
<div id="bronze"><h3 class="sponsor">Bronze Level Sponsors</h3></div>
|
||||
</div>
|
||||
|
||||
<!-- -->
|
||||
@@ -155,6 +157,28 @@
|
||||
<script src="assets/js/breakpoints.min.js"></script>
|
||||
<script src="assets/js/util.js"></script>
|
||||
<script src="assets/js/main.js"></script>
|
||||
<script>
|
||||
(function() {
|
||||
var sponsorPath = "images/sponsors/";
|
||||
$.getJSON(sponsorPath + "List.json", {}).done(function(data) {
|
||||
console.log("Sponsorship");
|
||||
$.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 +
|
||||
" alt='" +
|
||||
item[i].altText +
|
||||
"'>"
|
||||
);
|
||||
}
|
||||
});
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user