mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2025-07-17 09:33:55 +08:00
add webpack
This commit is contained in:
14
src/index.js
Normal file
14
src/index.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import App from '../src/app.js';
|
||||
|
||||
|
||||
window.json = async fileName=>(await axios(`../data/${fileName}.json`)).data;
|
||||
|
||||
// Pssst, I've created a github package - https://github.com/brookesb91/dismissible
|
||||
const hideBanners = (e) => {
|
||||
document
|
||||
.querySelectorAll(".banner.visible")
|
||||
.forEach((b) => b.classList.remove("visible"));
|
||||
};
|
||||
|
||||
const app = new App();
|
||||
app.initial();
|
Reference in New Issue
Block a user