Sha256: df69d77f619e9172816c3e1d8859dc8dfc1a4ec7b8ebc0ff58ee7557a4f7ec69
Contents?: true
Size: 893 Bytes
Versions: 3
Compression:
Stored size: 893 Bytes
Contents
const init = () => { // Load configuration const request = new Request(window.conference.config.baseurl + '/assets/js/config.json'); fetch(request) .then(response => response.json() ) .then(config => { // Add configuration to global scope window.conference.config = Object.assign(window.conference.config, config); // Execute initialization functions for (const [name, module] of Object.entries(window.conference)) { if (name == 'config') { continue; } let c; if (name in config) { c = config[name]; } let l; if (name in config.lang) { l = config.lang[name]; } module.init(c, l) } }) .catch((error) => { console.log(error); }); }; init();
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jekyll-theme-conference-3.6.1 | _includes/js/init.js |
jekyll-theme-conference-3.6.0 | _includes/js/init.js |
jekyll-theme-conference-3.5.0 | _includes/js/init.js |