Author: dkulp
Date: Wed Aug 28 16:18:17 2013
New Revision: 1518276
URL: http://svn.apache.org/r1518276
Log:
Use root relative paths for the scripts/css
Modified:
cxf/web/template/template.vm
Modified: cxf/web/template/template.vm
URL:
http://svn.apache.org/viewvc/cxf/web/template/template.vm?rev=1518276&r1=1518275&r2=1518276&view=diff
==============================================================================
--- cxf/web/template/template.vm (original)
+++ cxf/web/template/template.vm Wed Aug 28 16:18:17 2013
@@ -19,51 +19,28 @@
-->
<html>
<head>
-
+
+<link type="text/css" rel="stylesheet" href="/resources/site.css">
+<script src='/resources/space.js'></script>
+
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<meta name="keywords" content="business integration, EAI, SOA, Service
Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic
Data Interchange, standards support, integration standards, application
integration, middleware, software, solutions, services, CXF, open source">
<meta name="description" content="Apache CXF, Services Framework -
$page.title">
-<script type="text/javascript">
-var http = window.location.protocol;
-
-if ("https:" != http) {
- http = "http:";
-}
-var head= document.getElementsByTagName('head')[0];
-
-function addLink(url)
-{
- link= document.createElement('link');
- link.type= 'text/css';
- link.rel= 'stylesheet';
- 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;
- head.appendChild(script);
-}
-
-addLink('/resources/site.css');
-addScript('/resources/space.js');
-
#if($page.hasCode)
- addLink('/resources/highlighter/styles/shCoreCXF.css');
- addLink('/resources/highlighter/styles/shThemeCXF.css');
- addScript('/resources/highlighter/scripts/shCore.js')
+<link type="text/css" rel="stylesheet"
href="/resources/highlighter/styles/shCoreCXF.css">
+<link type="text/css" rel="stylesheet"
href="/resources/highlighter/styles/shThemeCXF.css">
+
+<script src='/resources/highlighter/scripts/shCore.js'></script>
#foreach ($hscript in $page.CodeScripts)
- addScript('/resources/highlighter/scripts/$hscript')
+<script src='/resources/highlighter/scripts/$hscript'></script>
#end
- addScript('/resources/highlighter/highlighterInit.js')
- #end
-
+<script>
+ SyntaxHighlighter.defaults['toolbar'] = false;
+ SyntaxHighlighter.all();
</script>
-
+#end
<title>