Now, info label removed after fadded out

This commit is contained in:
Gregorio Chiko Putra 2017-09-16 13:23:41 +07:00
parent e57104198b
commit 81001825a3
2 changed files with 3 additions and 2 deletions

View File

@ -187,6 +187,7 @@
}
if (fadeTarget.style.opacity < 0.1) {
clearInterval(fadeEffect);
fadeTarget.remove();
} else {
fadeTarget.style.opacity -= 0.1;
}

View File

@ -13,10 +13,10 @@ set_exception_handler("Core\Error::exceptionHandler");
if (Core\Session::exists('info')) {
echo '
<div class="flex three-600 full grow">
<div id="info" class="flex three-600 full grow top" style="position:fixed;">
<div></div>
<h3 style="text-align:center;" class="top">
<span id="info" class="label";" onclick="fadeOutEffect()">';
<span class="label";" onclick="fadeOutEffect()">';
echo Core\Session::flash('info');
echo '
</span>