Merge branch 'master' into master

This commit is contained in:
神戸小鳥
2021-09-04 12:41:30 +08:00
committed by GitHub
5 changed files with 12 additions and 22 deletions

View File

@@ -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();

View File

@@ -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"));