Exemple #1
0
 def layout(self, spa):
     text = spa.footer_text() or self.title
     if text:
         return html.Footer([
             html.Div([
                 html.P(text,
                        id='footer',
                        className='text-center font-italic',
                        style={'marginTop': 10})
             ],
                      className='containers')
         ],
                            className='footer')
     else:
         return None
Exemple #2
0
def get_footer():
    """ """
    return html.Footer(
        [
            html.Div(
                [
                    html.P([f"{k}: "]),
                    html.A([html.Img(src=v)], href=v.split(".svg")[0]),
                ],
                className="col",
            ) for k, v in BUILD_STATUS_MAPPING
        ] + [
            dcc.Interval(
                id=BUILD_STATUS_INTERVAL, interval=60 * 1000, n_intervals=0)
        ],
        className="page-footer text-center row p-3",
    )
Exemple #3
0
#### Cite this work

1.Yuxuan Zhang, Jean Bilheux, Hassina Bilheux and Jiao Lin, (2019) "[An interactive web-based tool 
to guide the preparation of neutron imaging experiments at oak ridge national laboratory](https://iopscience.iop.org/article/10.1088/2399-6528/ab4ee6)", 
*Journal of Physics Communications*, 3(10), 103003.

2.Yuxuan Zhang and Jean Bilheux, (2017), "[ImagingReso: A Tool for Neutron Resonance Imaging](http://joss.theoj.org/papers/997d09281a9d76e95f4ec4d3279eeb8c)",
*Journal of Open Source Software*, 2(19), 407.

'''),
        dcc.Markdown('''
#### Contact us

Yuxuan Zhang -- [email protected]

Jean Bilheux -- [email protected]
'''),

        dcc.Markdown('''
#### Acknowledgments

This work is based upon research sponsored by the Laboratory Directed Research and
Development Program of Oak Ridge National Laboratory, managed by UT-Battelle LLC for
the US Department of Energy. This research used resources at the Spallation Neutron Source,
a DOE Office of Science User Facility operated by Oak Ridge National Laboratory.
'''),
        html.Footer("( iNEUIT v0.0.24 )")
    ],
)

Exemple #4
0
                        html.H6(f"People in intensive care (rea) on {hosp_data.get('date')[-1]}",
                                className="card-subtitle")
                    ]
                )
            ), className="col-md-4"
        ),
        html.Div([dcc.Graph(id='timeline-france-vaccines',
                            figure=timeline_france_vaccine.set_vaccine_figure(title='France vaccines'))],
                 className="col-md-6"),
        html.Div(
            [dcc.Graph(id='bar-france-hosp', figure=bar_france_hosp.set_hosp_data(title="France hospitalisation"))],
            className="col-md-6"),
    ]
    ),
    html.Footer([
        html.A("Data provided by CSSEGISandData", href="https://github.com/CSSEGISandData/COVID-19", target="_blank"),
    ], className="footer", style={"textAlign": "center", "padding": "20px 0"})

], className="container-fluid")


@app.callback([
    Output(component_id='timeline-all-graph', component_property='figure'),
    Output(component_id='map-graph', component_property='figure'),
    Output(component_id='timeline-dayone-graph', component_property='figure'),
],
    [
        Input(component_id='countries-dropdown', component_property='value'),
        Input(component_id='types-dropdown', component_property='value'),
    ]
)
Exemple #5
0
)

current_year = datetime.now().year
footer = html.Footer(
    className="footer",
    children=[
        ddsih.DangerouslySetInnerHTML(
            f"""
        <div class="container">
            <div class="columns">
                <div class="logos column is-one-fifth">
                    <a href="https://www.gov.nt.ca/"><img class="nwt" src="{path_prefix}assets/NWT.svg"></a>
                    <a href="https://uaf.edu/uaf/"><img class="uaf" src="{path_prefix}assets/UAF.svg"></a>
                </div>
                <div class="column content is-size-5">
                    <p>This tool is part of an ongoing collaboration between the <a href="https://uaf-snap.org">Scenarios Network for Alaska + Arctic Planning</a> and the Government of Northwest Territories. We are working to make a wide range of downscaled climate products that are easily accessible, flexibly usable, and fully interpreted and understandable to users in the Northwest Territories, while making these products relevant at a broad geographic scale.
                    </p>
                    <p>Please contact <a href="mailto:[email protected]">[email protected]</a> if you have questions or would like to provide feedback for this tool. <a href="https://uaf-snap.org/tools-overview/">Visit the SNAP Climate + Weather Tools page</a> to see our full suite of interactive web tools.</p>
                    <p>Copyright © {current_year} University of Alaska Fairbanks.  All rights reserved.</p>
                    <p>UA is an AA/EO employer and educational institution and prohibits illegal discrimination against any individual.  <a href="https://www.alaska.edu/nondiscrimination/">Statement of Nondiscrimination</a> and <a href="https://www.alaska.edu/records/records/compliance/gdpr/ua-privacy-statement/">Privacy Statement</a>.</p>
                    <p>About the photo: Springtime comes to Ulukhaktok, NWT. Formerly known as Holman, this Inuvialuit community—whose name translates to “where there is ulu material”—is famous for exquisite Inuit prints. Credit: Anne Kokko, used with permission.</p>
                </div>
            </div>
        </div>
        """
        )
    ],
)


header_section = ddsih.DangerouslySetInnerHTML(
Exemple #6
0
    dbc.Container(
        [
            html.Iframe(
                src='/documentation/index.html',
                style={
                    'width': '100%',
                    'height': '100%'
                },
            )
        ],
        id='documentation-container',
        className='p-0',
    ),
    html.Footer([
        html.A("FMPy %s" % fmpy.__version__,
               href='https://github.com/CATIA-Systems/FMPy',
               className='d-block text-muted small'),
    ],
                className='my-4 pt-3 border-top')
])


@app.callback([
    Output('model-info-container', 'style'),
    Output('simulation-container', 'style'),
    Output('documentation-container', 'style')
], [Input("tabs", "active_tab")])
def switch_tab(active_tab):
    return ({
        'display': 'block' if active_tab == 'model-info-tab' else 'none'
    }, {
        'display': 'block' if active_tab == 'simulation-tab' else 'none'
Exemple #7
0
footer = html.Footer(
    className="footer has-text-centered",
    children=[
        html.Div(children=[
            html.A(
                href="http://www.neptuneinc.org",
                target="_blank",
                className="level-item neptune",
                children=[html.Img(src=path_prefix + "assets/neptune.jpg")],
            ),
            html.A(
                href="https://snap.uaf.edu",
                target="_blank",
                className="level-item",
                children=[
                    html.Img(src=path_prefix + "assets/SNAP_color_all.svg")
                ],
            ),
            html.A(
                href="https://uaf.edu/uaf/",
                target="_blank",
                className="level-item",
                children=[html.Img(src=path_prefix + "assets/UAF.svg")],
            ),
        ]),
        dcc.Markdown(
            """
UA is an AA/EO employer and educational institution and prohibits illegal discrimination against any individual. [Statement of Nondiscrimination](https://www.alaska.edu/nondiscrimination/)
            """,
            className="content is-size-6",
        ),
    ],
)