Yandex Frontend contest. Task 8. Div as pixel.

by IvAndrew

HTML

<div id="taskb"></div>

CSS

html, body {
            margin: 0;
            padding: 0;
        }
        body {
            position: relative;
            width: 630px;
            height: 630px;
        }
        .pixel {
            position: absolute;
            width: 10px;
            height: 10px;
            background-color: #000;
        }

JavaScript

let img = [
            '000000000000001111111111111111111110000000111111111111111111111',
            '000000000000001000000000000000000010000000100000000000000000001',
            '000000000000001011111111111111111010000000101111111111111111101',
            '000000000000001010000000000000001010000000101000000000000000101',
            '000000000000001010111111111111101010000000101011111111111110101',
            '000000000000001010100000000000101010000000101010000000000010101',

            '000000000000001010101111111110101010000000101010111111111010101',
            '000000000000001010101000000010101010000000101010100000001010101',
            '000000000000001010101000000010101010000000101010100000001010101',
            '000000000000001010101000000010101010000000101010100000001010101',
            '000000000000001010101000000010101010000000101010100000001010101',
            '000000000000001010101000000010101010000000101010100000001010101',
            '000000000000001010101000000010101010000000101010100000001010101',
            '000000000000001010101000000010101010000000101010100000001010101',

            '111111111111111010101111111111111111111111101010111111111010101',
            '100000000000001010101000000000000000000000101010100000000010101',
            '101111111111111010101111111111111111111111101010111111111110101',
            '101000000000001010101000000000000000000000101010100000000000101',
            '101011111111111010101111111111111111111111101010111111111111101',
            '101010000000001010101000000000000000000000101010100000000000001',
            '101010111111111010101111111111111111111111101010111111111111111',
            
            '1010101000000010101010000000101010100000001010101',
            '1010101000000010101010000000101010100000001010101',
            '1010101000000010101010000000101010100000001010101',
            '1010101000000010101010000000101010100000001010101',
           ...