Difference between revisions of "Chapters"

From Kappapedia
Jump to: navigation, search
m (Updated link to https)
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<metadesc>List of Kappa Kappa Gamma chapters founded in 1870 to present date.</metadesc>
 +
<div style="text-align:right;"><span style="margin-right:5px;position:relative;top:14px;">Excel Export:</span>[[File:Excel-logo-40x40.png|link=https://wiki.kkg.org/htmlets/ChapterExport.php]]</div>
 
List of Kappa Kappa Gamma chapters founded in 1870 to present date:
 
List of Kappa Kappa Gamma chapters founded in 1870 to present date:
 +
<br />
  
<html>
+
<htmlet nocache="yes">chapter_list</htmlet>
<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 = "<table style='width:100%;'>";
 
for (var i=0; i<chapters.length; i++) {
 
v += "<tr><td><a href='" + chapters[i].URL + "'>" + chapters[i].ChapterName + "</a></td><td>" + chapters[i].FoundingDate + "</td><td>" + chapters[i].Location + "<br>";
 
}
 
document.getElementById('list').innerHTML = v + "</table>"
 
}
 
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");
 
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>
 
<table style='width:100%'><tr>
 
<td><div onclick="sortArray(document.forms['Demo'], 1)">Chapter Name</div></td>
 
<td><div onclick="sortArray(document.forms['Demo'], 2)">Founding Date</div></td>
 
<td><div onclick="sortArray(document.forms['Demo'], 3)">Location</div></td>
 
</tr></table>
 
</html>
 
----
 
 
 
<div id="list">test</div>
 
[[Alpha]] Deuteron <br>
 
[[Beta]] <br>
 
[[Gamma]] <br>
 
[[Delta]] <br>
 
[[Epsilon]] <br>
 
[[Zeta]] <br>
 
[[Eta]] <br>
 
[[Iota]] <br>
 
[[Theta]] <br>
 
[[Beta Gamma]] <br>
 
[[Lambda]] <br>
 
[[Mu]] <br>
 
[[Nu]] <br>
 
[[Omicron]] Deuteron <br>
 
[[Chi]] <br>
 
[[Pi]] Deuteron <br>
 
[[Rho]] Deuteron <br>
 
[[Tau]] <br>
 
[[Kappa]] <br>
 
[[Beta Beta]] Deuteron <br>
 
[[Upsilon]] <br>
 
[[Beta Zeta]] <br>
 
[[Phi]] <br>
 
[[Xi]] <Br>
 
[[Beta Tau]] <br>
 
[[Psi]] Deuteron <br>
 
[[Omega]] <br>
 
[[Sigma]] <br>
 
[[Beta Rho]] Deuteron <br>
 
[[Gamma Rho]] <br>
 
[[Beta Nu]] <br>
 
[[Beta Alpha]] <br>
 
[[Beta Delta]] <br>
 
[[Beta Epsilon]] <br>
 
[[Beta Eta]] Deuteron <br>
 
[[Beta Iota]] <br>
 
[[Beta Lambda]] <br>
 
[[Beta Mu]] <br>
 
[[Beta Xi]] <br>
 

Latest revision as of 14:55, 28 August 2017

Excel Export:Excel-logo-40x40.png

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