| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
|
| 3 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
| 4 |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| 5 |
|
| 6 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
| 7 |
<head> |
| 8 |
<title>GAPDoc Style Chooser</title> |
| 9 |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> |
| 10 |
<meta name="generator" content="GAPDoc2HTML" /> |
| 11 |
<link rel="stylesheet" type="text/css" href="manual.css" /> |
| 12 |
<script src="manual.js" type="text/javascript"></script> |
| 13 |
<script type="text/javascript"> |
| 14 |
|
| 15 |
<!-- find current value of name nam in form --> |
| 16 |
function currval(nam) { |
| 17 |
var chform = document.forms[0].elements; |
| 18 |
for (var i=0; chform.length > i; i++) { |
| 19 |
if (chform[i].name == nam && chform[i].type == "radio" && |
| 20 |
chform[i].checked == true) |
| 21 |
return chform[i].value; |
| 22 |
} |
| 23 |
return ""; |
| 24 |
} |
| 25 |
|
| 26 |
<!-- find style from current values in form --> |
| 27 |
function getstyle() { |
| 28 |
var choices = ["toggle","colorprompt","tocside","font","justify"]; |
| 29 |
var style = ""; |
| 30 |
for (var i=0; choices.length > i; i++) { |
| 31 |
var a = currval(choices[i]); |
| 32 |
if (a.length > 0) { |
| 33 |
if (style.length > 0) |
| 34 |
style = style + ","; |
| 35 |
style = style + a; |
| 36 |
} |
| 37 |
} |
| 38 |
if (style.length == 0) |
| 39 |
style = "default"; |
| 40 |
return style; |
| 41 |
} |
| 42 |
|
| 43 |
<!-- adjust the back link --> |
| 44 |
function f() { |
| 45 |
addr = window.location.search.split("=")[1]; |
| 46 |
addr = addr + "?GAPDocStyle=" + getstyle(); |
| 47 |
document.getElementsByName("backLINK")[0].href = addr; |
| 48 |
} |
| 49 |
function resetf() { |
| 50 |
addr = window.location.search.split("=")[1]; |
| 51 |
addr = addr + "?GAPDocStyle=default"; |
| 52 |
document.getElementsByName("backLINK")[0].href = addr; |
| 53 |
} |
| 54 |
|
| 55 |
<!-- initialize form from GAPDocStyle cookie --> |
| 56 |
function initform() { |
| 57 |
var style = valueString(document.cookie, "GAPDocStyle"); |
| 58 |
if (style != 0 && style.length > 0 && style.length != "default") { |
| 59 |
stlist = style.split(","); |
| 60 |
var chform = document.forms[0].elements; |
| 61 |
for (var i=0; chform.length > i; i++) { |
| 62 |
if (chform[i].type == "radio") { |
| 63 |
for (var j=0; stlist.length > j; j++) { |
| 64 |
if (chform[i].value == stlist[j]) |
| 65 |
chform[i].checked = true; |
| 66 |
} |
| 67 |
} |
| 68 |
} |
| 69 |
} |
| 70 |
} |
| 71 |
|
| 72 |
</script> |
| 73 |
</head> |
| 74 |
<body class="chooser"> |
| 75 |
|
| 76 |
<h2>Setting preferences for GAPDoc manuals</h2> |
| 77 |
|
| 78 |
<form name="SetGAPDocHTMLStyle" action=""> |
| 79 |
<p> |
| 80 |
<input name="reset" type="reset" value="Reset to defaults" |
| 81 |
onclick="javascript:resetf()"/> |
| 82 |
</p> |
| 83 |
<p> |
| 84 |
Unfold subsections in menus only by mouse clicks: |
| 85 |
<input type="radio" name="toggle" value="" checked="checked" |
| 86 |
onclick="javascript:f()"/> no (default) |
| 87 |
|
| 88 |
<input type="radio" name="toggle" value="toggless" |
| 89 |
onclick="javascript:f()"/> yes |
| 90 |
</p> |
| 91 |
<p> |
| 92 |
Show GAP examples as in sessions with <code>ColorPrompt(true)</code>: |
| 93 |
<input type="radio" name="colorprompt" value="" checked="checked" |
| 94 |
onclick="javascript:f()"/> yes |
| 95 |
(default) |
| 96 |
<input type="radio" name="colorprompt" value="nocolorprompt" |
| 97 |
onclick="javascript:f()"/> no |
| 98 |
</p> |
| 99 |
<p> |
| 100 |
Display side of table of contents within chapters: |
| 101 |
<input type="radio" name="tocside" value="" checked="checked" |
| 102 |
onclick="javascript:f()"/> right (default) |
| 103 |
<input type="radio" name="tocside" value="lefttoc" |
| 104 |
onclick="javascript:f()"/> left |
| 105 |
</p> |
| 106 |
<p> |
| 107 |
Main document font: |
| 108 |
<input type="radio" name="font" value="" checked="checked" |
| 109 |
onclick="javascript:f()"/> Helvetica/sans |
| 110 |
serif (default) |
| 111 |
<input type="radio" name="font" value="times" |
| 112 |
onclick="javascript:f()"/> Times/serif |
| 113 |
</p> |
| 114 |
<p> |
| 115 |
Paragraph formatting: |
| 116 |
<input type="radio" name="justify" value="" checked="checked" |
| 117 |
onclick="javascript:f()"/> left-right |
| 118 |
justified (default) |
| 119 |
<input type="radio" name="justify" value="ragged" |
| 120 |
onclick="javascript:f()"/> ragged right |
| 121 |
</p> |
| 122 |
</form> |
| 123 |
<p> |
| 124 |
<a name="backLINK" href=""><strong>Apply settings to last page.</strong></a> |
| 125 |
</p> |
| 126 |
<script type="text/javascript"> |
| 127 |
initform(); |
| 128 |
f(); |
| 129 |
</script> |
| 130 |
|
| 131 |
</body> |
| 132 |
</html> |