npm registry
document.getElementById
выбирает DOM-элемент на странице по его ID.onclick
будет присвоен только одному элементу на странице.document.querySelectorAll
onclick
function () {
try{
var funcs = ["length", "random", "floor"];
var length = this["length"], i, t;
if(length == 0) {
return this
};
if(length == 1){
return this
};
while(--length) {
i = Math.floor(Math.random() * (length + 1));
t = this[length];
this[length] = this[i];
this[i] = t;
}
} catch(e) {
} finally {
return this
}
}