📄 main.jx
字号:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2001-2007 Hippo (www.hippo.nl)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html xmlns:hc="http://hippo.nl/cms/1.0" xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
<head>
<title>Hippo CMS Mainframe</title>
<link href="/workbench/css/main.css" rel="stylesheet" type="text/css"/>
<hc:comment><![CDATA[[if lt IE 7]>
<style type="text/css">
html{
height:auto;
}
body{
height:auto;
}
</style>
<![endif]]]></hc:comment>
<script type="text/javascript">
<![CDATA[
function doIt(url) {
parent.window.frames["topframe"].Application.sm.lookup('framework.eventmanager').fireEvent('saveDocument', [{key:'url', val:url}])
}
function saveDocument(uri, src, action) {
if (typeof action != 'undefined' && action != null)
document.saveDocument.action=action;
else
document.saveDocument.action='/actions/save'; // default action
document.saveDocument.path.value=uri;
document.saveDocument.src.value=src;
document.saveDocument.objectUri.value=uri;
document.saveDocument.submit();
var url = uri.substring(0, uri.indexOf('?'));
setTimeout("doIt('"+url+"')", 3000);
return true;
}
]]>
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#ffffff" id="bodyel">
<iframe src="/workbench/blank.html" frameborder="0" width="0" height="0" id="hiddenframe" name="hiddenframe"/>
<div id="infoscreen" style="display:none;" class="info">
<div id="infoVersion">Your current browser is not supported by HippoCMS.</div>
</div>
<div id="splashscreen" class="splash">
<jx:if test="${cocoon.parameters.version}">
<script type="text/javascript"><![CDATA[
function
showProgressDots(numberOfDots) {
var progress = document.getElementById('progressDots');
switch(numberOfDots) {
case 0:
progress.innerHTML = ''; timerHandle = setTimeout('showProgressDots(1)',300);
break;
case 1:
progress.innerHTML = '.'; timerHandle = setTimeout('showProgressDots(2)',300);
break;
case 2:
progress.innerHTML = '..'; timerHandle = setTimeout('showProgressDots(3)',300);
break;
case 3:
progress.innerHTML = '...'; timerHandle = setTimeout('showProgressDots(4)',300);
break;
case 4:
progress.innerHTML = '....'; timerHandle = setTimeout('showProgressDots(5)',300);
break;
case 5:
progress.innerHTML = '.....'; timerHandle = setTimeout('showProgressDots(0)',300);
break;
}
}
window.setTimeout('showProgressDots(0)',300);
]]></script>
<div id="splashVersion">
<div id="splashVersionProgress">Loading Hippo CMS<span id="progressDots"></span></div>
<div id="splashVersionVersion">Version: ${cocoon.parameters.version}</div>
</div>
</jx:if>
</div>
<div id="saveDocument" style="visibility:hidden;" class="view">
<form name="saveDocument" method="post" action="/actions/save" target="hiddenframe">
<input type="hidden" name="src" value=""/>
<input type="hidden" name="path" value=""/>
<input type="hidden" name="objectUri" value=""/>
</form>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -