PluginProbe
Text Typing – grab attention with animated typing headlines / trunk
Text Typing – grab attention with animated typing headlines vtrunk
2.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
text-typing / dashboard / admin.js

admin.js in Text Typing – grab attention with animated typing headlines trunk, at dashboard/admin.js

21 lines 584 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import React from 'react-dom';
2 import '../../bpl-tools/Admin/style.scss';
3 import App from './App';
4 import { dashboardInfo } from './utils/data';
5
6 document.addEventListener('DOMContentLoaded', () => {
7 const adminEl = document.getElementById("ttbDashboard");
8 let info = {};
9
10 try {
11 if (adminEl?.dataset?.info !== undefined || adminEl?.dataset?.info !== "") {
12 info = JSON.parse(adminEl?.dataset?.info);
13 }
14 } catch {
15 // console.warn("Not Info")
16 }
17
18 React.createRoot(adminEl).render(<App {...dashboardInfo(info)} />)
19
20 adminEl.removeAttribute('data-info');
21 });