Security News
Combatting Alert Fatigue by Prioritizing Malicious Intent
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Let super-popups
show fancy messages to your visitors
.. image:: http://www.educalleja.es/misc/super_popups/ok.jpg
.. image:: http://www.educalleja.es/misc/super_popups/ko.jpg
.. image:: http://www.educalleja.es/misc/super_popups/warn.jpg
Install using pip:
pip install django-super-popups
Alternatively, you can install download or clone this repo and call pip install -e .
.
Add to INSTALLED_APPS in your settings.py
:
'django_super_popups',
In your templates, load the following css
and js
files:
.. code:: Django
Call your website with the following GET variables to display a message:
http://example.com?tyT=ok&msT=This is the text
Which will display the following popup:
.. image:: http://www.educalleja.es/misc/super_popups/example1.jpg
If you do not want to define the popup using GET variables, you can define the style and content with the following javascript variable.
.. code:: javascript
var superpopups = {
tyT: "ok", // MANDATORY. Possible values are `ok`, `ko` and `warn`
msT: "Everything is great!", // MANDATORY
autohide: 5000, // OPTIONAL. When set, the message will disappear after the defined interval in ms.
}
.. code:: Django
{# Web code #}
<head>
<link rel="stylesheet" type="text/css" media="screen" href="{% static "super_popups/superpopups.css" %}" />
</head>
<body>
<script>
var superpopups = {
tyT: "ok",
msT: "This message will appear at the top of your website for only 5 seconds!",
autohide: 5000, // The message will disappear in 5000 ms.
}
</script>
<script type="text/javascript" src="{% static "super_popups/superpopups.js" %}"></script>
</body>
This is all the documentation we have :)
If you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.
https://github.com/educalleja/django-super-popups/issues
You can use this under Apache 2.0. See LICENSE <LICENSE>
_ file for details.
Original author and maintained by Eduardo Calleja <http://www.educalleja.es>
_.
FAQs
Add fancy notification popups to a Django project
We found that django-super-popups demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.