diff options
author | Dave Arter <davea@mysociety.org> | 2015-08-27 15:46:19 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2015-08-28 14:27:16 +0100 |
commit | 671bb1705107fed62336e8a0d8697daddaafe4be (patch) | |
tree | 7b972a167e5abf34aaa654faeedb5b959d79e39d | |
parent | 3331192bb306dd1986477185db787f4c0ed87aef (diff) |
Append cobrand's CSS to index.html if CONFIG.COBRAND is set
-rw-r--r-- | www/index.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/www/index.html b/www/index.html index 1122007..5cd55ae 100644 --- a/www/index.html +++ b/www/index.html @@ -92,6 +92,17 @@ }; </script> + + <script type="text/javascript"> + // Include the cobrand's CSS, if CONFIG.COBRAND is set + if (CONFIG && CONFIG.COBRAND) { + var linkElement = document.createElement("link"); + linkElement.href = 'cobrands/' + CONFIG.COBRAND + '/css/style.css'; + linkElement.type = "text/css"; + linkElement.rel = 'stylesheet'; + $('head').append(linkElement); + } + </script> </head> <body onload="onload()"> <div id="map_box"> |