JSFiddle - React, Tailwind, and code Playground
HTML
<table role="presentation" border="0" id="ACE_STDNT_ENRL_SSV2$0" cellpadding="0" cellspacing="0" cols="2" width="551" class="PABACKGROUNDINVISIBLE" style="border-style:none">
<tbody><tr>
<td width="4" height="7"></td>
<td width="547"></td>
</tr>
<tr>
<td height="97"></td>
<td valign="top" align="left">
<div id="win0divDERIVED_REGFRM1_DESCR20$0"><table cellpadding="0" cellspacing="0" cols="1" class=" " width="583">
<tbody><tr><td> <table cellspacing="0" cellpadding="0" border="0" width="100%" class="PAGROUPDIVIDER" style="border:0"><tbody><tr><td class="PAGROUPDIVIDER" align="left" id="PSCENTER"><table class="PSRIGHTCORNER" cellspacing="0" cellpadding="0" border="0" style="height:100%;" width="100%"><tbody><tr><td class="PAGROUPDIVIDER PSLEFTCORNER" style="border:0;">CSE 311 - Systems Administration</td>
</tr></tbody></table></td></tr></tbody></table></td></tr>
<tr><td width="579" class="PSGROUPBOXWBO">
<table role="presentation" border="0" id="ACE_DERIVED_REGFRM1_DESCR20$0" cellpadding="0" cellspacing="0" cols="3" width="579" class="PSGROUPBOX" style="border-style:none">
<tbody><tr>
<td width="0" height="0"></td>
<td width="580"></td>
<td width="1"></td>
</tr>
<tr>
<td height="42"></td>
<td valign="top" align="left">
<div id="win0divSSR_DUMMY_RECVW$0">
<table cellspacing="0" class="PSLEVEL3GRIDWBO" id="SSR_DUMMY_RECVW$scroll$0" dir="ltr" cols="1" width="580" cellpadding="0">
<tbody><tr><td>
<table dir="ltr" border="0" cellpadding="2" cellspacing="0" cols="5" width="100%" class="PSLEVEL3GRID" style="border-style:none">
<tbody><tr>
<th scope="col" abbr="Status" width="59" align="left" class="PSLEVEL3GRIDCOLUMNHDR">Status</th>
<th scope="col" abbr="Units" width="30" align="right" class="PSLEVEL3GRIDCOLUMNHDR">Units</th>
<th scope="col" abbr="Grading" width="64" align="left" class="PSLEVEL3GRIDCOLUMNHDR">Grading</th>
<th scope="col" abbr="Grade" width="29" align="left" class="PSLEVEL3GRIDCOLUMNHDR">Grade</th>
<th scope="col" abbr="Deadlines" width="21" align="left"...
JavaScript
function pad(num, len){
num = "" + num;
while (num.length < len)
{
num = "0" + num;
}
return num;
}
function dateify(sDate, dayOffset) {
var dates = sDate.split("/");
var year = dates[2];
var month = dates[0];
var day = dates[1];
var dateObj = new Date(year, month, parseInt(day,10) + dayOffset)
console.log(parseInt(day,10) + dayOffset);
console.log(dateObj.getMonth());
console.log(dateObj.getDate());
return "" + pad(dateObj.getFullYear(), 4) + pad(dateObj.getMonth(), 2) + pad(dateObj.getDate(), 2);
}
function untilDate(sDate) {
var dates = sDate.split("/");
return dates[2] + dates[0] + (parseInt(dates[1]) - 10);
}
function timeify(sTime) {
if (sTime.includes("PM")) {
sTime = sTime.replace("PM", "");
if (sTime < 1200) sTime = parseInt(sTime) + 1200;
} else {
sTime = sTime.replace("AM", "");
if (parseInt(sTime) < 1000) {
sTime = "0" + sTime;
}
}
sTime += "00";
return sTime;
}
function locationFormat(sLoc) {
var temp = sLoc.replace("LBR", "Library").replace("WESTCAMPUS", "").replace("COMPUTER SCI", "Old Computer Science").replace("HLL", "Hall").replace("ONLINE ONLINE", "ONLINE").split(" ");
var s = "";
for (var i = 0; i < temp.length; i++) {
s += temp[i].charAt(0).toUpperCase();
for (var j = 1; j < temp[i].length; j++)
s += temp[i].charAt(j).toLowerCase();
if (i < temp.length - 1)
s += " ";
}
return s;
}
var rows = document.getElementById("ACE_STDNT_ENRL_SSV2$0").rows;
//above for JS Fiddle
//below for Solar
//var rows = frames[0].document.getElementById("ACE_STDNT_ENRL_SSV2$0").rows;
var eventString = "BEGIN:VCALENDAR\nPRODID:-//Google Inc//Google Calendar 70.9054//EN\nVERSION:2.0\nCALSCALE:GREGORIAN\nMETHOD:PUBLISH\nX-WR-CALNAME:Schedule\nX-WR-TIMEZONE:America/New_York\nX-WR-CALDESC:My Schedule\n";
for (var i = 1; i < rows.length; i += 2) {
var table = rows[i].getElementsByTagName("table")[0];
var tablePre =...