misc/hats_js_anim.xhtml
changeset 12927 9400a272c88f
parent 11877 95a3041aadb9
child 13409 697aaee36684
equal deleted inserted replaced
12926:502d18361c7e 12927:9400a272c88f
    91 
    91 
    92     var resp = xml.responseText;
    92     var resp = xml.responseText;
    93     var r = />([^<]*).png</g;
    93     var r = />([^<]*).png</g;
    94     var x;
    94     var x;
    95     while(x = r.exec(resp)) 
    95     while(x = r.exec(resp)) 
    96         if (!/^Team|NoHat/.test(x[1])) // Exclude team coloured ones as repetitive, NoHat one as uninteresting
    96         if (!/NoHat|hair_team|cap_team|TeamTophat/.test(x[1])) // Exclude NoHat as uninteresting. hair_team, cap_team and TeamTophat as repetitive team hats
    97             masks.push(x[1]);
    97             masks.push(x[1]);
    98 
    98 
    99     var opt = document.createElement("option");
    99     var opt = document.createElement("option");
   100     opt.appendChild(document.createTextNode(""));
   100     opt.appendChild(document.createTextNode(""));
   101     var sel = document.body.appendChild(document.createElement("select"));
   101     var sel = document.body.appendChild(document.createElement("select"));