Commit 65a04159 authored by Jérôme Ortais's avatar Jérôme Ortais

Modifications de la version en ligne

parent 2b36d46e
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# Jupyter Notebook
.ipynb_checkpoints
# IPython
profile_default/
ipython_config.py
# pyenv
.python-version
# celery beat schedule file
celerybeat-schedule
# SageMath parsed files
*.sage.py
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
User-agent: *
Allow: /
This diff is collapsed.
......@@ -8,7 +8,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="icon" href="{{ MAINSITEURL }}/theme/images/favicon.ico"/>
<link rel="stylesheet" href="{% static "style.css" %}" type="text/css"/>
<link rel="stylesheet" href="{{ MAINSITEURL }}/theme/css/style.css" type="text/css"/>
{% endblock head %}
{% block javascript %}{% endblock %}
......@@ -20,7 +20,7 @@
<div id="header">
{% block header %}
<div id="logo_holder">
<h1><a href="{{ MAINSITEURL }}" id="logo" style="background:transparent url({{ MAINSITEURL }}/theme/images/bandeau.png);">Pyromaths</a></h1>
<h1><a href="{{ MAINSITEURL }}" id="logo">Pyromaths</a></h1>
</div>
<div class="topnav" id="nav_menu">
......@@ -30,7 +30,7 @@
<ul>
<li><a href="{{ MAINSITEURL }}" class="active">Accueil</a></li>
<li><a href="https://enligne.pyromaths.org/">Utiliser en ligne</a></li>
<li><a href="{{ MAINSITEURL }}/telecharger.html">Télécharger</a></li>
<li><a href="{{ MAINSITEURL }}/version-{{ DOWNLOADURL }}.html">Télécharger</a></li>
<li><a href="{{ MAINSITEURL }}/installer-pyromaths.html">Documentation</a></li>
<li><a href="http://pyromaths.readthedocs.io">Développeurs</a></li>
<li id="adroite"><a href="https://forum.pyromaths.org">Forum</a></li>
......
......@@ -53,7 +53,7 @@
</table>
</div>
{% endfor %}
<form method="get" action="{% url 'utiliser:creer' %}" id="idForm" >
<form method="get" action="{% url 'utiliser:creer' %}" id="idForm" onsubmit="return ray.ajax()">
{% csrf_token %}
<noscript>L'utilisation de Pyromaths en ligne nécessite l'activation de Javascript.</noscript>
<p>
......@@ -62,6 +62,15 @@
<input type="reset" value="Annuler" />
</p>
</form>
<script type="text/javascript">
$body = $("body");
var ray={
ajax:function(st)
{
$body.addClass("loading");
}
};
</script>
</div>
<script>
......
......@@ -11,6 +11,8 @@ from pyromaths.ex import ExerciseBag
from pyromaths.outils.System import Fiche
from pyromaths.version import VERSION
from datetime import date
from . import MAINSITEURL
BAG = ExerciseBag()
......@@ -25,8 +27,10 @@ EXERCICES = [
def choix(request):
return render(request, 'utiliser/utiliser.html', {
'VERSION': VERSION,
'DOWNLOADURL': VERSION.replace('.', '-'),
'EXERCICES': EXERCICES,
'MAINSITEURL': MAINSITEURL,
'deficit': 1888.98+11.99*(date.today().year*12 + date.today().month-12*2014-6)
}
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment