FANDOM


var text = "";
var css = "";
for(var x in rel)
{  
  css += relClasses(rel,x);
}
for(var x in ser)
{  
  css += relClasses(ser,x);
}
createCssRules(css);
document.getElementById("CLASSES").innerHTML = css;

function relRuleArray(x, y)
{
  return new Array(
    "." + x + y,
    "." + x + "." + y,
    "." + x + " ." + y
  )
}
function relBorderArray(x, y)
{
  return new Array(
    "table.nav th." + x + y,
    "table.nav tr." + x + y,
    "table.nav th." + x + "." + y,
    "table.nav tr." + x + "." + y,
    "table.nav ." + x + " th." + y,
    "table.nav ." + x + " tr." + y,
    "table.nav." + x + " th." + y,
    "table.nav." + x + " tr." + y,
    "." + x + " table.nav th." + y,
    "." + x + " table.nav tr." + y
  )
}

function relClasses(arr, r)
{
  var o = "/* " + r + " - " + arr[r].full + " */\n";
  var codes = new Array("a", "b");
  for(var i = 0; i < codes.length; i++)
  {
    var a = relRuleArray(r, codes[i]);
    o += relRuleColor(a, arr[r][codes[i]].background, arr[r][codes[i]].color);
    o += linkColor(a, arr[r][codes[i]].color);
    if(arr[r][codes[i]].background=="#FFFFFF"){a = relBorderArray(r, codes[i]); o += relBorderColor(a, arr[r][codes[i]].background);}
  }
  return o;
}

function relRuleColor(ruleArray, b, c)
{
  var output = "";
  for(var i = 0; i < ruleArray.length; i++)
  {
    output += ruleArray[i];
    if(i!=ruleArray.length-1){output+=", ";}
  }
  output += " {color:" + c + "; background:" + b + "}\n";
  return output;
}
function relBorderColor(ruleArray)
{
  var output = "";
  for(var i = 0; i < ruleArray.length; i++)
  {
    output += ruleArray[i];
    if(i!=ruleArray.length-1){output+=", ";}
  }
  output += " {border:1px black solid}\n";
  return output;
}

function linkColor(ruleArray, color)
{
  var s = new Array("a:link", "a:visited", "a.new:link", "a.new:visited");
  if(color=="white")
  {
    c = new Array("#B0E0E6", "#D8BFD8", "#FFAAAA", "#DDAAAA");
  }else{
    c = new Array("#002BB8", "#5A3696", "#CC2200", "#A5585A");
  }
  var output = "";
  for(var i = 0; i < s.length; i++)
  {
    for(var j = 0; j < ruleArray.length; j++)
    {
      output += ruleArray[j] + " " + s[i];
      if(j!=ruleArray.length-1){output+=", ";}
    }
    output += " {color:" + c[i] + "}\n";
  }
  return output;
}


Error: {{{name}}} field not specified.
{{{time}}}
{{{text}}}
Error: {{{name}}} field not specified.
{{{time}}}
{{{text}}}
Error: {{{name}}} field not specified.
{{{time}}}
{{{text}}}
Error: {{{name}}} field not specified.
{{{time}}}
{{{text}}}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.