Skip to content

UCDavisLibrary/ucdlib-redirect-notice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Packages

No packages published