UCDavisLibrary / ucdlib-redirect-notice

A modal element that automatically redirects user

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redirect Notice

A basic Lit element that displays a modal informing the user that the page has moved, and then automatically redirects them after a set amount of time.

This should primarily be used for recently deprecated internal-facing applications, so that we don't have to maintain years worth of redirects.

Use

<script 
  src="https://github.com/UCDavisLibrary/ucdlib-redirect-notice/releases/latest/download/ucdlib-redirect-notice.js">
</script>

<ucdlib-redirect-notice redirect-location="https://library.ucdavis.edu">
</ucdlib-redirect-notice>

For more advanced use cases, see the examples directory.

About

A modal element that automatically redirects user


Languages

Language:JavaScript 100.0%