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
/** | |
* Loop through a table and pull out certain cells of data. | |
* | |
* This loops through a the rows of a table and grabs the requested cell(s) from each row. | |
* Cell data is seperated with tabs when multiple cells of data are requested OR with the | |
* combine flag set to true the data will be combined into a single string per row. | |
* | |
* Version: Alpha | |
* | |
* @param {int} id The value of the tables HTML id attribute. |
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]; |
This file has been truncated, but you can view the full file.
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
// This prevents pollution of the global namespace | |
var SQL = (function () { | |
// The Module object: Our interface to the outside world. We import | |
// and export values on it. There are various ways Module can be used: | |
// 1. Not defined. We create it here | |
// 2. A function parameter, function(Module) { ..generated code.. } | |
// 3. pre-run appended it, var Module = {}; ..generated code.. | |
// 4. External script tag defines var Module. | |
// We need to check if Module already exists (e.g. case 3 above). | |
// Substitution will be replaced with actual code on later stage of the build, |
NewerOlder