Sport & Spel (2025-04-01)
ToBe & wij voor de jeugd organiseren toffe naschoolse activiteiten. Doe mee met Sport & Spel! Zit jij op de PJS, meld je dan aan bij de administratie. Zit jij niet op de PJS? schrijf je dan hier in!

Voor deze activiteit hoef je je niet aan te melden. Je kunt gewoon binnen lopen.
routebeschrijving
Toevoegen aan agenda
jQuery(document).ready(function($) {
let shareContainer = $('.fusion-social-networks');
// Get the current page URL
let pageURL = window.location.href;
// Create the "Copy" button with same styles
let copyButton = `
`;
// Append it to the social icons container
shareContainer.append(copyButton);
// Copy to clipboard function
$(document).on('click', '.copy-to-clipboard', function(event) {
event.preventDefault(); // Prevent default link behavior
let tempInput = $('');
$('body').append(tempInput);
tempInput.val(pageURL).select();
document.execCommand('copy');
tempInput.remove();
// Provide user feedback
let icon = $(this).find('i');
icon.attr('title', 'Copied!');
icon.css('background-color', '#28a745'); // Change background to green on success
// Reset after 2 seconds
setTimeout(() => {
icon.attr('title', 'Copy link');
icon.css('background-color', '#6c757d'); // Reset back to original
}, 2000);
});
});