diff --git a/app.js b/serv/app.js similarity index 64% rename from app.js rename to serv/app.js index 09c1a717..d98e002f 100644 --- a/app.js +++ b/serv/app.js @@ -12,4 +12,11 @@ } } + var randomize = function(id) { + var list = document.getElementById(id); + for(var i = list.children.length; i > -1; i--) { + list.appendChild(list.children[Math.random() * i | 0]); + } + } + })(window, document);