mirror of
https://github.com/eliasstepanik/vdo.ninja.git
synced 2026-01-19 09:38:45 +00:00
Template string
This commit is contained in:
parent
f7adb67e3e
commit
b25632188a
@ -59,8 +59,8 @@ $(".close").on('click', function(e) {
|
||||
|
||||
$("body").css('overflow', 'auto');
|
||||
|
||||
var bounding_box = $(this).parent().get(0).getBoundingClientRect();
|
||||
$(this).parent().css({ top: bounding_box.top + 'px', left: bounding_box.left + 'px' });
|
||||
const bounding_box = $(this).parent().get(0).getBoundingClientRect();
|
||||
$(this).parent().css({ top: `${bounding_box.top}px`, left: `${bounding_box.left}px` });
|
||||
|
||||
/* Show animation */
|
||||
$(this).parent().addClass('out-animation');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user