Skip to content

Instantly share code, notes, and snippets.

@SethWilson
Created August 20, 2012 13:43
Show Gist options
  • Save SethWilson/3404181 to your computer and use it in GitHub Desktop.
Save SethWilson/3404181 to your computer and use it in GitHub Desktop.
Sabres Schedule to Google Calendar
var sked_data = '';
var sked_header = "Subject,Start Date,Start Time,End Date,End Time,All Day Event,Description,Location,Private";
$('#div_content').append('<textarea id="skeddata" />');
$('#skeddata').append(sked_header + '\n');
$('table#ctl00_ctl00_ContentPlaceHolder1_MainContentPlaceHolder_GridView1_RadGrid1_ctl00 tr').each(function(){
sked_data =
$(this).find("td:eq(8)").html() + ", " +
$(this).find("td:eq(3)").html() + ", " +
$(this).find("td:eq(4)").html() + ", " +
$(this).find("td:eq(3)").html() + ", " +
$(this).find("td:eq(5)").html() + ", ," +
$(this).find("td:eq(6)").html() + " vs " + $(this).find("td:eq(7)").html() + ", " +
$(this).find("td:eq(9) a").html()
$('#skeddata').append(sked_data + '\n');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment