{"size": 549, "ext": "js", "max_stars_repo_path": "src/js/utils/file.js", "max_stars_repo_name": "100Errors/minihtml", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/js/utils/file.js", "max_issues_repo_name": "100Errors/minihtml", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/js/utils/file.js", "max_forks_repo_name": "100Errors/minihtml", "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": 32.2941176471, "max_line_length": 88, "alphanum_fraction": 0.6666666667}
import gen from './gen_code.js';
var file_import = () => {
    alert('Not implemented yet :(');
}

var file_export = () => {
    var code = gen.readyHTML();
    var el = document.createElement('a');
    el.setAttribute('href', 'data:text/html;charset=utf-8,' + encodeURIComponent(code));
    el.setAttribute('download', 'code.html');
    el.style.display = 'none';
    document.body.appendChild(el);
    el.click();
    document.body.removeChild(el);
}
//export {file_import as import,file_export as export}
export default {file_import ,file_export}