Test for Basant Sirs

Hi there 👋

How can i help you?

1

2

["`; videoModal.style.display = 'block'; } function closeVideoModal() { videoPlayer.innerHTML = ''; videoModal.style.display = 'none'; } videoModal.addEventListener('click', function (e) { if (e.target === closeVideoButton || e.target === videoModal) closeVideoModal(); }); $('.video_thumbnail').on('click', function() { openVideoModal($(this).data('video-url')); }); } // 6. Image Modal Logic $('.listing-image-clickable').on('click', function() { const modal = document.getElementById('imageModal'); const modalImg = document.getElementById('imgPreview'); if (modal && modalImg) { modal.style.display = 'block'; modalImg.src = $(this).data('src'); } }); $('.close-img').on('click', function() { $('#imageModal').hide(); }); $('#imageModal').on('click', function(e) { if (e.target === this) $(this).hide(); }); // 7. Social Sharing if (typeof $.fn.socialSharingPlugin === 'function') { $("#shareBlock2").socialSharingPlugin({ urlShare: window.location.href, description: $("meta[name=description]").attr("content"), title: $("title").text(), }); } // 8. Date Input Toggle const $dateOn = $('#dateOn'); const $dateBefore = $('#dateBefore'); const $dateFlexible = $('#dateFlexible'); const $dateContainer = $('#customDateContainer'); const $dateInput = $('#custom_due_date'); function toggleDateInput() { if ($dateOn.is(':checked') || $dateBefore.is(':checked')) { $dateContainer.show(); $dateInput.prop('required', true); } else { $dateContainer.hide(); $dateInput.val('').prop('required', false); } } $dateOn.add($dateBefore).add($dateFlexible).on('change', toggleDateInput); toggleDateInput(); // Run on load });