<!DOCTYPE html>
<html lang="en">
        
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">

    {{ resources }}
    {{ script }}
    <style>
        .embed-wrapper {
            display: flex;
            justify-content: space-evenly;
        }
    </style>

    <!-- Navbar -->
    <nav class="navbar navbar-expand-lg bg-dark navbar-dark">
        <div class="container">
            <a href="#" class=navbar-brand">
                <img href="https://LegrandNico.github.io/systole/#" src="./images/logo.svg" height="40" alt="">
                Group-level quality report.
            </a>

            <button 
                class="navbar-toggler" 
                type="button" 
                data-bs-toggle="collapse" 
                data-bs-target="#navmenu"
                >
                <span class="navbar-toggler-icon"></span>
            </button>

            <div class="collapse navbar-collapse">
                <ul class="navbar-nav">
                    <li class="nav-item">
                        <a href="#learn" class="nav-link">ECG</a>
                    </li>
                    <li class="nav-item">
                        <a href="#learn" class="nav-link">PPG</a>
                    </li>
                    <li class="nav-item">
                        <a href="#learn" class="nav-link">Respiration</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <div class="container">
        <div class="row">
            <div class="col-12">
                <h1>Group-level quality reports</h1>
                <div>This report was generated using Systole v.{{systole_version}}. If you use this package for research, please cite as:</div>
                <cite>Legrand, N., & Allen, M. (2022). Systole: A python package for cardiac signal synchrony and analysis. In Journal of Open Source Software (Vol. 7, Issue 69, p. 3832). The Open Journal. https://doi.org/10.21105/joss.03832</cite>
            </div>
        </div>

        {% if show_ecg %}

            <!-- Electrocardiography -->
            <div class="row">
                <div class="col-12">
                    <h2>Electrocardiography (ECG)</h2>
                    <h3>Time-domain metrics</h3>
                    <div class="embed-wrapper">
                        {{ div["time_domain"] }}
                    </div>
                    <h3>Frequency-domain metrics</h3>
                    <div class="embed-wrapper">
                        {{ div["frequency_domain"] }}
                    </div>
                    <h3>Nonlinear-domain metrics</h3>
                    <div class="embed-wrapper">
                        {{ div["nonlinear_domain"] }}
                    </div>
                    <h3>Artefacts</h3>
                    <div class="embed-wrapper">
                        {{ div["artefacts"] }}
                    </div>
                </div>
            </div>

        {% endif %}


    </div>
</html>