Help.Web/editor/scripts/moz/color_picker.htm
(开头部分) 27KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../style/editor.css" rel="stylesheet" type="text/css">
<script>
var sLangDir=window.opener.sLangDir;
document.write("<scr"+"ipt src='../language/"+sLangDir+"/color.js'></scr"+"ipt>");
</script>
<script>writeTitle()</script>
<script>
//******* COLOR ARRAY *********
var dialogArg=window.opener;
var sName=window.location.search.substr(1);//color object name
var arrColCustoms = eval("dialogArg."+sName).customColors;
//******* ONLOAD *********
function bodyOnLoad()
{
sHex=eval("dialogArg."+sName).color;
var idCurrent = document.getElementById("idCurrent")
idCurrent.style.backgroundColor="#" + (sHex==null?"FFFFFF":sHex);
nRed=convertHexToDec(idCurrent.style.backgroundColor.substr(1,2))+"";
nGreen=convertHexToDec(idCurrent.style.backgroundColor.substr(3,2))+"";
nBlue=convertHexToDec(idCurrent.style.backgroundColor.substr(5,2))+"";
if(idCurrent.style.backgroundColor=="")
{
nRed="";nGreen="";nBlue="";
}
idCurrent.title = "Red: "+nRed+"\nGreen: "+nGreen+"\nBlue: "+nBlue+"\nHex: "+idCurrent.style.backgroundColor;
}
//******* APPLY COLOR *********
function doApply()
{
var inpHex = document.getElementById("inpHex");
var chkUseColorName = document.getElementById("chkUseColorName");
var idColorName = document.getElementById("idColorName");
if(chkUseColorName.checked && idColorName.innerText!="")
eval("dialogArg."+sName).color=idColorName.innerHTML;
else
eval("dialogArg."+sName).color="#" + inpHex.value;
eval("dialogArg."+sName).onPickColor();
}
function doRemove()
{
eval("dialogArg."+sName).color="";
eval("dialogArg."+sName).onPickColor()
}
//******* REFRESH CUSTOM COLOR *********
function applyCustomColor()
{
for(var i=0;i<22;i++)
{
var cellCustom=document.getElementById("cellCustom"+i)
后面还有 472 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
