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 | 39 | - [ ] Check IE compat |
40 | 40 | |
41 | 41 | |
42 | -## 1.2 | |
42 | +## 1.3 | |
43 | 43 | |
44 | 44 | - [ ] Earth pdyn = pv² |
45 | 45 | - [ ] Earth omnihour B is a Vector3 |
46 | 46 | - [ ] Layers |
47 | 47 | - SW Catalogs |
48 | 48 | - Auroral Emissions |
49 | + | |
50 | + | |
51 | +## 1.2 | |
52 | + | |
49 | 53 | - [x] Restore Earth |
50 | 54 | - [x] Clean NetCDF, stage 1 |
51 | 55 | - [x] Accordion on the parameters list | ... | ... |
VERSION
web/run.py
... | ... | @@ -765,6 +765,7 @@ def home(): |
765 | 765 | input_slug = get_input_slug_from_query() |
766 | 766 | return render_view('home.html.jinja2', { |
767 | 767 | 'targets': config['targets'], |
768 | + 'active_targets': [t for t in config['targets'] if not t['locked']], | |
768 | 769 | 'parameters': parameters, |
769 | 770 | 'input_slug': input_slug, |
770 | 771 | 'planets': [s for s in config['targets'] if s['type'] == 'planet'], | ... | ... |
web/view/home.html.jinja2
... | ... | @@ -623,15 +623,14 @@ var configuration = { |
623 | 623 | img: '{{ static('img/sun_128.png') }}' |
624 | 624 | }, |
625 | 625 | targets: { |
626 | -{% for target in targets if not target.locked %} | |
627 | - {% if not loop.first %},{% endif %} | |
626 | +{% for target in active_targets %} | |
628 | 627 | '{{ target.slug }}': { |
629 | 628 | slug: '{{ target.slug }}', |
630 | 629 | name: '{{ target.name }}', |
631 | 630 | active: true, |
632 | 631 | orbit: { a: {{ target.orbit.semimajor or 0 }}, b: {{ target.orbit.semiminor or 0 }} }, |
633 | 632 | img: '{{ static('img/target/'~target.slug~'_128.png') }}' |
634 | - } | |
633 | + }{{ ',' if not loop.last }} | |
635 | 634 | {% endfor %} |
636 | 635 | }, |
637 | 636 | parameters: [ |
... | ... | @@ -710,6 +709,7 @@ jQuery().ready(function($){ |
710 | 709 | }); |
711 | 710 | var download_spinner = $('#download_spinner'); |
712 | 711 | var waiting_for_download = false; |
712 | + | |
713 | 713 | $('#download').on("click", function(e){ |
714 | 714 | if (waiting_for_download) return; |
715 | 715 | download_spinner.css('display', 'inline-block'); | ... | ... |