
2015 Division I College 7s National Championship Scores
2015 Division II College 7s National Championship Scores
jQuery(function($){
var g_key = '12mTTiYGQkt3FOPV5jdxl_78FeOt5JK6eiJ4ydIDoC8g';
$(document).ready(function(){
Tabletop.init({ key : g_key, simpleSheet: false, callback : getData, wanted: ['men-d1','men-d2'], debug: true, postProcess : function(){ $('#mens-sevens > link').remove(); $('#mens-sevens > span.loading').remove(); } });
});
function getData(sheets,tabletop){
var sheet = sheets['men-d1'], sheet_two = sheets['men-d2'], column_names = sheet.column_names, col_names = sheet_two.column_names, table = $("
"), header = $("
"), headRow = $("
"), tbody = $("
"), table_two = $("
"), header_two = $("
"), headRow_two = $("
"), tbody_two = $("
"); window.console.log(sheet); window.console.log(sheet_two);
// THEAD for(var i=0;i ").text(column_names[i]).appendTo(headRow); headRow.appendTo(header); } table.append(header); // TBODY for(var i=0;i "); for(var j=0;j ").html(row[column_name]).appendTo(html_row); } tbody.append(html_row); } table.append(tbody); $('#mens-d1').append(table); // THEAD for(var i=0;i ").text(col_names[i]).appendTo(headRow_two); headRow_two.appendTo(header_two); } table_two.append(header_two); // TBODY for(var i=0;i "); for(var j=0;j ").html(row[col_name]).appendTo(html_row); } tbody_two.append(html_row); } table_two.append(tbody_two); $('#mens-d2').append(table_two); } });