bbnLectureGrid = FileAttachment("bbn-game/data/bbn_grid.json").json()
bbnLectureApp = {
if (!window.BBNGrid || !window.BBNUI) {
const node = document.createElement("div");
node.className = "bbn-game bbn-game-error";
node.innerHTML = "<div class='bbn-error-title'>JS-модули не загрузились</div><p class='bbn-error-text'>Проверь bbn-game/js/bbn-grid.js и bbn-game/js/bbn-ui.js.</p>";
return node;
}
const app = window.BBNUI.createApp(bbnLectureGrid, {
className: "bbn-game-slide",
showUniverseButton: true,
showAutoButtons: true,
initial: {eta10: 3.0, S: 0.82, tau_n: 800},
footerHtml: `
<a href="https://neutrinohit.github.io/sciencepop/BirthAndLifeUniverse/bbn-game/bbn_applet.html">Открыть аплет</a>
<span>Вычисления основаны на пакете <a href="https://github.com/vallima/PRyMordial">PRyMordial</a></span>
`
});
invalidation.then(() => {
if (app.cleanup) app.cleanup();
});
return app;
}


