some fix from pr

This commit is contained in:
Vick Scarlet
2021-09-04 12:35:35 +08:00
parent 2c4b276686
commit 48c1b9a6cc
4 changed files with 3 additions and 18 deletions

View File

@@ -1,7 +1,6 @@
import { max, sum } from './functions/util.js';
import { summary } from './functions/summary.js'
import Life from './life.js'
import { hideBanners } from './';
class App{
constructor(){

View File

@@ -4,7 +4,7 @@ import App from '../src/app.js';
window.json = async fileName => await (await fetch(`../data/${fileName}.json`)).json();
// Pssst, I've created a github package - https://github.com/brookesb91/dismissible
export const hideBanners = (e) => {
window.hideBanners = (e) => {
document
.querySelectorAll(".banner.visible")
.forEach((b) => b.classList.remove("visible"));