Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

b4uLeave Plugin

Overview

The B4ULeave plugin displays a modal window asking the user whether they want to leave the page when the beforeunload event occurs.

Installation

pip install platzky-b4uLeave

Usage

"plugins": [
    {
        "name": "b4uLeave",
        "config": {
            "message": "Your custom message goes here",
            "stay": "Staying custom message",
            "leave": "Leaving custom message"
        }
    }
]

If you omit message, it defaults to:

<p>'Are you sure you want<br>to leave our page?'</p>

If you omit stay, it defaults to:

<p>'Stay'</p>

If you omit leave, it defaults to:

<p>'Leave'</p>

About

Platzky plugin with popup on leaving site

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages