modal demo with a timer that gets reset on mousemove.
Coded for this SO question
http://stackoverflow.com/questions/29418227/angular-bootstrap-modal-add-directive
Exactly screen-centered div, pure CSS. Requires no knowledge of div size or setting any CSS attributes outside of the centering frame. Requires only five attributes. Works in all major browsers.