From ed12e63264cd5023403bc4a38e4b0c169b63c967 Mon Sep 17 00:00:00 2001 From: yuki540 Date: Wed, 21 Feb 2018 16:51:03 +0900 Subject: [PATCH] =?UTF-8?q?update:=20=E3=83=AD=E3=83=BC=E3=83=89=E5=AE=8C?= =?UTF-8?q?=E4=BA=86=E3=81=AE=E5=87=A6=E7=90=86=E3=82=92=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scripts/app.js | 2 +- src/scripts/lib/util.js | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/scripts/app.js b/src/scripts/app.js index cca38b2..47ff011 100644 --- a/src/scripts/app.js +++ b/src/scripts/app.js @@ -10,7 +10,7 @@ import preload_json from './config/preload' setTimeout(() => { testPreload(() => { - + util.finisheLoadView() }, (per) => { util.updateCharPanel(per) util.updateProgressBar(per) diff --git a/src/scripts/lib/util.js b/src/scripts/lib/util.js index b006d43..57d7c2c 100644 --- a/src/scripts/lib/util.js +++ b/src/scripts/lib/util.js @@ -1,3 +1,4 @@ +const load_view = document.getElementById('load-view') const char_panel = document.querySelectorAll('.blocks .block') const progress_bar = document.getElementById('progress-bar') @@ -78,3 +79,10 @@ export const updateCharPanel = (per) => { export const updateProgressBar = (per) => { progress_bar.children[0].style.width = `${ per * 100 }%` } + +/** + * モーションパート + */ +export const finisheLoadView = () => { + load_view.setAttribute('data-state', 'fin') +}