| r1451 vs r1454 | ||
|---|---|---|
| ... | ... | |
| 16 | 16 | |
| 17 | 17 | .mine-enable {width:30px;height:30px;text-align:center;background:radial-gradient(farthest-corner, #fff 10%, #0e0 50%, #050 90%, #050 0);cursor:default} |
| 18 | 18 | |
| 19 | .mine-disable {width:30px;height:30px;text-align:center;background:no-repeat linear-gradient(#555, #555)50% 50%/calc(100% - 1px) calc(100% - 1px), linear-gradient(gray, gray);cursor:default} | |
| 20 | ||
| 19 | 21 | .mine-flag-icon {margin-top: -30px;width:30px;height:30px;background:no-repeat linear-gradient(#000, #000)40% 80%/45% 17%, no-repeat linear-gradient(90deg, #000, #000)40% 50%/10% 60%, no-repeat conic-gradient(from 245deg at 100% 50%, red 50deg, transparent 0)70% 25%/40% 40%;cursor:pointer} |
| 20 | 22 | |
| 23 | .mine-flag-button {width:30px;height:30px;background:no-repeat linear-gradient(#000, #000)40% 80%/45% 17%, no-repeat linear-gradient(90deg, #000, #000)40% 50%/10% 60%, no-repeat conic-gradient(from 245deg at 100% 50%, red 50deg, transparent 0)70% 25%/40% 40%;cursor:default} | |
| 24 | ||
| 21 | 25 | .mine-table {display:table} |
| 22 | 26 | |
| 23 | 27 | .mine-align {display:table-cell;vertical-align:middle} |
| ... | ... | |
| 25 | 29 | .mine-hide {display:none} |
| 26 | 30 | |
| 27 | 31 | }}} |
| 28 | {{{#!if index = -1, mine = [ | |
| 32 | {{{#!if index = -1, mine = [1, 1, 0, 1, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1] | |
| 29 | 33 | }}} |
| 30 | 34 | |
| 31 | 35 | ||{{{#!wiki |
| 32 | 36 | {{{#!wiki style="" |
| 33 | 37 | ||<nopad><tablealign=center><tablebordercolor=transparent> {{{#!wiki class="mine-align" |
| 34 | {{{#!wiki class="mine-enable" | |
| 38 | {{{#!wiki class="mine-disable mine-hide" | |
| 39 | }}}{{{#!wiki class="mine-enable" | |
| 35 | 40 | {{{#!wiki class="dig mine-mode" onclick="add-class,flag,mine-mode;remove-class,dig,mine-mode;add-class;add-class,mine-flag,mine-hide;remove-class,cell,mine-hide" |
| 36 | 41 | {{{#!wiki class="start mine-enable" |
| 37 | 42 | }}}}}}}}}}}}{{{#!wiki class="mine-align" |
| 38 | {{{#!wiki class="mine-enable" | |
| 43 | {{{#!wiki class="mine-disable mine-hide" | |
| 44 | {{{#!wiki class="mine-flag-button" | |
| 45 | }}}}}}{{{#!wiki class="mine-enable" | |
| 39 | 46 | {{{#!wiki class="flag mine-mode" onclick="add-class,dig,mine-mode;remove-class,flag,mine-mode;remove-class,start,mine-enable;remove-class,mine-flag,mine-hide;add-class,cell,mine-hide" |
| 40 | {{{#!wiki | |
| 47 | {{{#!wiki class="mine-flag-button" | |
| 41 | 48 | }}}}}}}}}}}} ||}}}{{{#!wiki class="mine-table" |
| 42 | 49 | {{{#!wiki class="mine-align" |
| 43 | 50 | {{{#!if ++index, cell = 0 |
| ... | ... | |
| 73 | 80 | {{{#!wiki class="mineh@index@ mine-hide" |
| 74 | 81 | {{{#!if cell > 0 |
| 75 | 82 | @cell@}}}}}}}}}}}}{{{#!if mine[index] == 1 |
| 76 | {{{#!wiki class="miner@index@ mine-num" onclick="add-class,mine,mine-trans;add-class,miner@index@,mine-red;remove-class,mineh,mine-hide" | |
| 83 | {{{#!wiki class="miner@index@ mine-num" onclick="add-class,mine,mine-trans;add-class,miner@index@,mine-red;remove-class,mineh,mine-hide;add-class,mine-flag-icon,mine-hide;add-class,mine-enable,mine-hide;remove-class,mine-disable,mine-hide" | |
| 77 | 84 | {{{#!wiki class="mine mine-over" |
| 78 | 85 | {{{#!wiki class="mineh mine-hide" |
| 79 | 86 | ●}}}}}}}}}}}}}}}{{{#!wiki class="mode-flag@index@ mine-flag-icon mine-hide" onclick="add-class,mode-flag@index@,mine-hide" |
| 80 | }}}}}}{{{#!wiki class="mine-align" | |
| 81 | {{{#!if ++index, cell = 0 | |
| 82 | }}}{{{#!if mine[index] == 0 | |
| 83 | {{{#!if index % 9 != 0 && index >= 9 | |
| 84 | {{{#!if mine[index - 10] == 1 | |
| 85 | {{{#!if ++cell | |
| 86 | }}}}}}}}}{{{#!if index > 9 | |
| 87 | {{{#!if mine[index - 9] == 1 | |
| 88 | {{{#!if ++cell | |
| 89 | }}}}}}}}}{{{#!if index % 9 != 8 && index >= 9 | |
| 90 | {{{#!if mine[index - 8] == 1 | |
| 91 | {{{#!if ++cell | |
| 92 | }}}}}}}}}{{{#!if index % 9 != 0 | |
| 93 | {{{#!if mine[index - 1] == 1 | |
| 94 | {{{#!if ++cell | |
| 95 | }}}}}}}}}{{{#!if index % 9 != 8 | |
| 96 | {{{#!if mine[index + 1] == 1 | |
| 97 | {{{#!if ++cell | |
| 98 | }}}}}}}}}{{{#!if index % 9 != 0 && index < 72 | |
| 99 | {{{#!if mine[index + 8] == 1 | |
| 100 | {{{#!if ++cell | |
| 101 | }}}}}}}}}{{{#!if index < 72 | |
| 102 | {{{#!if mine[index + 9] == 1 | |
| 103 | {{{#!if ++cell | |
| 104 | }}}}}}}}}{{{#!if index % 9 != 8 && index < 72 | |
| 105 | {{{#!if mine[index + 10] == 1 | |
| 106 | {{{#!if ++cell | |
| 107 | }}}}}}}}}}}}{{{#!wiki class="mode@index@ mine-flag mine-hide" onclick="remove-class,mode-flag@index@,mine-hide" | |
| 108 | }}}{{{#!wiki class="cell@index@ cell" onclick="remove-class,mode@index@,mine-flag;remove-class,cell@index@,cell" | |
| 109 | {{{#!if mine[index] == 0 | |
| 110 | {{{#!wiki class="mine@index@ mine-safe" onclick="add-class,mine@index@,mine-num;remove-class,mineh@index@,mine-hide" | |
| 111 | {{{#!wiki class="mineh@index@ mine-hide" | |
| 112 | {{{#!if cell > 0 | |
| 113 | @cell@}}}}}}}}}}}}{{{#!if mine[index] == 1 | |
| 114 | {{{#!wiki class="miner@index@ mine-num" onclick="add-class,mine,mine-trans;add-class,miner@index@,mine-red;remove-class,mineh,mine-hide" | |
| 115 | {{{#!wiki class="mine mine-over" | |
| 116 | {{{#!wiki class="mineh mine-hide" | |
| 117 | ●}}}}}}}}}}}}}}}{{{#!wiki class="mode-flag@index@ mine-flag-icon mine-hide" onclick="add-class,mode-flag@index@,mine-hide" | |
| 118 | }}}}}}{{{#!wiki class="mine-align" | |
| 119 | {{{#!if ++index, cell = 0 | |
| 120 | }}}{{{#!if mine[index] == 0 | |
| 121 | {{{#!if index % 9 != 0 && index >= 9 | |
| 122 | {{{#!if mine[index - 10] == 1 | |
| 123 | {{{#!if ++cell | |
| 124 | }}}}}}}}}{{{#!if index > 9 | |
| 125 | {{{#!if mine[index - 9] == 1 | |
| 126 | {{{#!if ++cell | |
| 127 | }}}}}}}}}{{{#!if index % 9 != 8 && index >= 9 | |
| 128 | {{{#!if mine[index - 8] == 1 | |
| 129 | {{{#!if ++cell | |
| 130 | }}}}}}}}}{{{#!if index % 9 != 0 | |
| 131 | {{{#!if mine[index - 1] == 1 | |
| 132 | {{{#!if ++cell | |
| 133 | }}}}}}}}}{{{#!if index % 9 != 8 | |
| 134 | {{{#!if mine[index + 1] == 1 | |
| 135 | {{{#!if ++cell | |
| 136 | }}}}}}}}}{{{#!if index % 9 != 0 && index < 72 | |
| 137 | {{{#!if mine[index + 8] == 1 | |
| 138 | {{{#!if ++cell | |
| 139 | }}}}}}}}}{{{#!if index < 72 | |
| 140 | {{{#!if mine[index + 9] == 1 | |
| 141 | {{{#!if ++cell | |
| 142 | }}}}}}}}}{{{#!if index % 9 != 8 && index < 72 | |
| 143 | {{{#!if mine[index + 10] == 1 | |
| 144 | {{{#!if ++cell | |
| 145 | }}}}}}}}}}}}{{{#!wiki class="mode@index@ mine-flag mine-hide" onclick="remove-class,mode-flag@index@,mine-hide" | |
| 146 | }}}{{{#!wiki class="cell@index@ cell" onclick="remove-class,mode@index@,mine-flag;remove-class,cell@index@,cell" | |
| 147 | {{{#!if mine[index] == 0 | |
| 148 | {{{#!wiki class="mine@index@ mine-safe" onclick="add-class,mine@index@,mine-num;remove-class,mineh@index@,mine-hide" | |
| 149 | {{{#!wiki class="mineh@index@ mine-hide" | |
| 150 | {{{#!if cell > 0 | |
| 151 | @cell@}}}}}}}}}}}}{{{#!if mine[index] == 1 | |
| 152 | {{{#!wiki class="miner@index@ mine-num" onclick="add-class,mine,mine-trans;add-class,miner@index@,mine-red;remove-class,mineh,mine-hide" | |
| 153 | {{{#!wiki class="mine mine-over" | |
| 154 | {{{#!wiki class="mineh mine-hide" | |
| 155 | ●}}}}}}}}}}}}}}}{{{#!wiki class="mode-flag@index@ mine-flag-icon mine-hide" onclick="add-class,mode-flag@index@,mine-hide" | |
| 156 | }}}}}}{{{#!wiki class="mine-align" | |
| 157 | {{{#!if ++index, cell = 0 | |
| 158 | }}}{{{#!if mine[index] == 0 | |
| 159 | {{{#!if index % 9 != 0 && index >= 9 | |
| 160 | {{{#!if mine[index - 10] == 1 | |
| 161 | {{{#!if ++cell | |
| 162 | }}}}}}}}}{{{#!if index > 9 | |
| 163 | {{{#!if mine[index - 9] == 1 | |
| 164 | {{{#!if ++cell | |
| 165 | }}}}}}}}}{{{#!if index % 9 != 8 && index >= 9 | |
| 166 | {{{#!if mine[index - 8] == 1 | |
| 167 | {{{#!if ++cell | |
| 168 | }}}}}}}}}{{{#!if index % 9 != 0 | |
| 169 | {{{#!if mine[index - 1] == 1 | |
| 170 | {{{#!if ++cell | |
| 171 | }}}}}}}}}{{{#!if index % 9 != 8 | |
| 172 | {{{#!if mine[index + 1] == 1 | |
| 173 | {{{#!if ++cell | |
| 174 | }}}}}}}}}{{{#!if index % 9 != 0 && index < 72 | |
| 175 | {{{#!if mine[index + 8] == 1 | |
| 176 | {{{#!if ++cell | |
| 177 | }}}}}}}}}{{{#!if index < 72 | |
| 178 | {{{#!if mine[index + 9] == 1 | |
| 179 | {{{#!if ++cell | |
| 180 | }}}}}}}}}{{{#!if index % 9 != 8 && index < 72 | |
| 181 | {{{#!if mine[index + 10] == 1 | |
| 182 | {{{#!if ++cell | |
| 183 | }}}}}}}}}}}}{{{#!wiki class="mode@index@ mine-flag mine-hide" onclick="remove-class,mode-flag@index@,mine-hide" | |
| 184 | }}}{{{#!wiki class="cell@index@ cell" onclick="remove-class,mode@index@,mine-flag;remove-class,cell@index@,cell" | |
| 185 | {{{#!if mine[index] == 0 | |
| 186 | {{{#!wiki class="mine@index@ mine-safe" onclick="add-class,mine@index@,mine-num;remove-class,mineh@index@,mine-hide" | |
| 187 | {{{#!wiki class="mineh@index@ mine-hide" | |
| 188 | {{{#!if cell > 0 | |
| 189 | @cell@}}}}}}}}}}}}{{{#!if mine[index] == 1 | |
| 190 | {{{#!wiki class="miner@index@ mine-num" onclick="add-class,mine,mine-trans;add-class,miner@index@,mine-red;remove-class,mineh,mine-hide" | |
| 191 | {{{#!wiki class="mine mine-over" | |
| 192 | {{{#!wiki class="mineh mine-hide" | |
| 193 | ●}}}}}}}}}}}}}}}{{{#!wiki class="mode-flag@index@ mine-flag-icon mine-hide" onclick="add-class,mode-flag@index@,mine-hide" | |
| 194 | }}}}}}{{{#!wiki class="mine-align" | |
| 195 | {{{#!if ++index, cell = 0 | |
| 196 | }}}{{{#!if mine[index] == 0 | |
| 197 | {{{#!if index % 9 != 0 && index >= 9 | |
| 198 | {{{#!if mine[index - 10] == 1 | |
| 199 | {{{#!if ++cell | |
| 200 | }}}}}}}}}{{{#!if index > 9 | |
| 201 | {{{#!if mine[index - 9] == 1 | |
| 202 | {{{#!if ++cell | |
| 203 | }}}}}}}}}{{{#!if index % 9 != 8 && index >= 9 | |
| 204 | {{{#!if mine[index - 8] == 1 | |
| 205 | {{{#!if ++cell | |
| 206 | }}}}}}}}}{{{#!if index % 9 != 0 | |
| 207 | {{{#!if mine[index - 1] == 1 | |
| 208 | {{{#!if ++cell | |
| 209 | }}}}}}}}}{{{#!if index % 9 != 8 | |
| 210 | {{{#!if mine[index + 1] == 1 | |
| 211 | {{{#!if ++cell | |
| 212 | }}}}}}}}}{{{#!if index % 9 != 0 && index < 72 | |
| 213 | {{{#!if mine[index + 8] == 1 | |
| 214 | {{{#!if ++cell | |
| 215 | }}}}}}}}}{{{#!if index < 72 | |
| 216 | {{{#!if mine[index + 9] == 1 | |
| 217 | {{{#!if ++cell | |
| 218 | }}}}}}}}}{{{#!if index % 9 != 8 && index < 72 | |
| 219 | {{{#!if mine[index + 10] == 1 | |
| 220 | {{{#!if ++cell | |
| 221 | }}}}}}}}}}}}{{{#!wiki class="mode@index@ mine-flag mine-hide" onclick="remove-class,mode-flag@index@,mine-hide" | |
| 222 | }}}{{{#!wiki class="cell@index@ cell" onclick="remove-class,mode@index@,mine-flag;remove-class,cell@index@,cell" | |
| 223 | {{{#!if mine[index] == 0 | |
| 224 | {{{#!wiki class="mine@index@ mine-safe" onclick="add-class,mine@index@,mine-num;remove-class,mineh@index@,mine-hide" | |
| 225 | {{{#!wiki class="mineh@index@ mine-hide" | |
| 226 | {{{#!if cell > 0 | |
| 227 | @cell@}}}}}}}}}}}}{{{#!if mine[index] == 1 | |
| 228 | {{{#!wiki class="miner@index@ mine-num" onclick="add-class,mine,mine-trans;add-class,miner@index@,mine-red;remove-class,mineh,mine-hide" | |
| 229 | {{{#!wiki class="mine mine-over" | |
| 230 | {{{#!wiki class="mineh mine-hide" | |
| 231 | ●}}}}}}}}}}}}}}}{{{#!wiki class="mode-flag@index@ mine-flag-icon mine-hide" onclick="add-class,mode-flag@index@,mine-hide" | |
| 232 | }}}}}}{{{#!wiki class="mine-align" | |
| 233 | {{{#!if ++index, cell = 0 | |
| 234 | }}}{{{#!if mine[index] == 0 | |
| 235 | {{{#!if index % 9 != 0 && index >= 9 | |
| 236 | {{{#!if mine[index - 10] == 1 | |
| 237 | {{{#!if ++cell | |
| 238 | }}}}}}}}}{{{#!if index > 9 | |
| 239 | {{{#!if mine[index - 9] == 1 | |
| 240 | {{{#!if ++cell | |
| 241 | }}}}}}}}}{{{#!if index % 9 != 8 && index >= 9 | |
| 242 | {{{#!if mine[index - 8] == 1 | |
| 243 | {{{#!if ++cell | |
| 244 | }}}}}}}}}{{{#!if index % 9 != 0 | |
| 245 | {{{#!if mine[index - 1] == 1 | |
| 246 | {{{#!if ++cell | |
| 247 | }}}}}}}}}{{{#!if index % 9 != 8 | |
| 248 | {{{#!if mine[index + 1] == 1 | |
| 249 | {{{#!if ++cell | |
| 250 | }}}}}}}}}{{{#!if index % 9 != 0 && index < 72 | |
| 251 | {{{#!if mine[index + 8] == 1 | |
| 252 | {{{#!if ++cell | |
| 253 | }}}}}}}}}{{{#!if index < 72 | |
| 254 | {{{#!if mine[index + 9] == 1 | |
| 255 | {{{#!if ++cell | |
| 256 | }}}}}}}}}{{{#!if index % 9 != 8 && index < 72 | |
| 257 | {{{#!if mine[index + 10] == 1 | |
| 258 | {{{#!if ++cell | |
| 259 | }}}}}}}}}}}}{{{#!wiki class="mode@index@ mine-flag mine-hide" onclick="remove-class,mode-flag@index@,mine-hide" | |
| 260 | }}}{{{#!wiki class="cell@index@ cell" onclick="remove-class,mode@index@,mine-flag;remove-class,cell@index@,cell" | |
| 261 | {{{#!if mine[index] == 0 | |
| 262 | {{{#!wiki class="mine@index@ mine-safe" onclick="add-class,mine@index@,mine-num;remove-class,mineh@index@,mine-hide" | |
| 263 | {{{#!wiki class="mineh@index@ mine-hide" | |
| 264 | {{{#!if cell > 0 | |
| 265 | @cell@}}}}}}}}}}}}{{{#!if mine[index] == 1 | |
| 266 | {{{#!wiki class="miner@index@ mine-num" onclick="add-class,mine,mine-trans;add-class,miner@index@,mine-red;remove-class,mineh,mine-hide" | |
| 267 | {{{#!wiki class="mine mine-over" | |
| 268 | {{{#!wiki class="mineh mine-hide" | |
| 269 | ●}}}}}}}}}}}}}}}{{{#!wiki class="mode-flag@index@ mine-flag-icon mine-hide" onclick="add-class,mode-flag@index@,mine-hide" | |
| 270 | }}}}}}{{{#!wiki class="mine-align" | |
| 271 | {{{#!if ++index, cell = 0 | |
| 272 | }}}{{{#!if mine[index] == 0 | |
| 273 | {{{#!if index % 9 != 0 && index >= 9 | |
| 274 | {{{#!if mine[index - 10] == 1 | |
| 275 | {{{#!if ++cell | |
| 276 | }}}}}}}}}{{{#!if index > 9 | |
| 277 | {{{#!if mine[index - 9] == 1 | |
| 278 | {{{#!if ++cell | |
| 279 | }}}}}}}}}{{{#!if index % 9 != 8 && index >= 9 | |
| 280 | {{{#!if mine[index - 8] == 1 | |
| 281 | {{{#!if ++cell | |
| 282 | }}}}}}}}}{{{#!if index % 9 != 0 | |
| 283 | {{{#!if mine[index - 1] == 1 | |
| 284 | {{{#!if ++cell | |
| 285 | }}}}}}}}}{{{#!if index % 9 != 8 | |
| 286 | {{{#!if mine[index + 1] == 1 | |
| 287 | {{{#!if ++cell | |
| 288 | }}}}}}}}}{{{#!if index % 9 != 0 && index < 72 | |
| 289 | {{{#!if mine[index + 8] == 1 | |
| 290 | {{{#!if ++cell | |
| 291 | }}}}}}}}}{{{#!if index < 72 | |
| 292 | {{{#!if mine[index + 9] == 1 | |
| 293 | {{{#!if ++cell | |
| 294 | }}}}}}}}}{{{#!if index % 9 != 8 && index < 72 | |
| 295 | {{{#!if mine[index + 10] == 1 | |
| 296 | {{{#!if ++cell | |
| 297 | }}}}}}}}}}}}{{{#!wiki class="mode@index@ mine-flag mine-hide" onclick="remove-class,mode-flag@index@,mine-hide" | |
| 298 | }}}{{{#!wiki class="cell@index@ cell" onclick="remove-class,mode@index@,mine-flag;remove-class,cell@index@,cell" | |
| 299 | {{{#!if mine[index] == 0 | |
| 300 | {{{#!wiki class="mine@index@ mine-safe" onclick="add-class,mine@index@,mine-num;remove-class,mineh@index@,mine-hide" | |
| 301 | {{{#!wiki class="mineh@index@ mine-hide" | |
| 302 | {{{#!if cell > 0 | |
| 303 | @cell@}}}}}}}}}}}}{{{#!if mine[index] == 1 | |
| 304 | {{{#!wiki class="miner@index@ mine-num" onclick="add-class,mine,mine-trans;add-class,miner@index@,mine-red;remove-class,mineh,mine-hide" | |
| 305 | {{{#!wiki class="mine mine-over" | |
| 306 | {{{#!wiki class="mineh mine-hide" | |
| 307 | ●}}}}}}}}}}}}}}}{{{#!wiki class="mode-flag@index@ mine-flag-icon mine-hide" onclick="add-class,mode-flag@index@,mine-hide" | |
| 308 | }}}}}}{{{#!wiki class="mine-align" | |
| 309 | {{{#!if ++index, cell = 0 | |
| 310 | }}}{{{#!if mine[index] == 0 | |
| 311 | {{{#!if index % 9 != 0 && index >= 9 | |
| 312 | {{{#!if mine[index - 10] == 1 | |
| 313 | {{{#!if ++cell | |
| 314 | }}}}}}}}}{{{#!if index > 9 | |
| 315 | {{{#!if mine[index - 9] == 1 | |
| 316 | {{{#!if ++cell | |
| 317 | }}}}}}}}}{{{#!if index % 9 != 8 && index >= 9 | |
| 318 | {{{#!if mine[index - 8] == 1 | |
| 319 | {{{#!if ++cell | |
| 320 | }}}}}}}}}{{{#!if index % 9 != 0 | |
| 321 | {{{#!if mine[index - 1] == 1 | |
| 322 | {{{#!if ++cell | |
| 323 | }}}}}}}}}{{{#!if index % 9 != 8 | |
| 324 | {{{#!if mine[index + 1] == 1 | |
| 325 | {{{#!if ++cell | |
| 326 | }}}}}}}}}{{{#!if index % 9 != 0 && index < 72 | |
| 327 | {{{#!if mine[index + 8] == 1 | |
| 328 | {{{#!if ++cell | |
| 329 | }}}}}}}}}{{{#!if index < 72 | |
| 330 | {{{#!if mine[index + 9] == 1 | |
| 331 | {{{#!if ++cell | |
| 332 | }}}}}}}}}{{{#!if index % 9 != 8 && index < 72 | |
| 333 | {{{#!if mine[index + 10] == 1 | |
| 334 | {{{#!if ++cell | |
| 335 | }}}}}}}}}}}}{{{#!wiki class="mode@index@ mine-flag mine-hide" onclick="remove-class,mode-flag@index@,mine-hide" | |
| 336 | }}}{{{#!wiki class="cell@index@ cell" onclick="remove-class,mode@index@,mine-flag;remove-class,cell@index@,cell" | |
| 337 | {{{#!if mine[index] == 0 | |
| 338 | {{{#!wiki class="mine@index@ mine-safe" onclick="add-class,mine@index@,mine-num;remove-class,mineh@index@,mine-hide" | |
| 339 | {{{#!wiki class="mineh@index@ mine-hide" | |
| 340 | {{{#!if cell > 0 | |
| 341 | @cell@}}}}}}}}}}}}{{{#!if mine[index] == 1 | |
| 342 | {{{#!wiki class="miner@index@ mine-num" onclick="add-class,mine,mine-trans;add-class,miner@index@,mine-red;remove-class,mineh,mine-hide" | |
| 343 | {{{#!wiki class="mine mine-over" | |
| 344 | {{{#!wiki class="mineh mine-hide" | |
| 345 | ●}}}}}}}}}}}}}}}{{{#!wiki class="mode-flag@index@ mine-flag-icon mine-hide" onclick="add-class,mode-flag@index@,mine-hide" | |
| 346 | }}}}}}{{{#!wiki class="mine-align" | |
| 347 | {{{#!if ++index, cell = 0 | |
| 348 | }}}{{{#!if mine[index] == 0 | |
| 349 | {{{#!if index % 9 != 0 && index >= 9 | |
| 350 | {{{#!if mine[index - 10] == 1 | |
| 351 | {{{#!if ++cell | |
| 352 | }}}}}}}}}{{{#!if index > 9 | |
| 353 | {{{#!if mine[index - 9] == 1 | |
| 354 | {{{#!if ++cell | |
| 355 | }}}}}}}}}{{{#!if index % 9 != 8 && index >= 9 | |
| 356 | {{{#!if mine[index - 8] == 1 | |
| 357 | {{{#!if ++cell | |
| 358 | }}}}}}}}}{{{#!if index % 9 != 0 | |
| 359 | {{{#!if mine[index - 1] == 1 | |
| 360 | {{{#!if ++cell | |
| 361 | }}}}}}}}}{{{#!if index % 9 != 8 | |
| 362 | {{{#!if mine[index + 1] == 1 | |
| 363 | {{{#!if ++cell | |
| 364 | }}}}}}}}}{{{#!if index % 9 != 0 && index < 72 | |
| 365 | {{{#!if mine[index + 8] == 1 | |
| 366 | {{{#!if ++cell | |
| 367 | }}}}}}}}}{{{#!if index < 72 | |
| 368 | {{{#!if mine[index + 9] == 1 | |
| 369 | {{{#!if ++cell | |
| 370 | }}}}}}}}}{{{#!if index % 9 != 8 && index < 72 | |
| 371 | {{{#!if mine[index + 10] == 1 | |
| 372 | {{{#!if ++cell | |
| 373 | }}}}}}}}}}}}{{{#!wiki class="mode@index@ mine-flag mine-hide" onclick="remove-class,mode-flag@index@,mine-hide" | |
| 374 | }}}{{{#!wiki class="cell@index@ cell" onclick="remove-class,mode@index@,mine-flag;remove-class,cell@index@,cell" | |
| 375 | {{{#!if mine[index] == 0 | |
| 376 | {{{#!wiki class="mine@index@ mine-safe" onclick="add-class,mine@index@,mine-num;remove-class,mineh@index@,mine-hide" | |
| 377 | {{{#!wiki class="mineh@index@ mine-hide" | |
| 378 | {{{#!if cell > 0 | |
| 379 | @cell@}}}}}}}}}}}}{{{#!if mine[index] == 1 | |
| 380 | {{{#!wiki class="miner@index@ mine-num" onclick="add-class,mine,mine-trans;add-class,miner@index@,mine-red;remove-class,mineh,mine-hide" | |
| 381 | {{{#!wiki class="mine mine-over" | |
| 382 | {{{#!wiki class="mineh mine-hide" | |
| 383 | ●}}}}}}}}}}}}}}}{{{#!wiki class="mode-flag@index@ mine-flag-icon mine-hide" onclick="add-class,mode-flag@index@,mine-hide" | |
| 384 | 87 | }}}}}}}}} |
| 385 | 88 | |
| 386 | 89 | |
| ... | ... |