// source --> /wp-content/themes/stodola/js/preloader.js 
var preloader;

function preload(opacity) {
    if(opacity <= 0) {
        showContent();
    }
    else {
        preloader.style.opacity = opacity;
        window.setTimeout(function() { preload(opacity - 0.08) }, 180);
    }
}

function showContent() {
    preloader.style.display = 'none';
    document.getElementById('page-home').style.display = 'block';
}

document.addEventListener("DOMContentLoaded", function () {
    preloader = document.getElementById('preloader');
    preload(1);
});