ببینید؛ خلاصه بازی بارسلونا ۷ – راسینگسانتاندر ۲
خلاصه بازی بارسلونا ۷ – راسینگسانتاندر ۲ در لالیگا اسپانیا – ۲۰۲۶/۲۷ – هفته ۶ را ببینید.
var setCommentParentId = function(parentId) {
document.getElementById(‘commentParent’).value = parentId;
// —- ADDED CLASS TO COMMENT FORM —-
var commentBoxForm = document.getElementById(‘newsCommentBoxForm’);
commentBoxForm.classList.add(‘modal’);
// —- ADDED STYLE TO CLOSE COMMENT FORM —-
var closeModal = document.getElementById(‘close_icon’);
closeModal.style.display = ‘block’;
// —- EVERY CLICK ON BACKGROUND FOR CLOSED REPLY FORM —-
commentBoxForm.addEventListener(‘click’, function(event) {
if (event.target === commentBoxForm) {
commentBoxForm.classList.remove(‘modal’);
closeModal.style.display = ‘none’; // hide the close button when form is hidden
}
});
// —- BUTTON FOR CLOSE MODAL COMMENT —-
document.getElementById(‘close_icon’).addEventListener(‘click’, function() {
var commentBoxForm = document.getElementById(‘newsCommentBoxForm’);
commentBoxForm.classList.remove(‘modal’);
closeModal.style.display = ‘none’; // hide the close button when form is hidden
});
};
document.addEventListener(“DOMContentLoaded”, function() {
var commentSelector = document.querySelector(“#newsCommentBoxForm form”);
if (commentSelector) {
new CommentForm(commentSelector,
{“object_master_id”:”5743029″,”category_id”:140,”model”:8}, {
onSubmit: function() {
var elem = document.querySelector(‘#newsCommentBoxForm .statusBox’);
// var elemFieldset = document.querySelector(‘#newsCommentBoxForm .fieldset’);
var elemBtn = document.querySelector(‘#newsCommentBoxForm button’);
elem.classList.add(‘block’);
elem.innerHTML = ‘در حال ارسال نظر…’;
// elemFieldset.setAttribute(“disabled”, “disabled”);
elemBtn.classList.remove(‘block’);
},
onError: function() {
var elem = document.querySelector(‘#newsCommentBoxForm .statusBox’);
elem.classList.add(‘block’);
elem.innerHTML = ‘ارسال نظر با خطا مواجه شد.’;
var elemBtn = document.querySelector(‘#newsCommentBoxForm button’);
elemBtn.classList.remove(‘block’);
},
onSuccess: function() {
var elem = document.querySelector(‘#newsCommentBoxForm .statusBox’);
var elemBtn = document.querySelector(‘#newsCommentBoxForm button’);
elem.classList.add(‘block’);
elem.innerHTML = “نظر شما با موفقیت ارسال شد و پس از تایید، قابل مشاهده است.”;
setTimeout(function() {
elem.classList.remove(‘block’);
}, 5000);
elemBtn.classList.add(‘block’);
var elemForm = document.querySelector(‘#newsCommentBoxForm form’);
elemForm.reset();
var commentBoxForm = document.getElementById(‘newsCommentBoxForm’);
commentBoxForm.classList.remove(‘modal’);
var closeModal = document.getElementById(‘close_icon’);
closeModal.style.display = ‘none’; // Hide the close button after submission
}
});
}
});
