Adding new javascript files to be used by NarrativeWeb and WebCal

* src/data/Web_styleswitcher*.js
	* src/data/Makefile.am


svn: r10867
This commit is contained in:
Kees Bakker 2008-07-16 07:32:46 +00:00
parent 50fc6180c3
commit 40f8d655f5
3 changed files with 7 additions and 1 deletions

View File

@ -24,7 +24,9 @@ dist_pkgdata_DATA = \
Web_Nebraska.css\ Web_Nebraska.css\
Web_Print-Default.css\ Web_Print-Default.css\
Web_Simply-Red.css\ Web_Simply-Red.css\
Web_Visually.css Web_Visually.css\
Web_styleswitcher.js\
Web_styleswitcherMenu.js
# Rules for files with translatable strings # Rules for files with translatable strings
# These are taken care of by the intltool # These are taken care of by the intltool

View File

@ -0,0 +1,3 @@
var StyleFile = "narrative" + document.cookie.charAt(6) + ".css";
document.writeln('<link href="' + StyleFile + '" rel="stylesheet" type="text/css" media="screen" />');
document.writeln('<style type="text/css">!-- narrative' + document.cookie.charAt(6) + '--></style>');

View File

@ -0,0 +1 @@
document.write(<ul id="styleswitcherMenu"><li id="style"><a href="javascript: document.cookie='style='; window.location.reload();">Normal View</a></li><li id="style2"><a href="javascript: document.cookie='style=2'; window.location.reload();">High Contrast View</a></li></ul>);