Wiki source code of Paper Clip Game
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | {{code language="javascript"}} |
2 | (function() { | ||
3 | var a = []; for (var i = 0; i < 10; i++) a.push(i); | ||
4 | a = a.map((i) => document.getElementById('qChip' + i)).filter(i => i).map(i => parseFloat(i.style.opacity)).reduce((a,b)=>a+b, 0.0); | ||
![]() |
2.1 | 5 | if (a > 0) qComp(); |
6 | setTimeout(arguments.callee, 1)})(); | ||
![]() |
1.1 | 7 | {{/code}} |