-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
web and overridejs to manually correct things
- Loading branch information
1 parent
6357c46
commit c49ccaf
Showing
6 changed files
with
58 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
/node_modules | ||
/index.html | ||
/index.js | ||
/config.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<head> | ||
<title>TheNeedleDrop Review Scores</title> | ||
</head> | ||
<body> | ||
<div align="center"> | ||
<div class="text"> | ||
This is a list of all of Anthony Fantano's album reviews — though I'm sure I'm missing some — made easily searchable and sortable by score, upload date, and name. Dates and times are most likely in UTC. | ||
</div> | ||
<table id="table"> | ||
<tr> | ||
<th>Video</th> | ||
<th>Album</th> | ||
<th>Artist</th> | ||
<th>Score</th> | ||
<th>Date</th> | ||
</tr> | ||
<tr> | ||
|
||
</tr> | ||
</table> | ||
</div> | ||
<style> | ||
|
||
</style> | ||
<script src="index.js"></script> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
let table = document.getElementById('table') | ||
async function populate() { | ||
let data = await fetch("https://raw.githubusercontent.com/kiawildberger/sadtano-sort/master/result.json") | ||
let json = await data.json() | ||
for(i in json) { // huge | ||
let tr = document.createElement("tr") | ||
i = json[i] | ||
tr.innerHTML = `<td><a href="https://youtube.com/watch?v=${i.id}" target="_blank"><img src="${i.thumb}"</a></td> | ||
<td>${i.album}</td> | ||
<td>${i.artist}</td> | ||
<td>${i.rating[0]}</td> | ||
<td>${i.nicedate}</td>` | ||
table.appendChild(tr) | ||
} | ||
} | ||
|
||
populate() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(function() { | ||
const fs = require("fs") | ||
let data = JSON.parse(fs.readFileSync("./result.json")) | ||
function set(id, key, value) { if(data[id] && data[id][key]) data[id][key] = value; } | ||
|
||
set("JX54Kz7DaZQ", "rating", "7/10") | ||
|
||
fs.writeFileSync("./result.json", JSON.stringify(data)) | ||
})(); |
Large diffs are not rendered by default.
Oops, something went wrong.