The dawn of the new year has brought with it a transformative shift in the digital finance landscape. As demand for digital services reaches unprecedented levels, banks and fintechs are striving to exceed customer expectations by providing cutting-edge digital features and unparalleled user experiences. From mobile apps to automated savings features, they are unveiling smart digital tools and establishing alliances to create a seamless post-pandemic customer journey.
This post is only available to members.
document.addEventListener('DOMContentLoaded', function() {
console.log('social login script loaded');
// Use event delegation in case buttons are dynamically rendered
document.body.addEventListener('click', function(e) {
console.log('social login button clicked');
var btn = e.target.closest('.button-social-login');
if (btn) {
// e.preventDefault();
// Disable button to prevent multiple clicks
btn.style.pointerEvents = 'none';
btn.style.opacity = '0.6';
// Change button content to 'Please wait...' with a simple spinner
btn.innerHTML = ' Please wait...';
// Add spinner animation style if not already present
if (!document.getElementById('social-login-spinner-style')) {
var style = document.createElement('style');
style.id = 'social-login-spinner-style';
style.innerHTML = '@keyframes spin {0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}';
document.head.appendChild(style);
}
}
});
});