Skip to content

Commit

Permalink
Introduced a footer with a link to GitHub repo
Browse files Browse the repository at this point in the history
  • Loading branch information
TheStalwart committed Feb 3, 2025
1 parent 3bc2d4f commit d5bdea8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/db_loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ function loadDB() {
}

function buildHTML(db) {
var gpu_list_container = document.getElementById('gpu-list')

db.forEach((entry) => {
console.log(entry)

var h1 = document.createElement('h1')
h1.className = `manufacturer_color_${entry.manufacturer}`
h1.innerText = `[${entry.release_year}] ${entry.manufacturer} ${entry.gpu}`
document.body.appendChild(h1)
gpu_list_container.appendChild(h1)

var ul_of_modes = document.createElement('ul')

Expand All @@ -26,6 +28,6 @@ function buildHTML(db) {
ul_of_modes.appendChild(li_of_a_mode)
});

document.body.appendChild(ul_of_modes)
gpu_list_container.appendChild(ul_of_modes)
});
}
5 changes: 5 additions & 0 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
</head>

<body onload="loadDB()">
<div id="gpu-list"></div>
<hr>
<div>
<a href="https://github.com/TheStalwart/display-modes">https://github.com/TheStalwart/display-modes</a>
</div>
</body>

</html>

0 comments on commit d5bdea8

Please sign in to comment.