MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / fetchAccount

Function fetchAccount

702/WebActivator/frontend.js:81–109  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

79}
80
81function fetchAccount(i)
82{
83 mailbox.idx = i;
84 mailbox.action = 0;
85 call_native();
86 while(ui[i].username.firstChild)
87 ui[i].username.removeChild(ui[i].username.firstChild);
88 if(!mailbox.account_name)
89 {
90 var italic = document.createElement('i');
91 ui[i].username.appendChild(italic);
92 italic.appendChild(document.createTextNode('Account does not exist'));
93 ui[i].id.value = '';
94 ui[i].id.readOnly = true;
95 ui[i].button.disabled = true;
96 return;
97 }
98 var string_id = '';
99 for(var j = 7; j >= 0; j--)
100 {
101 var digit = mailbox.account_id[j];
102 string_id += "0123456789ABCDEF"[digit >> 4];
103 string_id += "0123456789ABCDEF"[digit & 15];
104 }
105 ui[i].username.appendChild(document.createTextNode(mailbox.account_name));
106 ui[i].id.value = string_id;
107 ui[i].id.readOnly = false;
108 ui[i].button.disabled = false;
109}
110
111function fetchAccounts()
112{

Callers 1

fetchAccountsFunction · 0.70

Calls 1

call_nativeFunction · 0.70

Tested by

no test coverage detected