I'm stuck on how to get number of all elements that has inline style.

```
var galleryElements = document.getElementsByClassName("popup-gallery")[0].children;

    $('.myButton').click(function() {

        var totalItems = galleryElements.length;
        var itemsWithStyle = ($(galleryElements).css('display') == 'inline').length;

        if (totalItems == itemsWithStyle){
            /* do something */
        }
    });

```