diff --git a/config.jsonc b/config.jsonc index 0f4a4dd9..b761615b 100644 --- a/config.jsonc +++ b/config.jsonc @@ -813,7 +813,7 @@ // coming soon }, "config": { - "proxy": true, // proxy only works when self-hosted + "proxy": false, // proxy only works when self-hosted "proxyPath": "http://localhost:8080" // absolute or relative path to proxy; proxy must be set to true for this setting to have any effect } } \ No newline at end of file diff --git a/css/style.css b/css/style.css index ab367e0b..899a67be 100644 --- a/css/style.css +++ b/css/style.css @@ -191,6 +191,16 @@ body.noscript { background-color: var(--hover-color); } +.star { + cursor: pointer; + color: #ccc; + float: right; +} + +.filled { + color: gold; +} + .searchbar { display: flex; width: 75%; diff --git a/js/index.js b/js/index.js index 4e1cdbb0..3f4317d8 100644 --- a/js/index.js +++ b/js/index.js @@ -211,6 +211,12 @@ $("#sort").on("change", updateList); dragElement(document.getElementById("gameButton")); dragElement(document.getElementById("refresh")); +function toggleStar(event, star) { + event.preventDefault(); + event.stopPropagation(); + star.classList.toggle('filled'); +} + /** * Adds drag functionality to an HTML element. * diff --git a/js/loading.js b/js/loading.js index 0565cc27..93c5b95b 100644 --- a/js/loading.js +++ b/js/loading.js @@ -25,7 +25,7 @@ fetch("./config.jsonc").then((e) => e.text()).then((jsonc) => { let gamesList = $("#gamesList"); for (game in games) { - gamesList.append(`
  • ${game}
  • `); + gamesList.append(`
  • ${game}
  • `); } $("#gamesList li").on("click", function() {