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:
parent
50fc6180c3
commit
40f8d655f5
@ -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
|
||||||
|
3
src/data/Web_styleswitcher.js
Normal file
3
src/data/Web_styleswitcher.js
Normal 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>');
|
1
src/data/Web_styleswitcherMenu.js
Normal file
1
src/data/Web_styleswitcherMenu.js
Normal 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>);
|
Loading…
Reference in New Issue
Block a user