deploy: b56fe21a2b
This commit is contained in:
parent
c59d8d2aba
commit
3429836663
32 changed files with 1295 additions and 312 deletions
15
static/scripts/tips.js
Normal file
15
static/scripts/tips.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/* This script provides functionality similar to FL Studio's hint panel. */
|
||||
|
||||
const elements = document.querySelectorAll('[data-tip]');
|
||||
const hint = document.querySelector("#headerSubtitle");
|
||||
const hintPanelDefaultText = hint.innerHTML;
|
||||
|
||||
elements.forEach(el => {
|
||||
el.addEventListener('mouseenter', function() {
|
||||
hint.innerHTML = `${this.dataset.tip}`;
|
||||
});
|
||||
|
||||
el.addEventListener('mouseleave', function() {
|
||||
hint.innerHTML = hintPanelDefaultText;
|
||||
});
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue