diff --git a/src/index.html b/src/index.html index 975c4ee..e498229 100644 --- a/src/index.html +++ b/src/index.html @@ -1,7 +1,7 @@ - + Untitled diff --git a/src/index.js b/src/index.js index a9e7e3f..3a4298d 100644 --- a/src/index.js +++ b/src/index.js @@ -5,6 +5,8 @@ import HorizontalLinesAnimation from './horizontal-lines.js'; import SquaresAnimation from './squares.js'; import CirclesAnimation from './circles.js'; +const ANIMATION_TIME = 10 * 60 * 1000; + async function main() { const audioCtx = new AudioContext(); const microphone = await navigator.mediaDevices.getUserMedia({ audio: true }); @@ -51,7 +53,7 @@ async function main() { } activate(animations[animationNum]); - }, 10000); + }, ANIMATION_TIME); }; sketch.draw = () => { diff --git a/webpack.config.js b/webpack.config.js index 196b74b..66d9241 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -47,6 +47,7 @@ module.exports = { devServer: { contentBase: path.join(__dirname, 'dist'), compress: true, + host: '0.0.0.0', port: 8080, hot: true, }