Testing Purpose data
- Category : ScratchSpark (7-8yo)
$(document).ready(function() {
// Function to hide the card
$('.cookie-close-btn').on('click', function() {
$('.cookies-card').addClass('d-none'); // Hides the card
// Optional: If you want to hide it for the rest of the session
// sessionStoreage.setItem('cookie_dismissed', 'true');
});
// Existing policy logic (likely looks like this)
$('.policy').on('click', function() {
$.ajax({
url: "https://scratchleague.my/cookie/accept", // Ensure this route exists
method: "GET",
success: function(response) {
$('.cookies-card').addClass('d-none');
}
});
});
});
//x button scripts ends here