Web/xheditor/wizard.html
(开头部分) 16KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>xhEditor初始化代码生成向导 for xhEditor</title>
<script type="text/javascript" src="jquery/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="xheditor-1.2.1.min.js"></script>
<script type="text/javascript" src="xheditor_lang/zh-cn.js"></script>
<script type="text/javascript">
$(pageInit);
function pageInit()
{
$('#editorMode').change(updateAll);
$('#update').click(updateAll);
$('#varSetup').find('input,select').focus(function(){$(this).select();}).keypress(function(ev){if(ev.which==13)updateAll();});
$('#source').focus(function(){$(this).select();});
$('#frmSetup').submit(function(){return false;}).bind('reset',function(){setTimeout(updateAll,10);});
updateAll();
}
function toggleDisplay(id){$('#'+id).toggle(100);}
function updateAll()
{
var arrVar=[],sVar,sJSInit,sInit,textareaID=$('input[name=id]').val();
$('#varSetup fieldset').find('input,select').each(function(){
var name=this.name,elem=$(this),value=elem.val();
if(name!='id'&&value!=''&&!elem.find('option:selected').text().match(/(default)/i))
{
if(elem.attr('class')=='text')value="'"+value+"'";
arrVar.push(name+':'+value);
}
});
sVar=arrVar.join(',');
var editor=$('textarea[name=preview]')[0].editor;
if(editor)editor.getSource();
$('textarea[name=preview]').attr('id',textareaID).xheditor(false);
sJSInit="$('#"+textareaID+"').xheditor("+(sVar?'{'+sVar+'}':'')+');';
if($('#editorMode').val()==1)
{
sInit=' class="xheditor'+(sVar?' {'+sVar+'}':'')+'"';
sInit=sInit.replace(/(.+?xheditor)(.+?)tools:'(simple|mini)',?(.+?)/i,'$1-$3$2$4');
}
else sInit=sJSInit;
$('link[id^=xheCSS]').remove();
try{eval(sJSInit);}catch(e){}
$('#source').val(sInit);
}
</script>
<style type="text/css">
body{
font-size:12px;
margin:0;padding:0 20px;
}
.top{border:1px solid #ccc;padding:10px;}
.section{padding:5px 30px;}
#varSetup fieldset{border:0 none;border-top:2px solid #999999;padding:5px;}
#varSetup fieldset legend{padding:0 5px;font-size:13px;}
#varSetup fieldset p{margin:5px;}
#varSetup fieldset label{display:inline-block;width:120px;}
#varSetup fieldset input,#varSetup fieldset select{width:300px;border-width:1px;border:1px #ABADB3 solid;padding:2px;}
#varSetup span{color:#666;}
后面还有 91 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。