mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-03-24 13:33:26 +08:00
Merge branch 'master' into master
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { max, sum } from './functions/util.js';
|
||||
import { summary } from './functions/summary.js'
|
||||
import Life from './life.js'
|
||||
|
||||
class App{
|
||||
constructor(){
|
||||
this.#life = new Life();
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import App from '../src/app.js';
|
||||
|
||||
|
||||
window.json = async fileName=>(await axios(`../data/${fileName}.json`)).data;
|
||||
window.json = async fileName => await (await fetch(`../data/${fileName}.json`)).json();
|
||||
|
||||
// Pssst, I've created a github package - https://github.com/brookesb91/dismissible
|
||||
const hideBanners = (e) => {
|
||||
window.hideBanners = (e) => {
|
||||
document
|
||||
.querySelectorAll(".banner.visible")
|
||||
.forEach((b) => b.classList.remove("visible"));
|
||||
|
||||
Reference in New Issue
Block a user