Difference between revisions of "Chapters"

From Kappapedia
Jump to: navigation, search
Line 23: Line 23:
 
chapters[chapters.length++] = new chapter("Gamma", 1872, "Smithson College, Logansport, IN", "http://wiki.kappakappagamma.org/index.php/Gamma");
 
chapters[chapters.length++] = new chapter("Gamma", 1872, "Smithson College, Logansport, IN", "http://wiki.kappakappagamma.org/index.php/Gamma");
 
chapters[chapters.length++] = new chapter("Delta", 1872, "Indiana University, Bloomington, IN", "http://wiki.kappakappagamma.org/index.php/Delta");
 
chapters[chapters.length++] = new chapter("Delta", 1872, "Indiana University, Bloomington, IN", "http://wiki.kappakappagamma.org/index.php/Delta");
 +
chapters[chapters.length++] = new chapter("Epsilon", 1873, "Illinios Wesleyan University, Bloomington, IL", "http://wiki.kappakappagamma.org/index.php/Epsilon");
 +
chapters[chapters.length++] = new chapter("Zeta", 1874, "Rockford Female Seminary, Rockford, IL", "http://wiki.kappakappagamma.org/index.php/Zeta");
 
drawArray();
 
drawArray();
  

Revision as of 15:57, 14 June 2011

List of Kappa Kappa Gamma chapters founded in 1870 to present date:

<html> <script> var chapters = new Array(); function chapter(chapterName, foundingDate, location, url) { this.ChapterName = chapterName; this.FoundingDate = parseInt(parseFloat(foundingDate)); this.Location = location;

       this.URL = url;

} function drawArray(form) {

var v = ""; for (var i=0; i<chapters.length; i++) { v += "
<a href='" + chapters[i].URL + "'>" + chapters[i].ChapterName + "</a>" + chapters[i].FoundingDate + "" + chapters[i].Location + "
";

}

document.getElementById('list').innerHTML = v + "
"

} window.onload = function(){

chapters[chapters.length++] = new chapter("Alpha Deuteron", 1870, "Monmouth College, Monmouth, IL", "http://wiki.kappakappagamma.org/index.php/Alpha"); chapters[chapters.length++] = new chapter("Beta", 1871, "St. Mary's School, Knoxville, IL", "http://wiki.kappakappagamma.org/index.php/Beta"); chapters[chapters.length++] = new chapter("Gamma", 1872, "Smithson College, Logansport, IN", "http://wiki.kappakappagamma.org/index.php/Gamma"); chapters[chapters.length++] = new chapter("Delta", 1872, "Indiana University, Bloomington, IN", "http://wiki.kappakappagamma.org/index.php/Delta"); chapters[chapters.length++] = new chapter("Epsilon", 1873, "Illinios Wesleyan University, Bloomington, IL", "http://wiki.kappakappagamma.org/index.php/Epsilon"); chapters[chapters.length++] = new chapter("Zeta", 1874, "Rockford Female Seminary, Rockford, IL", "http://wiki.kappakappagamma.org/index.php/Zeta"); drawArray();

}

function sortByChapterName(a, b) { var x = a.ChapterName.toLowerCase(); var y = b.ChapterName.toLowerCase(); return ((x < y) ? -1 : ((x > y) ? 1 : 0)); } function sortByLocation(a, b) { var x = a.Location.toLowerCase(); var y = b.Location.toLowerCase(); return ((x < y) ? -1 : ((x > y) ? 1 : 0)); } function sortByLastNameThenFirst(a, b) { var x = a.LastName.toLowerCase(); var y = b.LastName.toLowerCase(); return ((x < y) ? -1 : ((x > y) ? 1 : sortByFirstName(a, b))); } function sortByFoundingDate(a, b) { var x = a.FoundingDate; var y = b.FoundingDate; return ((x < y) ? -1 : ((x > y) ? 1 : 0)); } function sortArray(form, column) { if (chapters.length == 0) { alert("Please add one or more people before sorting!"); return false; } switch (column) { case 1 : chapters.sort(sortByChapterName); break; case 2 : chapters.sort(sortByFoundingDate); break; case 3 : chapters.sort(sortByLocation); break; case 4 : chapters.sort(sortByLastNameThenFirst); break; } drawArray(form); } // --> </script>

Chapter Name
Founding Date
Location

</html>


test

Alpha Deuteron
Beta
Gamma
Delta
Epsilon
Zeta
Eta
Iota
Theta
Beta Gamma
Lambda
Mu
Nu
Omicron Deuteron
Chi
Pi Deuteron
Rho Deuteron
Tau
Kappa
Beta Beta Deuteron
Upsilon
Beta Zeta
Phi
Xi
Beta Tau
Psi Deuteron
Omega
Sigma
Beta Rho Deuteron
Gamma Rho
Beta Nu
Beta Alpha
Beta Delta
Beta Epsilon
Beta Eta Deuteron
Beta Iota
Beta Lambda
Beta Mu
Beta Xi