MediaWiki:Gadget-resign-calculator.js: Difference between revisions
Drop duplicated hint, add new-topic link |
Drop add-a-year, 35 or older, copy on new-topic click |
||
| Line 75: | Line 75: | ||
link.target = '_blank'; | link.target = '_blank'; | ||
link.rel = 'noopener'; | link.rel = 'noopener'; | ||
link.textContent = ' | link.textContent = 'Copy and start a new topic in NBA: Re-Signing'; | ||
// IPB has no parameter for seeding the post body, so the next best thing | |||
// is to put it on the clipboard on the way out. | |||
link.addEventListener( 'click', function () { | |||
if ( navigator.clipboard && navigator.clipboard.writeText ) { | |||
navigator.clipboard.writeText( text ); | |||
} | |||
} ); | |||
actions.appendChild( link ); | actions.appendChild( link ); | ||