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