r786 - in twiki/branches/test.lfs.org: . css images js styleswitcher

jeroen at linuxfromscratch.org jeroen at linuxfromscratch.org
Thu Jul 15 03:58:52 PDT 2004


Author: jeroen
Date: 2004-07-15 04:58:49 -0600 (Thu, 15 Jul 2004)
New Revision: 786

Added:
   twiki/branches/test.lfs.org/css/
   twiki/branches/test.lfs.org/css/common.css
   twiki/branches/test.lfs.org/css/onecolumn.css
   twiki/branches/test.lfs.org/css/print.css
   twiki/branches/test.lfs.org/css/twocolumn.css
   twiki/branches/test.lfs.org/images/
   twiki/branches/test.lfs.org/images/PythonPowered.png
   twiki/branches/test.lfs.org/images/alfs_540x130.png
   twiki/branches/test.lfs.org/images/alfs_540x130_transp.png
   twiki/branches/test.lfs.org/images/blfs_540x130.png
   twiki/branches/test.lfs.org/images/blfs_540x130_transp.png
   twiki/branches/test.lfs.org/images/book_540x130.png
   twiki/branches/test.lfs.org/images/book_540x130_transp.png
   twiki/branches/test.lfs.org/images/gnu-head-tiny.png
   twiki/branches/test.lfs.org/images/hints_540x130.png
   twiki/branches/test.lfs.org/images/hints_540x130_transp.png
   twiki/branches/test.lfs.org/images/hlfs_540x130.png
   twiki/branches/test.lfs.org/images/hlfs_540x130_transp.png
   twiki/branches/test.lfs.org/images/hr.png
   twiki/branches/test.lfs.org/images/ie_warning.png
   twiki/branches/test.lfs.org/images/lfs_540x130.png
   twiki/branches/test.lfs.org/images/lfs_540x130_transp.png
   twiki/branches/test.lfs.org/images/patches_540x130.png
   twiki/branches/test.lfs.org/images/patches_540x130_transp.png
   twiki/branches/test.lfs.org/images/paypal-72x29.gif
   twiki/branches/test.lfs.org/images/powered_by_google_135x35.png
   twiki/branches/test.lfs.org/images/powered_by_swish-e_109x35.png
   twiki/branches/test.lfs.org/images/wiki_540x130.png
   twiki/branches/test.lfs.org/images/wiki_540x130_transp.png
   twiki/branches/test.lfs.org/js/
   twiki/branches/test.lfs.org/js/styleswitch.js
   twiki/branches/test.lfs.org/js/styleswitcher.js
   twiki/branches/test.lfs.org/styleswitcher/
   twiki/branches/test.lfs.org/styleswitcher/index.html
Log:
Add non-twiki files for CSS, images and JS

Added: twiki/branches/test.lfs.org/css/common.css
===================================================================
--- twiki/branches/test.lfs.org/css/common.css	2004-07-15 10:57:24 UTC (rev 785)
+++ twiki/branches/test.lfs.org/css/common.css	2004-07-15 10:58:49 UTC (rev 786)
@@ -0,0 +1,149 @@
+/* The W3C Core Styles Copyright (c) 1998 W3C (mit, inria, Keio), All Rights
+Reserved. W3C liability, trademark, document use and software licensing rules
+apply. See http://www.w3.org/Consortium/Legal/ipr-notice.html
+
+/* Adopted from http://www.w3.org/StyleSheets/Core/Steely */
+
+h1, h2, h3, h4, h5, h6, th, dt	{ font-family:	Tahoma, Verdana, 'Myriad Web', Syntax, sans-serif; } 
+
+p, div, ul, dl, dt, dd, pre, ol, li, blockquote, address	{
+	color: black;
+}
+		
+a, address, blockquote, body, cite, code, dd, del, dfn,		
+div, dl, dt, em, form, h1, h2, h3, h4, h5, h6, iframe, img, kbd,		
+li, object, ol, p, q, samp, small, span, strong, sub, sup, ul, var, 		
+applet, big, center, dir, font, hr, menu, pre,		
+abbr, acronym, bdo, button, fieldset, ins, label	{	
+	word-spacing:	normal;
+	letter-spacing:	normal;
+	text-transform:	none;
+	text-decoration:	none;
+	border-color:	#036;
+	border-style:	none;
+	}	
+	
+body    {
+        padding:        0;
+        margin:         0;
+        border:         0;
+        color:          #111;
+        background:     #ecedef;
+	font-family:	sans-serif;
+}	
+		
+em	{	
+	font-style:	normal;
+	font-weight:	bold;
+	color:		black;
+	}	
+		
+strong	{	
+	font-style:	italic;
+	font-weight:	bold;
+	color:		black;
+	}	
+		
+em strong, strong em	{	
+	text-transform:	uppercase;
+	font-style:	normal;
+	font-weight:	bolder;
+	color:		black;
+	}	
+
+b	{
+	font-weight:	bold;
+	}
+	
+i	{
+	font-style:	italic;
+	}
+		
+.alert	{	
+	text-transform:	none;
+	font-style:	normal;
+	font-weight:	bolder;
+	background:	yellow;
+	color:		black;
+	}
+
+del	{	
+	text-decoration:	line-through;
+	background:	#F66;
+	}	
+		
+ins	{	
+	text-decoration:	none;
+	background:	yellow;
+	}	
+		
+var, cite, dfn, .note	{	
+	font-style:	italic;
+	}	
+		
+address	{	
+	font-style:	normal;
+	letter-spacing:	.1em;
+	}	
+		
+acronym	{	
+	font-variant:	small-caps;
+	letter-spacing:	0.1em;
+	}	
+		
+h1, h2, h3, h4, h5, h6, dt, th, thead, tfoot	{
+	text-align:	left;
+	color:		#036;
+	}	
+		
+hr	{	
+	color:		#036;
+	}	
+		
+col, colgroup, table, tbody, td, tr	{	
+	color:		black;
+	text-decoration:	none;
+	border-color:	#dde;
+	border-style:	none;
+	border-width:	1px;
+	border-style:	solid;
+	background:	#eef;
+	}
+
+th	{
+	border-color:	#ccd;
+	border-width:	2px;
+	border-style:	solid;
+	background:	#dde;
+	}
+		
+a:link	{	
+	text-decoration:	none;
+	font-weight:	bold;
+	color:		#F30;
+	}	
+		
+a:visited	{	
+	text-decoration:	none;
+	font-weight:	bold;
+	color:		#8c1c00;
+	}	
+	
+
+a:hover {
+        text-decoration:        underline;
+        color:  	#ff7200;
+        }
+	
+a:active	{	
+	text-decoration:	none;
+	font-weight:	bold;
+	color:		#ffb200;
+	}	
+		
+a.offsite	{	
+	text-decoration:	none;
+	font-weight:	normal;
+	color:		#C30;
+	}	
+

Added: twiki/branches/test.lfs.org/css/onecolumn.css
===================================================================
--- twiki/branches/test.lfs.org/css/onecolumn.css	2004-07-15 10:57:24 UTC (rev 785)
+++ twiki/branches/test.lfs.org/css/onecolumn.css	2004-07-15 10:58:49 UTC (rev 786)
@@ -0,0 +1,123 @@
+ at import url("/css/common.css");
+
+#header {
+	background:	#caccdb;
+	margin:		0 1em;
+	border:		1px solid #b9bbca;
+}
+
+#headitems { 
+	position: 	absolute; 
+	top: 		1em; 
+	left: 		565px;
+	min-width:	16.5em;
+	font-size:	88%;
+}
+
+#search input { 
+	background: 	#bcc5e4; 
+	color: 		#000; 
+	vertical-align: middle; 
+	padding: 	0; 
+	margin: 	0 0 5px 0; 
+	font-size:	1em;
+}
+
+#search i\nput { 
+	border: 	1px solid #868ebc; /* Workaround for Konqueror, see http://centricle.com/ref/css/filters/ */
+}
+
+#search input:hover { 
+	background: 	#dbdffa; 
+}
+
+#search input:focus,
+#search textarea:focus,
+#search textarea:active,
+#search input:active { 
+	background:	#fefff1;
+	color:		#573337; 
+	border: 	1px solid #a7afd6; 
+}
+
+div.globalnav p,
+div.webnav p,
+#title h1 {
+	margin:		0;
+	padding:	0.1em 25px 0;
+}
+
+#title h1 {
+	padding:	0 0 0 25px;
+}
+
+div.globalnav	{
+	font-size:	1.2em;
+        background:     #dbddec;
+        margin:         0 1em;
+        border:         1px solid #b9bbca;
+}
+
+div.globalnav a:hover {
+        text-decoration: none;
+        border-bottom:  3px solid #ff7200;
+}
+
+div.webnav p {
+	margin:		0 1em;
+	padding:	0.1em 1em;
+}
+
+div.webnav a {
+	color: 		#aa3300;
+}
+
+div.webnav a:visited {
+	color: 		#aa7366;
+}
+
+div.webnav a:hover {
+	color:		#ff3300;
+	text-decoration:	none;
+	border-bottom:	2px solid #ff3300;
+	padding-bottom:	2px;
+}
+
+#content	{
+	padding: 	1em; 
+	margin: 	0 1em; 
+	background: 	#fbfbfb; 
+	border:		2px solid #caccdb;
+	color: 		#0c1130; 
+	line-height: 	1.7em; 
+}
+
+#standardfooter {
+	position:	relative;
+        background:	#dbddec;
+	border:         1px solid #b9bbca;
+	margin: 	0 1.3em;
+	font-size:	0.76em;
+	font-weight:	normal;
+	padding: 	0.5em 2em;
+}
+
+/* Page-specifics */
+
+/* Search results */
+
+table.search-results {
+	border:		1px solid #ccd;
+	margin:		2px 0;
+}
+
+table.search-results th {
+	border:		1px solid #dde;
+	background:	#efefff;
+}
+
+table.search-results td {
+	font-size:	88%;
+	padding:	0;
+}
+

Added: twiki/branches/test.lfs.org/css/print.css
===================================================================
--- twiki/branches/test.lfs.org/css/print.css	2004-07-15 10:57:24 UTC (rev 785)
+++ twiki/branches/test.lfs.org/css/print.css	2004-07-15 10:58:49 UTC (rev 786)
@@ -0,0 +1,60 @@
+ at import url("/css/common.css");
+
+/* Standard markup */
+
+body {
+	margin:		0;
+	padding:	0;
+	background:	#fff;
+	color:		black;
+	font-size:	11pt;
+}
+
+img {
+	border: 	0;
+}
+
+a:link, 
+a:visited, 
+a:hover, 
+a:active  {
+	color:		#F30;
+	text-decoration: 	underline;
+}
+
+/* Positional markup */
+
+#search,
+.authenticate,
+.webnav,
+.globalnav,
+.wikinav,
+#action  { 
+	display:	none;
+}
+
+#styleselect {
+	font-size:	76%;
+	position: 	absolute;
+	top:		1em;
+	right:		1em;
+}
+
+#container {
+	margin: 0;
+	padding: 0;
+	position: relative;
+	width: 100%;
+}
+
+#content {
+	position: relative;
+	color: #000;
+	line-height: 140%;
+	padding: 0;
+	margin: 0;
+}
+
+.copyright {
+	font-size: 76%;
+}

Added: twiki/branches/test.lfs.org/css/twocolumn.css
===================================================================
--- twiki/branches/test.lfs.org/css/twocolumn.css	2004-07-15 10:57:24 UTC (rev 785)
+++ twiki/branches/test.lfs.org/css/twocolumn.css	2004-07-15 10:58:49 UTC (rev 786)
@@ -0,0 +1,132 @@
+ at import url("/css/common.css");
+
+#header {
+	background:	#caccdb;
+	margin:		0 1em;
+	border:		1px solid #b9bbca;
+}
+
+#headitems { 
+	position: 	absolute; 
+	top: 		1em; 
+	left: 		565px;
+	min-width:	16.5em;
+	font-size:	88%;
+}
+
+#search input { 
+	background: 	#bcc5e4; 
+	color: 		#000; 
+	vertical-align: middle; 
+	padding: 	0; 
+	margin: 	0 0 5px 0; 
+	font-size:	1em;
+}
+
+#search i\nput { 
+	border: 	1px solid #868ebc; /* Workaround for Konqueror, see http://centricle.com/ref/css/filters/ */
+}
+
+#search input:hover { 
+	background: 	#dbdffa; 
+}
+
+#search input:focus,
+#search textarea:focus,
+#search textarea:active,
+#search input:active { 
+	background:	#fefff1;
+	color:		#573337; 
+	border: 	1px solid #a7afd6; 
+}
+
+div.globalnav p,
+div.webnav p,
+#title h1 {
+	margin:		0;
+	padding:	0.1em 25px 0;
+}
+
+#title h1 {
+	padding:	0 0 0 25px;
+}
+
+div.globalnav	{
+	font-size:	1.2em;
+        background:     #dbddec;
+        margin:         0 1em;
+        border:         1px solid #b9bbca;
+}
+
+div.globalnav a:hover {
+        text-decoration: none;
+        border-bottom:  3px solid #ff7200;
+}
+
+div.webnav p {
+	margin:		4em 0em;
+	padding:	0.1em 1em;
+	float:		right;
+	width:		14em;
+}
+
+div.webnav .sep {
+	display:	none;
+}
+
+div.webnav a {
+	color: 		#aa3300;
+	padding:	4px .5em;
+	display:	block;
+}
+
+div.webnav a:visited {
+	color: 		#aa7366;
+}
+
+div.webnav a:hover {
+	color:		#ff3300;
+	text-decoration:	none;
+	border-bottom:	2px solid #ff3300;
+	padding-bottom:	2px;
+}
+
+#content	{
+	padding: 	1em; 
+	margin: 	0 15.5em 0 1em; 
+	min-width:	27em;
+	background: 	#fbfbfb; 
+	border:		2px solid #caccdb;
+	color: 		#0c1130; 
+	line-height: 	1.7em; 
+}
+
+#standardfooter {
+	position:	relative;
+        background:	#dbddec;
+	border:         1px solid #b9bbca;
+	margin: 	0 1.3em;
+	font-size:	0.76em;
+	font-weight:	normal;
+	padding: 	0.5em 2em;
+}
+
+/* Page-specifics */
+
+/* Search results */
+
+table.search-results {
+        border:         1px solid #ccd;
+        margin:         2px 0;
+}
+
+table.search-results th {
+        border:         1px solid #dde;
+        background:     #efefff;
+}
+
+table.search-results td {
+        font-size:      88%;
+        padding:        0;
+}
+

Added: twiki/branches/test.lfs.org/images/PythonPowered.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/PythonPowered.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/alfs_540x130.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/alfs_540x130.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/alfs_540x130_transp.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/alfs_540x130_transp.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/blfs_540x130.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/blfs_540x130.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/blfs_540x130_transp.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/blfs_540x130_transp.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/book_540x130.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/book_540x130.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/book_540x130_transp.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/book_540x130_transp.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/gnu-head-tiny.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/gnu-head-tiny.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/hints_540x130.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/hints_540x130.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/hints_540x130_transp.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/hints_540x130_transp.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/hlfs_540x130.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/hlfs_540x130.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/hlfs_540x130_transp.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/hlfs_540x130_transp.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/hr.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/hr.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/ie_warning.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/ie_warning.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/lfs_540x130.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/lfs_540x130.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/lfs_540x130_transp.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/lfs_540x130_transp.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/patches_540x130.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/patches_540x130.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/patches_540x130_transp.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/patches_540x130_transp.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/paypal-72x29.gif
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/paypal-72x29.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/powered_by_google_135x35.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/powered_by_google_135x35.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/powered_by_swish-e_109x35.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/powered_by_swish-e_109x35.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/wiki_540x130.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/wiki_540x130.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/images/wiki_540x130_transp.png
===================================================================
(Binary files differ)


Property changes on: twiki/branches/test.lfs.org/images/wiki_540x130_transp.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: twiki/branches/test.lfs.org/js/styleswitch.js
===================================================================
--- twiki/branches/test.lfs.org/js/styleswitch.js	2004-07-15 10:57:24 UTC (rev 785)
+++ twiki/branches/test.lfs.org/js/styleswitch.js	2004-07-15 10:58:49 UTC (rev 786)
@@ -0,0 +1,29 @@
+function chooseStyle (newstyle){
+var expdate = new Date();
+expdate.setTime(expdate.getTime() + (1000*3600*24*365));
+document.cookie = 'style=' + newstyle + '; expires=' + expdate.toGMTString() + '; path=/';
+self.location = self.location;
+}  
+
+
+if(document.cookie.indexOf('style=1')>=0)
+  
+document.write(
+	'<link rel="stylesheet" type="text/css" href="/css/twocolumn.css" title="TwoColumn">\n'  +
+	'<link rel="alternate stylesheet" type="text/css" href="/css/print.css" title="Print">\n'  +
+	'<link rel="alternate stylesheet" type="text/css" href="/css/onecolumn.css" title="OneColumn">\n');
+
+else if (document.cookie.indexOf('style=2')>=0)
+  
+document.write(
+	'<link rel="stylesheet" type="text/css" href="/css/print.css" title="Print">\n'  +
+	'<link rel="alternate stylesheet" type="text/css" href="/css/twocolumn.css" title="TwoColumn">\n'  +
+	'<link rel="alternate stylesheet" type="text/css" href="/css/onecolumn.css" title="OneColumn">\n');
+
+
+else document.write(
+	'<link rel="stylesheet" type="text/css" href="/css/onecolumn.css" title="OneColumn">\n' +
+	'<link rel="alternate stylesheet" type="text/css" href="/css/twocolumn.css" title="TwoColumn">\n' +
+	'<link rel="alternate stylesheet" type="text/css" href="/css/print.css" title="Print">\n');
+	
+

Added: twiki/branches/test.lfs.org/js/styleswitcher.js
===================================================================
--- twiki/branches/test.lfs.org/js/styleswitcher.js	2004-07-15 10:57:24 UTC (rev 785)
+++ twiki/branches/test.lfs.org/js/styleswitcher.js	2004-07-15 10:58:49 UTC (rev 786)
@@ -0,0 +1,64 @@
+function setActiveStyleSheet(title) {
+  var i, a, main;
+  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
+    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
+      a.disabled = true;
+      if(a.getAttribute("title") == title) a.disabled = false;
+    }
+  }
+}
+
+function getActiveStyleSheet() {
+  var i, a;
+  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
+    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
+  }
+  return null;
+}
+
+function getPreferredStyleSheet() {
+  var i, a;
+  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
+    if(a.getAttribute("rel").indexOf("style") != -1
+       && a.getAttribute("rel").indexOf("alt") == -1
+       && a.getAttribute("title")
+       ) return a.getAttribute("title");
+  }
+  return null;
+}
+
+function createCookie(name,value,days) {
+  if (days) {
+    var date = new Date();
+    date.setTime(date.getTime()+(days*24*60*60*1000));
+    var expires = "; expires="+date.toGMTString();
+  }
+  else expires = "";
+  document.cookie = name+"="+value+expires+"; path=/";
+}
+
+function readCookie(name) {
+  var nameEQ = name + "=";
+  var ca = document.cookie.split(';');
+  for(var i=0;i < ca.length;i++) {
+    var c = ca[i];
+    while (c.charAt(0)==' ') c = c.substring(1,c.length);
+    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
+  }
+  return null;
+}
+
+window.onload = function(e) {
+  var cookie = readCookie("style");
+  var title = cookie ? cookie : getPreferredStyleSheet();
+  setActiveStyleSheet(title);
+}
+
+window.onunload = function(e) {
+  var title = getActiveStyleSheet();
+  createCookie("style", title, 365);
+}
+
+var cookie = readCookie("style");
+var title = cookie ? cookie : getPreferredStyleSheet();
+setActiveStyleSheet(title);
\ No newline at end of file

Added: twiki/branches/test.lfs.org/styleswitcher/index.html
===================================================================
--- twiki/branches/test.lfs.org/styleswitcher/index.html	2004-07-15 10:57:24 UTC (rev 785)
+++ twiki/branches/test.lfs.org/styleswitcher/index.html	2004-07-15 10:58:49 UTC (rev 786)
@@ -0,0 +1,104 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
+
+<head>
+ <title> Linux From Scratch . Main . WebHome   </title>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+ <base href="http://test.linuxfromscratch.org/twiki/bin/view/Main/WebHome" />
+ <link rel="stylesheet" type="text/css" href="/css/onecolumn.css" media="screen" title="OneColumn" />
+ <link rel="alternate stylesheet" type="text/css" href="/css/twocolumn.css" media="screen" title="TwoColumn" />
+ <link rel="alternate stylesheet" type="text/css" href="/css/print.css" media="screen" title="Print" />
+</head>
+<body class="Main" id="WebHome">
+<p />
+<a name="PageTop"></a>
+<div id="header">
+<div id="logo">
+ <a href="http://test.linuxfromscratch.org/"><img src="/images/book_540x130_transp.png" alt="Linux From Scratch Homepage" /></a>
+</div>
+<div id="headitems">
+
+<div id="search">
+<form name="search" action="/twiki/bin/search/Main/">
+<p>
+ <label title="Enter your search terms"><input type="text" name="search" size="20" onfocus="if(this.value==this.defaultValue)
+this.value='';" value="enter text here" maxlength="255" accesskey="s" /></label>
+ <label title="Submit the search terms"><input type="submit" value="Search" /></label><br />
+ <input type="hidden" name="web" value="all" />
+ <input type="hidden" name="scope" value="text" />
+ <input type="hidden" name="ignorecase" value="on" />
+ <a href="/twiki/bin/view/Main/WebSearch">Search options</a>
+</p>
+
+</form>
+</div>
+</div>
+<p />
+<div class="globalnav">
+ <p><a href="/twiki/bin/view/Main/WebHome">Main</a> <span class="sep"> | </span> <a href="/twiki/bin/view/LFS/WebHome">LFS</a> <span
+class="sep"> | </span>  <a href="/twiki/bin/view/BLFS/WebHome">BLFS</a> <span class="sep"> | </span> <a
+href="/twiki/bin/view/HLFS/WebHome">HLFS</a> <span class="sep"> | </span> <a href="/twiki/bin/view/ALFS/WebHome">ALFS</a> <span
+class="sep"> | </span>  <a href="/twiki/bin/view/Hints/WebHome">Hints</a> <span class="sep"> | </span> <a
+href="/twiki/bin/view/Patches/WebHome">Patches</a> <span class="sep"> | </span> <a href="/twiki/bin/view/Support/WebHome">Support and
+Contact</a> <span class="sep"> | </span> <a href="/twiki/bin/view/Development/WebHome">Development</a> </p>
+
+</div>
+<p />
+<div class="webnav">
+ <p> <a href="/twiki/bin/view/Main/WebHome">Home</a> <span class="sep"> | </span> <a href="/twiki/bin/view/Main/News">News</a> <span
+class="sep"> | </span> <a href="/twiki/bin/view/Main/MissionStatement">Mission Statement</a> <span class="sep"> | </span> <a
+href="/twiki/bin/view/Main/Organization">Organization</a> <span class="sep"> | </span> <a
+href="/twiki/bin/view/Main/TWikiUsers">Registered Users</a> <span class="sep"> | </span> <a
+href="/twiki/bin/view/Main/Donate">Donate</a> <span class="sep"> | </span> <a href="/twiki/bin/view/Main/BecomeAMirror">Become a
+mirror</a> <span class="sep"> | </span> <a href="/twiki/bin/view/Main/Website">Website</a> </p>
+
+</div>
+<p />
+<div id="title">
+<h1><a name="WebHome_small_"> </a> <a href="/styleswitcher/">Styleswitcher</a> </h1>
+</div>
+<p />
+<p />
+<div id="content">
+<p />
+The use of the CSS stylesheet switcher controls on this website requires that Javascript is enabled. Unfortunately, it seems that
+Javascript is not available for you. We apologize for the inconvenience. Please note that you can still use your browsers controls if
+you wish to switch to a different CSS style, assuming that your browser supports CSS and has the necessary controls. At least Opera,
+Mozilla and Konqueror have the required controls.
+<p />
+More details about the styleswitcher can be found on <a href="http://www.alistapart.com/articles/n4switch/">the tutorial which
+explains it</a>.
+
+</div>
+<p />
+
+<p />
+<p />
+<div id="standardfooter">
+<div id="action">
+  <a href="/twiki/bin/edit/Main/WebHome?t=1089674793">Edit</a>
+  <span class="sep"> | </span> <a href="/twiki/bin/attach/Main/WebHome">Attach</a>
+  <span class="sep"> | </span> <a
+href="/twiki/bin/search/Main/SearchResult?scope=text&regex=on&search=Web%20*Home%5B%5EA-Za-z%5D">Backlinks</a>
+
+  <span class="sep"> | </span> <a href="/twiki/bin/rdiff/Main/WebHome">Diffs</a>  | r1.25 | <a
+href="/twiki/bin/rdiff/Main/WebHome?rev1=1.25&rev2=1.24">></a> | <a href="/twiki/bin/view/Main/WebHome?rev=1.24">r1.24</a> | <a
+href="/twiki/bin/rdiff/Main/WebHome?rev1=1.24&rev2=1.23">></a> | <a href="/twiki/bin/view/Main/WebHome?rev=1.23">r1.23</a>
+  <span class="sep"> | </span> <a href="/twiki/bin/oops/Main/WebHome?template=oopsmore&param1=1.25&param2=1.25">More</a>
+
+</div>
+<p />
+<p class="wikinav"><a href="#PageTop">Go to the top of this page</a> <span class="sep"> | </span> <a href="WebChanges">Changes</a>
+<span class="sep"> | </span> <a href="WebIndex">Index</a> <span class="sep"> | </span> <a href="WebNotify">Notify</a> <span
+class="sep"> | </span> <a href="WebStatistics">Stats</a> <span class="sep"> | </span>  Revision r1.25 - 06 Jul 2004 - 06:25 GMT - <a
+href="/twiki/bin/view/Main/JeremyHuntwork">JeremyHuntwork</a>. <a href="http://validator.w3.org/check/referer">XHTML</a>, <a
+href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>. </p>
+
+<p class="copyright">Linux From Scratch is copyright © 1999-2004 Gerard Beekmans. Site built by <a
+href="http://www.jeroencoumans.nl">Jeroen Coumans</a> and the <a href="/twiki/bin/view/Main/WebsiteTeam">WebsiteTeam</a>.</p>
+<p></p>
+</div>
+<p />
+<a name="PageBottom"></a>
+</body>
+</html>




More information about the website mailing list