{ "info": { "author": "Michael J\u00fcnger", "author_email": "michael@xn--jnger-kva.name", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.8", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "========\nTextflow\n========\n\nTextflow is a simple Django app to animate texts. Texts slide randomly from the right to the left or reverse after the\npage is loaded.\n\n\n1. Open the settings.py file, find the INSTALLED_APPS section and enable the app.\n\n INSTALLED_APPS = (\n ...\n 'textflow'\n )\n\n2. Now create the database model.\n\n python manage.py migrate\n\n3. Start the development server and visit http://127.0.0.1:8000/admin/\n to create a few FlowObjects (you'll need the Admin app enabled).\n\n4. pen your views.py file and import the FlowObject model.\n\n from textflow.models import FlowObject\n\n5. Go to the view and pass the texts to the view by simply call the serialize method.\n\n def your_view(request):\n return render(request, 'template.html', {\n 'texts': FlowObject.serialize(),\n })\n\n6. Then open your template.html file and add the the following two lines at the top.\n\n {% load staticfiles %}\n {% load textflow %}\n\n7. Add a link to the css file in your :\n\n \n\n8. Then, before the closing tag add:\n\n \n\n9. Now call the textflow tag within the tag where you want to show the texts:\n\n {% textflow texts %}\n\n10. In your javascript file then add the initializing code\n\n $(document).ready(function() {\n $(element).textFlow();\n });\n\n11. Start your server and visit http://127.0.0.1:8000/your_view/ and you should see the texts\n\n12. You can add multilingual texts by installing the django-modeltranslation app.\n Please refer to the official Django documentation for more information about translation.\n https://docs.djangoproject.com/el/1.10/topics/i18n/translation/\n\n Also refer to the official documentation of django-modeltranslation\n http://django-modeltranslation.readthedocs.io/en/latest/installation.html\n\n pip install django-modeltranslation\n\n\n13. Enable the app in settings.py:\n\n INSTALLED_APPS = (\n ...\n 'modeltranslation',\n 'textflow',\n )\n\n14. Update your models:\n\n python manage.py migrate\n\n\n15. Settings\n\n Option | Type | Default | Description\n ------ | ---- | ------- | -----------\n width | string/int: Any valid css unit | 100% | Sets the width in relation of the parent node\n height | string/int: Any valid css unit | 200px | Sets the height\n top | string/int: Any valid css unit | 0 | Sets the top position within the parent node\n left | string/int: Any valid css unit | 0 | Sets the left position within the parent node\n maxTexts | int | 15 | Sets the maximum amount of texts that are simultaneously shown\n marginTop | int | 25 | The space in pixel between the top border and the text\n marginBottom | int | 0 | The space in pixel between the bottom border and the text\n texts | array | ['Add', ... 'here'] | The texts that are shown, ignored when using data-texts attribute\n color | string: Any valid css unit | #000 | The text color\n background | string: Any valid css unit | transparent | The background color of the canvas (This is actually not needed because the background of the textflow div can be set in css. However it might happen that this could be useful for some reason so it is there... :)\n font | string | sans-serif | The font family of the texts\n\n\n16. Methods\n\nMethods are called on textflow instances:\n\n 16.1 Get the instance\n\n var textflow = $('.your-element').textFlow({options...});\n\n 16.2 Stop textflow\n\n textflow.stopTextFlow();\n\n 16.3 Start textflow\n\n textflow.startTextFlow();\n\n\n Method | Argument | Description\n ------ | -------- | -----------\n startTextFlow | options : None | Start textflow if not active\n stopTextFlow | options : None | Stop textflow if active\n\n\n17. Dependencies\n\n jQuery 1.3\n Django 1.8\n\n **For multilingual support (Django only)**\n django-modeltranslation\n\n\n18. License\n\nCopyright (c) 2014 Michael J\u00fcnger\n\nLicensed under the MIT license.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mhaze4/jquery-textflow/", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "django-textflow", "package_url": "https://pypi.org/project/django-textflow/", "platform": "", "project_url": "https://pypi.org/project/django-textflow/", "project_urls": { "Homepage": "https://github.com/mhaze4/jquery-textflow/" }, "release_url": "https://pypi.org/project/django-textflow/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "A simple Django app to animate texts.", "version": "0.1.3" }, "last_serial": 2444942, "releases": { "0.1.1": [], "0.1.2": [ { "comment_text": "", "digests": { "md5": "e950b43ee63ff6f7714de3e83ca8fc1a", "sha256": "2e25706aab9fae2ca1ce93650cdc3b2b8e61fe6b8f3bf406569b6ceb056bb8db" }, "downloads": -1, "filename": "django_textflow-0.1.2-py2-none-any.whl", "has_sig": false, "md5_digest": "e950b43ee63ff6f7714de3e83ca8fc1a", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 11468, "upload_time": "2016-11-06T02:57:58", "url": "https://files.pythonhosted.org/packages/15/30/af4af6fa0aacba4cf8ff7f1b1c140446111fbd941c0536173bed690b7b0c/django_textflow-0.1.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dd4452d9ca44eea0ebe000ebbcd0dc19", "sha256": "80b430f0e3c5bbb4aaa5df756d9d7c6499f300bc7d31f1d5fd4b47f3f2693fae" }, "downloads": -1, "filename": "django_textflow-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "dd4452d9ca44eea0ebe000ebbcd0dc19", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11469, "upload_time": "2016-11-06T02:58:00", "url": "https://files.pythonhosted.org/packages/23/d1/03982bd0f25860d590ab8b41d208a0269eb713aac2918ba22077b7d7ecd8/django_textflow-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db194627609be113477f3b7433bc048c", "sha256": "86690c903b021d1d24177b2dd81205fe3705213ec05faa44c6283f54b7e16519" }, "downloads": -1, "filename": "django-textflow-0.1.2.tar.gz", "has_sig": false, "md5_digest": "db194627609be113477f3b7433bc048c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9962, "upload_time": "2016-11-06T02:58:02", "url": "https://files.pythonhosted.org/packages/e3/0b/d58378fb4bf72dc4b705bc392edac87081510ccaef642658175636d5343c/django-textflow-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "3f0ec35c6e2ee94d9bbbc43e163f9bde", "sha256": "7bf9b488919056fe5822996127295e9f21e6e3849ded396bf08d3bbe46aa92a3" }, "downloads": -1, "filename": "django_textflow-0.1.3-py2-none-any.whl", "has_sig": false, "md5_digest": "3f0ec35c6e2ee94d9bbbc43e163f9bde", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 11435, "upload_time": "2016-11-06T03:04:15", "url": "https://files.pythonhosted.org/packages/cd/fa/47ecdfbcfa30da02e9d8cfcf868f5e5011e5beaf45335624cfc7c51c1f27/django_textflow-0.1.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0ea075d46588b3755f5a504d0c54e3cb", "sha256": "207e05cf4f614cff7ae1fff0f31f7aaef61edfc2dd2ac6c4f28b7ba31e23e916" }, "downloads": -1, "filename": "django_textflow-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "0ea075d46588b3755f5a504d0c54e3cb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11438, "upload_time": "2016-11-06T03:04:17", "url": "https://files.pythonhosted.org/packages/4d/0d/c9001287384b4852e52ffb7778df680b8b85e457df8bfc4543a20acc64fe/django_textflow-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a0fc11373ae58d4892d6dfdafcab29cf", "sha256": "644de66dcce648661aa1caeb79310265fee559502accdffba02ee469660dd85b" }, "downloads": -1, "filename": "django-textflow-0.1.3.tar.gz", "has_sig": false, "md5_digest": "a0fc11373ae58d4892d6dfdafcab29cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9925, "upload_time": "2016-11-06T03:04:20", "url": "https://files.pythonhosted.org/packages/76/f9/869e13dacd9986647356db37978b2bbde84d45cd18a510165b02b03016db/django-textflow-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3f0ec35c6e2ee94d9bbbc43e163f9bde", "sha256": "7bf9b488919056fe5822996127295e9f21e6e3849ded396bf08d3bbe46aa92a3" }, "downloads": -1, "filename": "django_textflow-0.1.3-py2-none-any.whl", "has_sig": false, "md5_digest": "3f0ec35c6e2ee94d9bbbc43e163f9bde", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 11435, "upload_time": "2016-11-06T03:04:15", "url": "https://files.pythonhosted.org/packages/cd/fa/47ecdfbcfa30da02e9d8cfcf868f5e5011e5beaf45335624cfc7c51c1f27/django_textflow-0.1.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0ea075d46588b3755f5a504d0c54e3cb", "sha256": "207e05cf4f614cff7ae1fff0f31f7aaef61edfc2dd2ac6c4f28b7ba31e23e916" }, "downloads": -1, "filename": "django_textflow-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "0ea075d46588b3755f5a504d0c54e3cb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11438, "upload_time": "2016-11-06T03:04:17", "url": "https://files.pythonhosted.org/packages/4d/0d/c9001287384b4852e52ffb7778df680b8b85e457df8bfc4543a20acc64fe/django_textflow-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a0fc11373ae58d4892d6dfdafcab29cf", "sha256": "644de66dcce648661aa1caeb79310265fee559502accdffba02ee469660dd85b" }, "downloads": -1, "filename": "django-textflow-0.1.3.tar.gz", "has_sig": false, "md5_digest": "a0fc11373ae58d4892d6dfdafcab29cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9925, "upload_time": "2016-11-06T03:04:20", "url": "https://files.pythonhosted.org/packages/76/f9/869e13dacd9986647356db37978b2bbde84d45cd18a510165b02b03016db/django-textflow-0.1.3.tar.gz" } ] }