Detect-It-Easy/db/result-minimal
2014-06-30 22:56:41 +10:00

28 lines
587 B
Text

// Standard result format - "type: name(version)[options]".
// If no version or options, leave them out.
includeScript("_init");
function result(bShowType,bShowVersion,bShowOptions)
{
var sResult="";
if(bDetected)
{
if(bShowType)
{
sResult+=sType+": ";
}
sResult+=sName;
if(bShowVersion&&sVersion!="")
{
sResult+="("+sVersion+")";
}
if(bShowOptions&&sOptions!="")
{
sResult+="["+sOptions+"]";
}
}
return sResult;
}