Put_flash timer

How would you go about getting the put_flash popup to go away after x seconds?

I think this would be something best done with js and css. Just set the display to be none at page load and transition in the dom element with js.

oh sorry miss read that, though on the matter its still the same, just set an initial setTimeout timer in js at page load to call a function that would transition that element out after N seconds.

https://www.w3schools.com/jsref/met_win_settimeout.asp

Javascript is way overkill for that, you could easily use a cheap CSS animation to have it fade out after however many seconds of it being displayed for example.