mirror of
https://github.com/neosubhamoy/neosubhamoy-portfolio.git
synced 2025-12-20 01:09:35 +05:30
50 lines
950 B
JavaScript
50 lines
950 B
JavaScript
//--- controls tooltips and popover elements
|
|
|
|
tippy('#searchbar', {
|
|
content: "ALT + K",
|
|
theme: 'neosubhamoy',
|
|
animation: 'shift-away',
|
|
delay: 500,
|
|
touch: false
|
|
});
|
|
|
|
tippy('#sharebutton', {
|
|
content: "ALT + L",
|
|
theme: 'neosubhamoy',
|
|
animation: 'shift-away',
|
|
delay: 500,
|
|
touch: false
|
|
});
|
|
|
|
tippy('#closebutton', {
|
|
content: "ESC",
|
|
placement: 'right',
|
|
theme: 'neosubhamoy',
|
|
animation: 'shift-away',
|
|
delay: 500,
|
|
touch: false
|
|
});
|
|
|
|
tippy('#shareclosebutton', {
|
|
content: "ESC",
|
|
placement: 'right',
|
|
theme: 'neosubhamoy',
|
|
animation: 'shift-away',
|
|
delay: 500,
|
|
touch: false
|
|
});
|
|
|
|
tippy('.projectitem', {
|
|
content(reference) {
|
|
const projectId = reference.getAttribute('data-template');
|
|
const projectTippyTemplate = document.getElementById(projectId);
|
|
return projectTippyTemplate.innerHTML;
|
|
},
|
|
allowHTML: true,
|
|
placement: 'right',
|
|
theme: 'neosubhamoy',
|
|
animation: 'scale-subtle',
|
|
touch: false
|
|
});
|
|
|