Изменил отображение приёмов
This commit is contained in:
14
js/title.js
14
js/title.js
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user