Author: dkulp
Date: Wed Aug 28 15:16:26 2013
New Revision: 876494
Log:
window.location.protocol apparantly contains the ":"
Modified:
websites/production/cxf/content/faq.html
Modified: websites/production/cxf/content/faq.html
==============================================================================
--- websites/production/cxf/content/faq.html (original)
+++ websites/production/cxf/content/faq.html Wed Aug 28 15:16:26 2013
@@ -28,6 +28,10 @@
<script type="text/javascript">
var http = window.location.protocol;
+
+if ("https:" != http) {
+ http = "http:";
+}
var head= document.getElementsByTagName('head')[0];
function addLink(url)
@@ -35,14 +39,14 @@ function addLink(url)
link= document.createElement('link');
link.type= 'text/css';
link.rel= 'stylesheet';
- link.href= http + '://cxf.apache.org' + url;
+ link.href= http + '//cxf.apache.org' + url;
head.appendChild(link);
}
function addScript(scpt)
{
var script= document.createElement('script');
script.type= 'text/javascript';
- script.src= http + '://cxf.apache.org' + scpt;
+ script.src= http + '//cxf.apache.org' + scpt;
head.appendChild(script);
}