Как добавить кнопку выхода в блок Т658 в Tilda

Как добавить кнопку выхода в блок Т658 в Tilda

1
Создали блок Т658
2
Добавили код в блок другое Т123
Библиотека для примера

<style>
.t658__popup_container {  width: 580px}
.exitbtn{
   color: #ffffff;
   background-color: #ff0000;
   border-radius: 30px;
   display: flex;
   align-items: center;
}
.t658__btn {transform: translateX(-10px)}
.t658 .t-btn { transition: all 0.3s}
.t658 .t-btn:hover {filter: grayscale(0.5)}
@media screen and (max-width: 640px){
.t658__popup_container {
    width: auto !important;
}
.t658 .t-btn {
    padding: 0 40px;
    font-size: 12px;
    height: 44px;
}
}
</style>

<script>
$( document ).ready(function() {
$('.t658__btn-wrapper').append('<div  class="exitbtn t-btn" onclick="javascript:history.back(); return false;">Exit</div>');
$(document).on('click','.exitbtn',function(e){window.close()});

setTimeout(function(){
$('.t-body').addClass('t658__body_popupshowed');
$('.t658').removeClass('t658_closed').show();  
},2000);
});
</script>
Made on
Tilda