From 40f8d655f5c16df9232ecec2508bd9e8721aba82 Mon Sep 17 00:00:00 2001 From: Kees Bakker Date: Wed, 16 Jul 2008 07:32:46 +0000 Subject: [PATCH] Adding new javascript files to be used by NarrativeWeb and WebCal * src/data/Web_styleswitcher*.js * src/data/Makefile.am svn: r10867 --- src/data/Makefile.am | 4 +++- src/data/Web_styleswitcher.js | 3 +++ src/data/Web_styleswitcherMenu.js | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/data/Web_styleswitcher.js create mode 100644 src/data/Web_styleswitcherMenu.js diff --git a/src/data/Makefile.am b/src/data/Makefile.am index 11839c230..2cfc65660 100644 --- a/src/data/Makefile.am +++ b/src/data/Makefile.am @@ -24,7 +24,9 @@ dist_pkgdata_DATA = \ Web_Nebraska.css\ Web_Print-Default.css\ Web_Simply-Red.css\ - Web_Visually.css + Web_Visually.css\ + Web_styleswitcher.js\ + Web_styleswitcherMenu.js # Rules for files with translatable strings # These are taken care of by the intltool diff --git a/src/data/Web_styleswitcher.js b/src/data/Web_styleswitcher.js new file mode 100644 index 000000000..bc1629f80 --- /dev/null +++ b/src/data/Web_styleswitcher.js @@ -0,0 +1,3 @@ +var StyleFile = "narrative" + document.cookie.charAt(6) + ".css"; +document.writeln(''); +document.writeln(''); diff --git a/src/data/Web_styleswitcherMenu.js b/src/data/Web_styleswitcherMenu.js new file mode 100644 index 000000000..dd4edc72d --- /dev/null +++ b/src/data/Web_styleswitcherMenu.js @@ -0,0 +1 @@ +document.write();