Изменил отображение приёмов

This commit is contained in:
2023-01-23 07:33:19 +01:00
parent d9ec810f7f
commit 1fbd8d6de2
6 changed files with 239 additions and 116 deletions

View File

@@ -60,6 +60,20 @@ function himove(e) {
$('#ttl').css({'top': `${y}px`, 'left': `${x}px`});
}
function popup(element, content, width = 230) {
let el_offset = $(element).offset()
let popup = $('#ttl');
popup.html(content);
popup.css({
'display': 'block',
'top': el_offset.top + 20 + 'px',
'left': el_offset.left + 40 + 'px',
'width': width + 'px'
});
}
function hi(el, txt, e, tp, st, sm, fm, css) {
if (!e) e = window.event;
top.xyfmn = [el, txt, e, tp, st, sm, fm, css];