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
#!/bin/sh | |
# This script requires that you set certain variables before running it. | |
# After that, you can just run the command and the game will launch! | |
# Instructions can be found at https://github.com/FlaareZero/Kingdom_Hearts_Collection_Linux/issues/2#issuecomment-890655837 | |
# STEP 1: Environment variables from Heroic | |
HEROIC_ENV="" # Paste in the quotes | |
# STEP 2: Wine command from Heroic |
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
// Set this to the number of seconds off that the chat is from the video | |
var chatOffset = 0; | |
const vid = $('video'); | |
const chat = $('.zm-scrollbar__view ul'); | |
const messages = chat.querySelectorAll('li .chat-time'); | |
let lastTime = undefined; | |
function pad(num) { | |
return String(num).padStart(2, '0'); |
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
function getLetterGrade(grade){ | |
if(grade>=90) return 'A'; | |
else if(grade>=80) return 'B'; | |
else if(grade>=70) return 'C'; | |
else if(grade>=60) return 'D'; | |
else return 'F'; | |
} | |
const getById = id => document.getElementById(id); | |
const table = getById('center_table'); |