| r1403 vs r1404 | ||
|---|---|---|
| ... | ... | |
| 3 | 3 | .mine-cell {vertical-align:middle;display:inline-block;background:#fff} |
| 4 | 4 | .mine-hide {display:none} |
| 5 | 5 | }}} |
| 6 | {{{#!if mine = [ | |
| 6 | {{{#!if mine = [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | |
| 7 | 7 | }}} |
| 8 | 8 | |
| 9 | 9 | ||<nopad> {{{#!if index = 0, cell = 0 |
| 10 | }}}{{{#! | |
| 11 | ||
| 12 | ||
| 10 | }}}{{{#!if mine[index] == 0 | |
| 13 | 11 | {{{#!if mine[index - 10] == 1 |
| 14 | 12 | {{{#!if cell = cell + 1 |
| 15 | 13 | }}}}}}{{{#!if mine[index - 9] == 1 |
| ... | ... | |
| 26 | 24 | {{{#!if cell = cell + 1 |
| 27 | 25 | }}}}}}{{{#!if mine[index + 10] == 1 |
| 28 | 26 | {{{#!if cell = cell + 1 |
| 29 | }}}}}} | |
| 30 | ||
| 31 | ||
| 32 | ||
| 27 | }}}}}}}}}{{{#!wiki class="mine-@index@ mine-button" onclick="add-class,mine-@index@,mine-cell;remove-class,mine-@index@,mine-hide" | |
| 33 | 28 | {{{#!wiki class="mine-@index@ mine-hide" |
| 34 | {{{#!if | |
| 35 | ||
| 36 | ||
| 37 | ||
| 38 | ||
| 39 | ||
| 40 | ||
| 41 | ||
| 42 | ||
| 43 | ||
| 44 | ||
| 45 | ||
| 46 | ||
| 47 | ||
| 48 | ||
| 49 | ||
| 50 | ||
| 51 | ||
| 52 | @cell@}}} | |
| 29 | {{{#!if !(cell == 0) | |
| 30 | @cell@}}}{{{#!if mine[index] == 1 | |
| 53 | 31 | ●}}}}}}}}} || |
| 54 | 32 | |
| 55 | 33 | |
| ... | ... |