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