MediaWiki:Mobile.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 151:
// The button now persists on all screen sizes.
})();
 
$(document).ready(function() {
// Check if the button already exists to prevent duplicates
if ($('#custom-email-btn').length === 0) {
// Create the email button element
var emailBtn = $('<a>', {
id: 'custom-email-btn',
href: 'mailto:services@insurerbrain.com',
// Simple accessible title
title: 'Contact Support'
});
 
// Add it to the body of the page
$('body').append(emailBtn);
}
});