4,090
edits
No edit summary |
No edit summary |
||
Line 1,229: | Line 1,229: | ||
// Target the button based on its complex class structure | // Target the button based on its complex class structure | ||
$(".oo-ui-actionFieldLayout-button .oo-ui-buttonInputWidget").remove(); | $(".oo-ui-actionFieldLayout-button .oo-ui-buttonInputWidget").remove(); | ||
$('#submit').click(function() { | |||
var email = 'submit@softwear.directory'; // Replace with the recipient's email address | |||
var subject = 'new entry to the softwear directory'; | |||
var body = '☺ the following content could be interesting for the directory:\n\n' + | |||
'[ author / creator ]\n\n' + | |||
'---\n\n' + | |||
'[ title ]\n\n' + | |||
'---\n\n' + | |||
'[ why should it be included? ]\n\n' + | |||
'---\n\n' + | |||
'[ link or pdf ]\n\n' + | |||
'---\n\n' + | |||
'[ your name / contact / social ]\n\n' + | |||
'---'; | |||
var mailtoLink = 'mailto:' + encodeURIComponent(email) + | |||
'?subject=' + encodeURIComponent(subject) + | |||
'&body=' + encodeURIComponent(body).replace(/%20/g, ' '); | |||
window.location.href = mailtoLink; | |||
}); | |||
}); | }); |