function init()

in ArticleTemplates/assets/js/bootstraps/liveblog.js [429:457]


function init() {
    newBlockHtml = '';
    liveblogStartPos = getElementOffset(document.getElementsByClassName('article__body--liveblog')[0]);

    setupGlobals();
    keyEvents();
    window.liveblogTime();
    window.addEventListener('scroll', debounce(updateBlocksOnScroll, 100, true));
    liveMore();
    setupTryLive();
    initYoutube();
    setInterval(window.liveblogTime, 30000);
    decideKicker();

    const articleBody = document.getElementsByClassName('article__body')[0];

    if (articleBody) {
        let images = [];
        [].slice.call(articleBody.getElementsByClassName('block')).forEach(block => {
            images.push(...block.getElementsByTagName('img'));
        })

        setTimeout(() => {
            formatImages(images)
        }, 0);
    }

    initTwitter(() => signalDevice('ready'));
}