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
// # FUNCTIONALITY FOR EXERCISES # | |
(function (window, document) { | |
'use strict'; | |
// primary object for functionality of the quizzes | |
window.EZQuiz = { | |
// exercise statistics | |
stats : { | |
problems : 0, // number of problems to solve in the lesson |
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
/* | |
* browser support: Webkit, Gecko, MS browsers [ALL OK] | |
* sauce: https://twitter.com/SethC1995/status/1279827154788913152 (extra info in self-replies) | |
*/ | |
/* text-align, font-size, margin, bottom, line-/height may all be adjusted to fit preferences */ | |
ruby { | |
text-align:center; | |
display:inline-block; | |
position:relative; |
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
// script used for grabbing drop charts from ephinea | |
// https://ephinea.pioneer2.net/drop-charts/normal/ | |
// HOW TO USE | |
// Paste the script in your console (F12/CTRL+SHIFT+I > Console) and execute it while viewing a drop chart, | |
// the lua table will automatically be copied to your clipboard. | |
// Delete the contents of the respective difficulty file (i.e. normal, hard, very hard, etc...) and add "return" to the beginning | |
// of the file, once you've done this, paste the previously copied code and save. | |
// Repeat the above steps for each difficulty. |
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
// listen for changes in a stylesheet every 100ms (can change to fit needs) | |
function onStyleChange (stylesheet, callback) { | |
// gets the entire CSSText of a stylesheet | |
var getCSSText = function (stylesheet) { | |
stylesheet = stylesheet.sheet.cssRules; | |
var i, rules = ''; | |
for (i in stylesheet) { | |
rules += stylesheet[i].cssText || ''; |