Minor layout fixes, basic schematic entry support, XPath for XML

This commit is contained in:
Piotr Mitros
2011-12-20 19:17:18 -05:00
parent 61880f5a34
commit 9ac4ac8a12
8 changed files with 97 additions and 42 deletions

View File

@@ -38,15 +38,22 @@
// add ourselves to the tasks that get performed when window is loaded
window.onload = add_schematic_handler(window.onload);
function update_schematics() {
// set up each schematic on the page
var schematics = document.getElementsByClassName('schematic');
for (var i = schematics.length - 1; i >= 0; i--)
if (schematics[i].getAttribute("loaded") != "true") {
new Schematic(schematics[i]);
schematics[i].setAttribute("loaded","true");
}
}
function add_schematic_handler(other_onload) {
return function() {
// execute othe onload functions first
if (other_onload) other_onload();
// set up each schematic on the page
var schematics = document.getElementsByClassName('schematic');
for (var i = schematics.length - 1; i >= 0; i--)
new Schematic(schematics[i]);
update_schematics();
}
}

BIN
courseware/static/pixel.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 B