Modal shows after 3 minutes
PugJS
#modalFreeze.uk-flex-top(uk-modal="") .uk-modal-dialog.uk-modal-body.uk-margin-auto-vertical.uk-border-rounded(style='width:880px;') button.uk-modal-close-default(type="button" uk-close="") each i in footer each j in i.freeze p.text-small-spacing.uk-text-center.text-default.uk-margin-medium-top.uk-margin-bottom=j.text .uk-margin-bottom include ../ad/landscape.pug .uk-margin-bottom(uk-grid class='uk-child-width-1-2@s') each l in j.feature div h3.text-large.uk-margin-bottom img(src=l.icon) | span=l.title each k in l.list a.uk-display-block.link-primary(href=k.href) .uk-background-cover.uk-margin-small-bottom(data-src=k.src uk-img style='padding-top: calc(257 / 364 * 100%)') p.text-xsmall.uk-margin-small-bottom img(src=k.icon) | span.text-gray=k.date p.text-small-spacing.text-large-weight.text-medium=k.title .uk-margin-bottom(uk-grid class='uk-child-width-1-2@s') div include ../ad/square div each m in j.hot h3.text-large img(src=m.icon) | span=m.title ul.uk-list each n in m.list li a.link-primary(href=n.href) .uk-grid-collapse(uk-grid) div(style='width:12px') span.uk-position-relative(style='top: 10px; font-size: 6px; color: red;') ■ .uk-width-expand p.text-large-weight.uk-margin-small-top.text-default=n.title span img(src=n.icon) | i.text-xsmall.text-dark=n.date
var timeout; document.onmousemove = function () { clearTimeout(timeout); timeout = setTimeout(function () { UIkit.modal(document.getElementById(modalFreeze)).show(); }, 180000); }