Created
January 14, 2020 00:33
-
-
Save blizzardengle/b44496148639fc25e122c176e7f4be53 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* Used in the dev console to swap the studnets names from Last, First | |
* to First Last in a BYUI pictroal class list. | |
*/ | |
var names = document.querySelectorAll('#classListTable tr td'); | |
var tmp; | |
for( var x = 0; x < names.length; x++ ){ | |
tmp = names[x].lastElementChild.innerHTML; | |
tmp = tmp.split(', '); | |
tmp = tmp[1] + ' ' + tmp[0]; | |
names[x].lastElementChild.innerHTML = tmp; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment