/* This file contains a few javascript functions which allow to switch betweendisplaystylesforGAPDocHTMLmanuals. Ifjavascriptisswitchedoffinabrowserorthisfileinnotavailable inamanualdirectory,thisisnoproblem.Usersjustcannotswitch betweenseveralstylesanddon'tseethecorrespondingbutton.
/* generic helper function */ function deleteCookie(nam) {
document.cookie = nam+"=;Path=/;expires=Thu, 01 Jan 1970 00:00:00 GMT";
}
/* read a value from a "nam1=val1;nam2=val2;..." string (e.g., the search
part of an URL or a cookie */ function valueString(str,nam) { var cs = str.split(";"); for (var i=0; i < cs.length; i++) { var pos = cs[i].search(nam+"="); if (pos > -1) {
pos = cs[i].indexOf("="); return cs[i].slice(pos+1);
}
} return0;
}
/* when a non-default style is chosen via URL or a cookie, then
the cookie is reset and the styles .js and .css files are read */ function overwriteStyle() { /* style in URL? */ var style = valueString(window.location.search, "GAPDocStyle"); /* otherwise check cookie */ if (style == 0)
style = valueString(document.cookie, "GAPDocStyle"); if (style == 0) return; if (style == "default")
deleteCookie("GAPDocStyle"); else { /* ok, we set the cookie for path "/" */ var path = "/"; /* or better like this ??? varhere=window.location.pathname.split("/"); for(vari=0;i+3<here.length;i++) path=path+"/"+here[i];
*/
document.cookie = "GAPDocStyle="+style+";Path="+path; /* split into names of style files */ var stlist = style.split(","); /* read style's css and js files */ for (var i=0; i < stlist.length; i++) {
document.writeln('<link rel="stylesheet" type="text/css" href="'+
stlist[i]+'.css" />');
document.writeln('<script src="'+stlist[i]+ '.js" type="text/javascript"></script>');
}
}
}
/* this adds a "[Style]" link next to the MathJax switcher */ function addStyleLink() { var line = document.getElementById("mathjaxlink"); var el = document.createElement("a"); var oncl = document.createAttribute("href"); var back = window.location.protocol+"//" if (window.location.protocol == "http:" ||
window.location.protocol == "https:") {
back = back+window.location.host; if (window.location.port != "") {
back = back+":"+window.location.port;
}
}
back = back+window.location.pathname;
oncl.nodeValue = "chooser.html?BACK="+back;
el.setAttributeNode(oncl); var cont = document.createTextNode(" [Style]");
el.appendChild(cont);
line.appendChild(el);
}
var jscontentfuncs = new Array();
jscontentfuncs.push(addStyleLink);
/* the default jscontent() only adds the [Style] link to the page */ function jscontent () { for (var i=0; i < jscontentfuncs.length; i++)
jscontentfuncs[i]();
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.19 Sekunden
(vorverarbeitet am 2026-06-23)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.