diff --git a/Makefile b/Makefile index a13fc4c..a1cef0c 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -INPUTS = index.xml footer.xml +INPUTS = index.xml SUBDIRS = about events docs office news users clubs media first: noroot events.ics books.xml members.xml menu.xml all diff --git a/TODO b/TODO new file mode 100644 index 0000000..3b0bf72 --- /dev/null +++ b/TODO @@ -0,0 +1 @@ +Convert cellspacing and cellpadding to CSS equivalents. diff --git a/about/index.xml b/about/index.xml index 213631c..19de9c1 100644 --- a/about/index.xml +++ b/about/index.xml @@ -47,8 +47,7 @@ N2L 3G1
-
What
do you mean? An African or European swallow?(idea
diff --git a/ajax.js b/ajax.js
deleted file mode 100644
index c89e1ff..0000000
--- a/ajax.js
+++ /dev/null
@@ -1,166 +0,0 @@
-// X-Mode AJAX Core "Yume" 2.0
-// Compatible with X-Mode 3 "Yotsuba" and any other external apps.
-// Originally developed by Dave Crane, Eric Pascarello and Darren James
-// Developed by Juti Noppornpitak
-
-var net = new Object();
-net.READY_STATE_UNINITIALIZED = 0;
-net.READY_STATE_LOADING = 1;
-net.READY_STATE_LOADED = 2;
-net.READY_STATE_INTERACTIVE = 3;
-net.READY_STATE_COMPLETE = 4;
-net.CONNECTION_TERMINATION = "";
-net.core = function(url, console, onload, loading, onerror,
- method, data, contentType) {
- this.url = url;
- this.currurl = url;
- this.req = null;
- this.console = console;
- this.data = (data) ? data : null;
- this.contentType = (contentType) ? contentType : null;
- this.method = (method) ? method : "GET";
- this.onload = (onload) ? onload : this.defaultLoad;
- this.loading = (loading) ? loading : this.defaultLoading;
- this.onerror = (onerror) ? onerror : this.defaultError;
- // Require the user to manually start the connection.
- // this.connect(url);
-}
-net.core.prototype = {
- defaultConnect:function() {
- this.connect(this.url);
- },
-
- connect:function(url, method, data, contentType) {
- // Create the requester
- if(window.XMLHttpRequest) { // for Mozilla/Safari
- this.req = new XMLHttpRequest();
- } else if(window.ActiveXObject) { // for MSIE
- this.req = new ActiveXObject("Microsoft.XMLHTTP");
- }
-
- if(!contentType && method == "POST") {
- contentType="application/x-www-form-urlencoded";
- }
-
- this.currurl = url;
-
- if(this.req) {
- try {
- var loader = this;
- this.req.onreadystatechange = function() {
- loader.process.call(loader);
- }
- if(!method) { method = "GET"; }
- if(!data) { data = null; }
- this.req.open(method, this.currurl, true);
- if(contentType) {
- this.req.setRequestHeader("Content-Type", contentType);
- }
- this.req.send(data);
- } catch(err) {
- this.onerror.call(this);
- }
- }
- },
-
- process:function() {
- var req = this.req;
- var status = req.readyState;
-
- if(status == net.READY_STATE_COMPLETE) {
- var httpstatus = req.status;
- if(httpstatus == 200 || httpstatus == 0) {
- this.onload.call(this);
- } else {
- this.onerror.call(this);
- }
- } else {
- // handling loading/connecting
- this.loading.call(this);
- }
- },
-
- defaultLoad:function() {
- xcie__setElement(this.console,
- this.req.responseText);
- },
-
- defaultError:function() {
- alert("Error while connecting to: " + this.currurl);
- },
-
- defaultLoading:function() {
- xcie__setElement(this.console, "Loading");
- }
-}
-
-function xcie__element(id) {
- return document.getElementById(id);
-}
-
-function xcie__getElement(id) {
- if(!xcie__element(id)) return;
- return xcie__element(id).innerHTML;
-}
-
-function xcie__getElementValue(id) {
- if(!xcie__element(id)) return;
- return xcie__element(id).value;
-}
-
-function xcie__setElementValue(id, value) {
- if(!xcie__element(id)) return;
- xcie__element(id).value = value;
-}
-
-function xcie__setElement(id, value) {
- if(!xcie__element(id)) return;
- xcie__element(id).innerHTML = value;
-}
-
-function xcie__setWindowTitle(value) {
- document.title = value;
-}
-
-function xcie__setClass(id, nc) {
- xcie__element(id).className = nc;
-}
-
-function xcie__img(src, align, other) {
- return "
";
-}
-
-function xcie__a(label, value, ajax, other, command) {
- return ""
- + label + "";
-}
-
-function xcie__in(type, name, value, other, cmd) {
- return "";
-}
-
-function addslashes(str) {
- // SRC: Stephen Chapman of About.com
- str=str.replace(/\\/g,'\\\\');
- str=str.replace(/\'/g,'\\\'');
- str=str.replace(/\"/g,'\\"');
- return str;
-}
-
-function stripslashes(str) {
- // SRC: Stephen Chapman of About.com
- str=str.replace(/\\'/g,'\'');
- str=str.replace(/\\"/g,'"');
- str=str.replace(/\\\\/g,'\\');
- return str;
-}
diff --git a/default.mk.in b/default.mk.in
index e9bfb25..5fe76a5 100644
--- a/default.mk.in
+++ b/default.mk.in
@@ -13,5 +13,4 @@ clean:
%.html: %.xml $(ROOT)/csc.dtd $(ROOT)/cscweb.xsl $(ROOT)/xsl/*.xsl $(ROOT)/events.xml $(ROOT)/news.xml $(ROOT)/menu.xml $(ROOT)/default.mk directory.xml
java -classpath $(CLASSPATH) net.sf.saxon.Transform -o $@ $< $(ROOT)/cscweb.xsl $(XSLTARGS)
- # mad mad hacks
sed -i 's| xmlns=""||' $@
diff --git a/events.xml b/events.xml
index b8bc2a1..41682d8 100644
--- a/events.xml
+++ b/events.xml
@@ -150,7 +150,7 @@ data.