mirror of https://github.com/dirtbags/moth.git
proper way to reference an element
This commit is contained in:
parent
62d42934a0
commit
5b8c83bf68
|
@ -71,10 +71,10 @@ for cat in os.listdir(opts.puzzles):
|
||||||
team = readCookie('team');
|
team = readCookie('team');
|
||||||
passwd = readCookie('passwd');
|
passwd = readCookie('passwd');
|
||||||
if (team != null) {
|
if (team != null) {
|
||||||
form.t.value = team;
|
document.getElementById("form").t.value = team;
|
||||||
}
|
}
|
||||||
if (passwd != null) {
|
if (passwd != null) {
|
||||||
form.w.value = passwd;
|
document.getElementById("form").w.value = passwd;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
window.onload = getTeamInfo;
|
window.onload = getTeamInfo;
|
||||||
|
|
Loading…
Reference in New Issue