Commit dfa1f66e63c8154d0925f1635bd6eed4b16a07e6

Authored by Goutte
1 parent 575e380a

Move the layers below the parameters.

Showing 2 changed files with 112 additions and 147 deletions   Show diff stats
web/view/home.html.jinja2
... ... @@ -47,6 +47,8 @@
47 47  
48 48 {% macro icon(name) %}<i class="fa fa-{{ name }}" aria-hidden="true"></i>{% endmacro %}
49 49  
  50 +{#############################################################################}
  51 +
50 52 <div id="plots_loader">
51 53 <p class="loader-text">Loading Heliopropa&hellip;<br>This might take a while.</p>
52 54 <div id="plots_loader_img1" class="img"></div>
... ... @@ -70,7 +72,6 @@
70 72 <input type="submit" id="apply_new_interval" value="Load new interval" title="Two years maximum. This may take a while." class="mdl-button mdl-js-button mdl-js-ripple-effect">
71 73 </form>
72 74  
73   - <br>
74 75 <hr class="clear">
75 76  
76 77 <span class="mdl-layout-title">{{ icon('eercast') }} Planets</span>
... ... @@ -81,7 +82,6 @@
81 82 {% endfor %}
82 83 </section>
83 84  
84   - <br>
85 85 <hr class="clear">
86 86  
87 87 <span class="mdl-layout-title">{{ icon('rocket') }} Probes &amp; Comets</span>
... ... @@ -95,21 +95,6 @@
95 95 {% endfor %}
96 96 </section>
97 97  
98   - <br>
99   - <hr class="clear">
100   -
101   - <span class="mdl-layout-title">{{ icon('area-chart') }} Layers</span>
102   -
103   - <section class="section-drawer">
104   -{% for layer in config.layers %}
105   - <label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-layer-{{ layer.slug }}" title="{{ layer.desc }}">
106   - <input type="checkbox" disabled id="option-layer-{{ layer.slug }}" class="mdl-radio__button" name="layer_slug" value="{{ layer.slug }}" {{ 'checked' if layer.slug == layer_slug }}>
107   - <span class="mdl-radio__label">{{ layer.name }}</span>
108   - </label>
109   - <br />
110   -{% endfor %}
111   - </section>
112   -
113 98 <hr class="clear">
114 99  
115 100 {# <span class="mdl-layout-title">{{ icon('database') }} Inputs</span>#}
... ... @@ -131,11 +116,25 @@
131 116 <span class="mdl-layout-title">{{ icon('flask') }} Parameters</span>
132 117  
133 118 <nav id="parameters" class="mdl-navigation">
134   - {% for p in parameters %}
  119 +{% for p in parameters %}
135 120 <a class="mdl-navigation__link parameter{{ ' active' if p.active }}" data-ts-slug="{{ p.slug }}" href="#">{{ p.name }}</a>
136   - {% endfor %}
  121 +{% endfor %}
137 122 </nav>
138 123  
  124 + <hr class="clear">
  125 +
  126 + <span class="mdl-layout-title">{{ icon('area-chart') }} Layers</span>
  127 +
  128 + <section class="section-drawer">
  129 +{% for layer in config.layers %}
  130 + <label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="option-layer-{{ layer.slug }}" title="{{ layer.desc }}">
  131 + <input type="checkbox" disabled id="option-layer-{{ layer.slug }}" class="mdl-radio__button" name="layer_slug" value="{{ layer.slug }}" {{ 'checked' if layer.slug == layer_slug }}>
  132 + <span class="mdl-radio__label">{{ layer.name }}</span>
  133 + </label>
  134 + <br />
  135 +{% endfor %}
  136 + </section>
  137 +
139 138 <div class="mdl-layout-spacer"></div>
140 139  
141 140 </div>
... ... @@ -147,21 +146,25 @@
147 146 <div class="mdl-cell mdl-cell--4-col mdl-cell--8-col-tablet mdl-cell--4-col-phone">
148 147 <section id="orbits"></section>
149 148 <div class="plots-actions plots-buttons">
150   - <button id="zoom_inner_heliosphere" class="mdl-button mdl-button--raised mdl-button--primary"
  149 + <button id="zoom_inner_heliosphere"
  150 + class="mdl-button mdl-button--raised mdl-button--primary"
151 151 title="Zoom to the inner heliosphere.">
152 152 Zoom in
153 153 </button>
154   - <button id="zoom_outer_heliosphere" class="mdl-button mdl-button--raised mdl-button--primary"
  154 + <button id="zoom_outer_heliosphere"
  155 + class="mdl-button mdl-button--raised mdl-button--primary"
155 156 title="Zoom to the outer heliosphere.">
156 157 Zoom out
157 158 </button>
158 159 </div>
159 160 <div class="plots-actions plots-buttons">
160   - <button id="download" class="mdl-button mdl-button--raised mdl-button--primary"
  161 + <button id="download"
  162 + class="mdl-button mdl-button--raised mdl-button--primary"
161 163 title="Download the raw data for each selected target and parameters.">
162 164 Download
163 165 </button>
164   - <button id="samp" class="samp mdl-button mdl-button--raised mdl-button--primary mdl-button--disabled"
  166 + <button id="samp"
  167 + class="samp mdl-button mdl-button--raised mdl-button--primary mdl-button--disabled"
165 168 title="Send the data to a connected SAMP hub.">
166 169 SAMP
167 170 </button>
... ... @@ -183,10 +186,6 @@
183 186  
184 187 {% block styles %}
185 188 <style>
186   - html, body {
187   -{# background-color: #322e3f;#}
188   -{# color: #e3e3e3;#}
189   - }
190 189 .mdl-layout__drawer > .mdl-layout-title {
191 190 padding-left: 30px;
192 191 line-height: 42px;
... ... @@ -195,93 +194,6 @@
195 194 line-height: 60px;
196 195 }
197 196  
198   - #plots_wrapper {
199   -{# position: relative;#}
200   - }
201   -
202   - #plots_loader {
203   - position: fixed;
204   - top: 0; left: 0; bottom: 0; right: 0;
205   - height: 100%;
206   - width: 100%;
207   - background-color: #fff;
208   - z-index: 1000;
209   - }
210   -
211   - #plots_loader .loader-text {
212   - width: 200px;
213   - height: 30px;
214   - position: absolute;
215   - top: -240px; left: -32px; bottom: 0; right: 0;
216   - margin: auto;
217   - text-align: center;
218   - font-size: 1.0em;
219   - font-style: italic;
220   - color: darkgrey;
221   - }
222   -
223   - #plots_loader .img {
224   - width: 100px;
225   - height: 100px;
226   - border-radius: 100%;
227   - position: absolute;
228   - border: 1px solid #6978ff;
229   - animation: keyframes_rotate 1s;
230   - animation-iteration-count: infinite;
231   - transition: 2s;
232   - border-bottom: none;
233   - border-right: none;
234   - animation-timing-function: linear;
235   - margin-left: -70px;
236   - margin-top: -70px;
237   - left: 50%;
238   - top: 50%;
239   - }
240   -
241   - @keyframes keyframes_rotate {
242   - from {
243   - transform: rotate(0deg);
244   - }
245   - 50% {
246   - transform: rotate(180deg);
247   - }
248   - 100% {
249   - transform: rotate(360deg);
250   - }
251   - }
252   -
253   - #plots_loader #plots_loader_img2 {
254   - width: 90px;
255   - height: 90px;
256   - left: 50.35%;
257   - top: 50.7%;
258   - animation-delay: .2s;
259   - }
260   -
261   - #plots_loader #plots_loader_img3 {
262   - width: 80px;
263   - height: 80px;
264   - left: 50.70%;
265   - top: 51.4%;
266   - animation-delay: .4s;
267   - }
268   -
269   - #plots_loader #plots_loader_img4 {
270   - width: 70px;
271   - height: 70px;
272   - left: 51.05%;
273   - top: 52.1%;
274   - animation-delay: .6s;
275   - }
276   -
277   - #plots_loader #plots_loader_img5 {
278   - width: 60px;
279   - height: 60px;
280   - left: 51.40%;
281   - top: 52.8%;
282   - animation-delay: .8s;
283   - }
284   -
285 197 .plots-buttons {
286 198 text-align: center;
287 199 margin: 3em auto;
... ... @@ -310,9 +222,6 @@
310 222 shape-rendering: crispEdges;
311 223 stroke-width: 1px;
312 224 }
313   - svg text {
314   -{# fill: #f4f4f4;#}
315   - }
316 225 #time_series svg .brush .selection {
317 226 fill: #efa02c;
318 227 fill-opacity: 0.382;
... ... @@ -324,7 +233,7 @@
324 233 }
325 234 path.predictive-line {
326 235 fill: none;
327   - stroke: #4cf561;
  236 + stroke: #ff4081;
328 237 stroke-width: 2px;
329 238 }
330 239 circle.cursor-circle {
... ... @@ -432,58 +341,132 @@
432 341 background-color: #c8d3e1;
433 342 }
434 343  
  344 + {# CSS Spinners #}
  345 +
  346 + #plots_loader {
  347 + position: fixed;
  348 + top: 0; left: 0; bottom: 0; right: 0;
  349 + height: 100%;
  350 + width: 100%;
  351 + background-color: #fff;
  352 + z-index: 1000;
  353 + }
  354 +
  355 + #plots_loader .loader-text {
  356 + width: 200px;
  357 + height: 30px;
  358 + position: absolute;
  359 + top: -240px; left: -32px; bottom: 0; right: 0;
  360 + margin: auto;
  361 + text-align: center;
  362 + font-size: 1.0em;
  363 + font-style: italic;
  364 + color: darkgrey;
  365 + }
  366 +
  367 + #plots_loader .img {
  368 + width: 100px;
  369 + height: 100px;
  370 + border-radius: 100%;
  371 + position: absolute;
  372 + border: 1px solid #6978ff;
  373 + animation: keyframes_rotate 1s;
  374 + animation-iteration-count: infinite;
  375 + transition: 2s;
  376 + border-bottom: none;
  377 + border-right: none;
  378 + animation-timing-function: linear;
  379 + margin-left: -70px;
  380 + margin-top: -70px;
  381 + left: 50%;
  382 + top: 50%;
  383 + }
  384 +
  385 + #plots_loader #plots_loader_img2 {
  386 + width: 90px;
  387 + height: 90px;
  388 + left: 50.35%;
  389 + top: 50.7%;
  390 + animation-delay: .2s;
  391 + }
  392 +
  393 + #plots_loader #plots_loader_img3 {
  394 + width: 80px;
  395 + height: 80px;
  396 + left: 50.70%;
  397 + top: 51.4%;
  398 + animation-delay: .4s;
  399 + }
  400 +
  401 + #plots_loader #plots_loader_img4 {
  402 + width: 70px;
  403 + height: 70px;
  404 + left: 51.05%;
  405 + top: 52.1%;
  406 + animation-delay: .6s;
  407 + }
  408 +
  409 + #plots_loader #plots_loader_img5 {
  410 + width: 60px;
  411 + height: 60px;
  412 + left: 51.40%;
  413 + top: 52.8%;
  414 + animation-delay: .8s;
  415 + }
  416 +
  417 + @keyframes keyframes_rotate {
  418 + from {
  419 + transform: rotate(0deg);
  420 + }
  421 + 50% {
  422 + transform: rotate(180deg);
  423 + }
  424 + 100% {
  425 + transform: rotate(360deg);
  426 + }
  427 + }
  428 +
435 429 .small-loader-container {
436 430 width: 27px;
437 431 margin: 0 auto;
438 432 background: none;
439 433 pointer-events: none;
440 434 }
441   -
442 435 .small-loader-circle-1 {
443 436 height: 27px;
444 437 width: 27px;
445 438 background: rgba(255, 238, 195, 0.72);
446 439 }
447   -
448 440 .small-loader-circle-2 {
449 441 height: 22px;
450 442 width: 22px;
451 443 background: none;
452   - {# background: rgba(56, 53, 194, 0.5);#}
453 444 }
454   -
455 445 .small-loader-circle-3 {
456 446 height: 18px;
457 447 width: 18px;
458 448 background: rgba(29, 65, 255, 0.9);
459 449 }
460   -
461 450 .small-loader-circle-4 {
462 451 height: 13px;
463 452 width: 13px;
464 453 background: none;
465   - {# background: rgba(98, 109, 237, 0.5);#}
466 454 }
467   -
468 455 .small-loader-circle-5 {
469 456 height: 9px;
470 457 width: 9px;
471 458 background: rgba(238, 238, 238, 0.8);
472 459 }
473   -
474 460 .small-loader-circle-6 {
475 461 height: 4px;
476 462 width: 4px;
477 463 background: none;
478   - {# background: rgba(0, 0, 0, 0);#}
479 464 }
480   -
481 465 .small-loader-circle-7 {
482 466 height: 2px;
483 467 width: 2px;
484 468 background: rgb(110, 102, 255);
485 469 }
486   -
487 470 .small-loader-circle-1,
488 471 .small-loader-circle-2,
489 472 .small-loader-circle-3,
... ... @@ -524,8 +507,6 @@
524 507 -moz-animation-timing-function: linear;
525 508 }
526 509  
527   -
528   -
529 510 @keyframes small-loader-spin {
530 511 from {
531 512 transform: rotate(0deg);
... ...
web/view/layout.html.jinja2
... ... @@ -22,9 +22,6 @@
22 22 <link rel="stylesheet" type="text/css" href="{{ static('css/main.css') }}">
23 23 {% block styles %}{% endblock %}
24 24  
25   -{# <script type="text/javascript">#}
26   -{# // Good javascript is no javascript -- hurray! \o/#}
27   -{# </script>#}
28 25 {% block scripts_header %}{% endblock %}
29 26 </head>
30 27  
... ... @@ -49,19 +46,6 @@
49 46 </div>
50 47 </header>
51 48  
52   -{# <div class="">#}
53   -{# <nav id="menu" role="navigation">#}
54   -{# <ul>#}
55   -{# <li class="home{% if menu_section == 'home' %} active{% endif %}">#}
56   -{# <a href="index.html"></a>#}
57   -{# </li>#}
58   -{# <li{% if menu_section == 'authors' %} class="active"{% endif %}>#}
59   -{# <a href="authors.html">Authors</a>#}
60   -{# </li>#}
61   -{# </ul>#}
62   -{# </nav>#}
63   -{# </div>#}
64   -
65 49 <div id="content" class="">
66 50 {% block content %}
67 51 <p>Please override the "content" block in the page template.</p>
... ...