{"size": 461, "ext": "js", "max_stars_repo_path": "resources/js/js-modules/preloader.js", "max_stars_repo_name": "Tretyak-Yaroslav/oberig", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "resources/js/js-modules/preloader.js", "max_issues_repo_name": "Tretyak-Yaroslav/oberig", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "resources/js/js-modules/preloader.js", "max_forks_repo_name": "Tretyak-Yaroslav/oberig", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.2631578947, "max_line_length": 75, "alphanum_fraction": 0.4793926247}
const Preloader = {
    loadData() {
        return new Promise((resolve, reject) => {
            setTimeout(resolve, 1000);
        })
    },
    init() {
        this.loadData()
                .then(() => {
                    let preloaderEl = document.getElementById('preloader');
                    preloaderEl.classList.add('hidden');
                    preloaderEl.classList.remove('visible');
                });
    }
}

export default Preloader;

