blob: 4981d7c9c63b598e45c363abb9d39523afc3ec69 (
plain)
1
2
3
4
5
6
7
|
// let n = 51, u = 'px';
let n = 100 / 9, u = '%';
for (let i = 0; i < 94; ++i) {
let x = (i % 10) | 0;
let y = (i / 10) | 0;
console.log(`.unit.u${i}{background-position:${x*n}${u} ${y*n}${u}}`);
}
|