4 ms·
sorry, could not resist, it's _hacker_ news after-all isn't it: http://www.colormunki.com/game/huetest_kiosk http://www.colormunki.com/game/huetest_kiosk (that
by bestest 13y ago
sorry, could not resist, it's _hacker_ news after-all isn't it:
http://www.colormunki.com/game/huetest_kiosk http://www.colormunki.com/game/huetest_kiosk (that's the source of the test iframe), open console, paste, enter, submit score:
var rows = document.getElementsByClassName('drag_container');
for(var i = 0, l = rows.length; i < l; i++){
var row = rows[i];
var items = row.getElementsByClassName('drag_patch');
items = Array.prototype.slice.call(items);
items.sort(function(a, b){
return a.id.match(/\d+$/)[0] - b.id.match(/\d+$/)[0];
});
row.innerHTML = items.map(function(a){ return a.outerHTML }).join('');
}