Skip to content

Instantly share code, notes, and snippets.

@felipepatricio
Created December 19, 2018 20:26
Show Gist options
  • Save felipepatricio/c80a0c11a799a6800da7ec9ee7f8e6e7 to your computer and use it in GitHub Desktop.
Save felipepatricio/c80a0c11a799a6800da7ec9ee7f8e6e7 to your computer and use it in GitHub Desktop.
function initUi() {
let links = document.getElementByTagName('a'),
i = 0,
length = links.lenght
while(i < len) {
update(links[i += 1]);
}
document.getElementById('send-btn').onclick = () => {
start()
}
document.body.className = 'active'
}
function initUi() {
let localDocument = document,
links = localDocument.getElementByTagName('a'),
i = 0,
length = links.lenght
while(i < length) {
update(links[i += 1]);
}
localDocument.getElementById('send-btn').onclick = () => {
start()
}
localDocument.body.className = 'active'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment