Super popups for Django
======================
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
Requirements
------------
- Django >= 1.8
- Jquery 1.12
- Font-awesome 4.5.0
Installation
------------
1. Install using pip:
``pip install django-super-popups``
Alternatively, you can install download or clone this repo and call ``pip install -e .``.
2. Add to INSTALLED_APPS in your ``settings.py``:
``'django_super_popups',``
3. In your templates, load the following ``css`` and ``js`` files:
.. code:: Django
<link rel="stylesheet" type="text/css" media="screen" href="{% static "super_popups/superpopups.css" %}" />
<script type="text/javascript" src="{% static "super_popups/superpopups.js" %}"></script>
Usage
------------
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.
}
Example template
----------------
.. 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>
Documentation
-------------
This is all the documentation we have :)
Bugs and suggestions
--------------------
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
License
-------
You can use this under Apache 2.0. See `LICENSE
<LICENSE>`_ file for details.
Author
------
Original author and maintained by `Eduardo Calleja <http://www.educalleja.es>`_.
Metadata
Release files for django-super-popups 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-super-popups-1.1.tar.gz | 5.6 kB | Without provenance | Details for django-super-popups-1.1.tar.gz |
Release files / django-super-popups-1.1.tar.gz
| Download URL | django-super-popups-1.1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7453bb9ba10ca612af03f693737090a335fee764c8eeeb973bbb32281639f0c
|
|
BLAKE2b-256 checksum How to use checksums |
4ea89ea799fa54dd97a8a211e3cd584de34cf67289c7dfd504297220e6cb6934
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-super-popups 1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.