(function () {
    var toolbar = document.querySelector('.zerti-print-toolbar');
    if (toolbar) {
        var button = toolbar.querySelector('button');
        if (button) {
            button.addEventListener('click', function () {
                window.print();
            });
        }
    }

    window.addEventListener('load', function () {
        window.setTimeout(function () {
            window.print();
        }, 400);
    });
})();
