Created
August 20, 2012 13:43
-
-
Save SethWilson/3404181 to your computer and use it in GitHub Desktop.
Sabres Schedule to Google Calendar
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
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