22 lines
619 B
JavaScript
22 lines
619 B
JavaScript
import './bootstrap';
|
|
|
|
function showContainerTitle() {
|
|
const containerTitle = document.querySelector('.container-title');
|
|
const containerTitleText = 'Bem vindo ao painel administrativo da Ingline Systems!';
|
|
const containerTitleLength = containerTitleText.length;
|
|
let text = '';
|
|
let count = 0;
|
|
|
|
for (let i = 0; containerTitleLength > i; i++) {
|
|
setTimeout(() => {
|
|
text += containerTitleText[i];
|
|
containerTitle.textContent = text;
|
|
count++;
|
|
|
|
}, 100 * i);
|
|
}
|
|
}
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
showContainerTitle();
|
|
}); |