General Physics Courses
A. Brahmia
Sort list items alphabetically with Javascript
var fall = "
Fall Semester Courses
GENERAL PHYSICS 203 (In-Class & Hybrid)
ONLINE GENERAL PHYSICS 203
EXTENDED GENERAL PHYSICS 202
HYBRID GENERAL PHYSICS 204
"; var spring = "
Spring Semester Courses
GENERAL PHYSICS 204 (In-Class & Hybrid)
ONLINE GENERAL PHYSICS 204
EXTENDED GENERAL PHYSICS 201
HYBRID GENERAL PHYSICS 203
"; var summer = "
Summer Session Courses
SUMMER SESSION ONLINE GENERAL PHYSICS 203
SUMMER SESSION GENERAL PHYSICS 204
SUMMER SESSION ONLINE GENERAL PHYSICS 204
"; var timestmp = new Date().setFullYear(new Date().getFullYear(), 0, 1); var yearFirstDay = Math.floor(timestmp / 86400000); var today = Math.ceil((new Date().getTime()) / 86400000); var dayOfYear = today - yearFirstDay; if (dayOfYear > 235 ) { document.writeln('
'+fall+spring+summer+'
'); // document.writeln(dayOfYear); } else if (dayOfYear > 138 ) { document.writeln('
'+summer+fall+spring+'
'); } else if (dayOfYear > 0) { document.writeln('
'+spring+summer+fall+'
'); }