/* appjet:version 0.1 */ /* appjet:library */ // Copyright (c) 2009, Herbert Vojčík // Licensed by MIT license (http://www.opensource.org/licenses/mit-license.php) var _links = null; function _setup() { _links = {}; page.head.write("\n"); import({}, "lib-support/footer").extendTheFooter(function() { var result = SPAN({id:"appjetfooterlinks"}), delim = ""; eachProperty(_links, function(key, value) { result.push(delim, link(key, value.replace(" ", "\xa0", "g"))); // non-breaking spaces delim = " - "; }); return result; }); } /** * Puts a link into the footer. * Beyond its direct use, this function is very convenient * for libraries that integrate into application and reserve * some path to include link to themselves in the footer. */ function setFooterLink(url, name) { if (!_links) { _setup(); } _links[url] = name; } /* appjet:server */ import(appjet.appName); setFooterLink("/testrunner/results", "Test Runner"); setFooterLink("/lib-files/", "Files"); setFooterLink("/lib-files/", "File repository");