Function with setInterval

Click the button on the left for a repeated reminder every 5 seconds; click the button on th right to cancel the reminder before it is displayed.