Template string

This commit is contained in:
Filip Troníček 2020-12-11 17:53:42 +01:00
parent f7adb67e3e
commit b25632188a

View File

@ -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');