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 snap(flashPile, turtlePile) { | |
function snapHelper(flashPile2, turtlePile2, snaps){ | |
if(turtlePile2.length<=0){ | |
return snaps; | |
} | |
var tpLength = turtlePile2.length; | |
var i = 0; | |
var middleDeck = []; | |
while(i<tpLength){ |
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
//////////////////////////////////////////////////////////////////////////////// | |
// Create colored left borders on module items that indicate completion status// | |
//////////////////////////////////////////////////////////////////////////////// | |
//Check to see if we're on the module page by looking for '.module-item-status-icon i' | |
$('.module-item-status-icon i').ready(function(){ | |
//I was having problems with this code executing before the page fully loaded. document.ready doesn't even seem to work. Probably needs to be refactored | |
$(document).ready(()=>{ | |
//to solve my code running before page finished loading problem I had to put in this bandaid. You may need to adjust the timeout or if you can refactor this that would be great. | |
setTimeout(()=>{ |