Commit a0e5bc712e5da8e1309f9f51a9f421fc5a06d8fa
1 parent
30acdbdf
Exists in
master
and in
2 other branches
Keep trying to fix the website for IE, the idiot browser for ignorants. Every ti…
…me you use IE, god kills a kitten.
Showing
4 changed files
with
10 additions
and
5 deletions
Show diff stats
CHANGELOG.md
@@ -39,13 +39,17 @@ et prendre aussi | @@ -39,13 +39,17 @@ et prendre aussi | ||
39 | - [ ] Check IE compat | 39 | - [ ] Check IE compat |
40 | 40 | ||
41 | 41 | ||
42 | -## 1.2 | 42 | +## 1.3 |
43 | 43 | ||
44 | - [ ] Earth pdyn = pv² | 44 | - [ ] Earth pdyn = pv² |
45 | - [ ] Earth omnihour B is a Vector3 | 45 | - [ ] Earth omnihour B is a Vector3 |
46 | - [ ] Layers | 46 | - [ ] Layers |
47 | - SW Catalogs | 47 | - SW Catalogs |
48 | - Auroral Emissions | 48 | - Auroral Emissions |
49 | + | ||
50 | + | ||
51 | +## 1.2 | ||
52 | + | ||
49 | - [x] Restore Earth | 53 | - [x] Restore Earth |
50 | - [x] Clean NetCDF, stage 1 | 54 | - [x] Clean NetCDF, stage 1 |
51 | - [x] Accordion on the parameters list | 55 | - [x] Accordion on the parameters list |
VERSION
web/run.py
@@ -765,6 +765,7 @@ def home(): | @@ -765,6 +765,7 @@ def home(): | ||
765 | input_slug = get_input_slug_from_query() | 765 | input_slug = get_input_slug_from_query() |
766 | return render_view('home.html.jinja2', { | 766 | return render_view('home.html.jinja2', { |
767 | 'targets': config['targets'], | 767 | 'targets': config['targets'], |
768 | + 'active_targets': [t for t in config['targets'] if not t['locked']], | ||
768 | 'parameters': parameters, | 769 | 'parameters': parameters, |
769 | 'input_slug': input_slug, | 770 | 'input_slug': input_slug, |
770 | 'planets': [s for s in config['targets'] if s['type'] == 'planet'], | 771 | 'planets': [s for s in config['targets'] if s['type'] == 'planet'], |
web/view/home.html.jinja2
@@ -623,15 +623,14 @@ var configuration = { | @@ -623,15 +623,14 @@ var configuration = { | ||
623 | img: '{{ static('img/sun_128.png') }}' | 623 | img: '{{ static('img/sun_128.png') }}' |
624 | }, | 624 | }, |
625 | targets: { | 625 | targets: { |
626 | -{% for target in targets if not target.locked %} | ||
627 | - {% if not loop.first %},{% endif %} | 626 | +{% for target in active_targets %} |
628 | '{{ target.slug }}': { | 627 | '{{ target.slug }}': { |
629 | slug: '{{ target.slug }}', | 628 | slug: '{{ target.slug }}', |
630 | name: '{{ target.name }}', | 629 | name: '{{ target.name }}', |
631 | active: true, | 630 | active: true, |
632 | orbit: { a: {{ target.orbit.semimajor or 0 }}, b: {{ target.orbit.semiminor or 0 }} }, | 631 | orbit: { a: {{ target.orbit.semimajor or 0 }}, b: {{ target.orbit.semiminor or 0 }} }, |
633 | img: '{{ static('img/target/'~target.slug~'_128.png') }}' | 632 | img: '{{ static('img/target/'~target.slug~'_128.png') }}' |
634 | - } | 633 | + }{{ ',' if not loop.last }} |
635 | {% endfor %} | 634 | {% endfor %} |
636 | }, | 635 | }, |
637 | parameters: [ | 636 | parameters: [ |
@@ -710,6 +709,7 @@ jQuery().ready(function($){ | @@ -710,6 +709,7 @@ jQuery().ready(function($){ | ||
710 | }); | 709 | }); |
711 | var download_spinner = $('#download_spinner'); | 710 | var download_spinner = $('#download_spinner'); |
712 | var waiting_for_download = false; | 711 | var waiting_for_download = false; |
712 | + | ||
713 | $('#download').on("click", function(e){ | 713 | $('#download').on("click", function(e){ |
714 | if (waiting_for_download) return; | 714 | if (waiting_for_download) return; |
715 | download_spinner.css('display', 'inline-block'); | 715 | download_spinner.css('display', 'inline-block'); |