<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="NiReports: https://www.nipreps.org/" />
<title>sub-67_ses-01_task-piper_run-01_bold :: MRIQC's BOLD fMRI report</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>

<script>
var timestamp = Date.now()

function read_form() {
    var ds = "<unset>";
    var sub = "sub-67_ses-01_task-piper_run-01_bold.nii.gz";

    var artifacts = [];
    $('#qcartifacts-group input:checked').each(function() {
        artifacts.push($(this).attr('name'));
    });

    var rating = $('#qcslider').val();
    var payload = {
        'dataset': ds,
        'subject': sub,
        'rating': rating,
        'artifacts': artifacts,
        'time_sec': (Date.now() - timestamp) / 1000,
        'confidence': $('#qcextra-confidence').val(),
        'comments': $('#qcextra-comments').val()
    };

    var file = new Blob([JSON.stringify(payload)], {type: 'text/json'});
    $('#btn-download').attr('href', URL.createObjectURL(file));
    $('#btn-download').attr('download', payload['dataset'] + "_" + payload['subject'] + ".json");
    return payload
};

function toggle_rating() {
    if ($('#qcrating-menu').hasClass('d-none')) {
        $('#qcrating-menu').removeClass('d-none');
        $('#qcrating-toggler').prop('checked', true);
    } else {
        $('#qcrating-menu').addClass('d-none');
        $('#qcrating-toggler').prop('checked', false);
    }
};

$(window).on('load',function(){
    var authorization = $('#btn-post').val()
    if (authorization.includes("secret_token")) {
        $('#btn-post').addClass('d-none');
    };
    timestamp = Date.now();
});

</script>
<style type="text/css">
/* The slider itself */
.slider {
  -webkit-appearance: none;  /* Override default CSS styles */
  appearance: none;
  margin-bottom: 8px;
  margin-left: 10%;
  width: 80%;
  height: 5px; /* Specified height */
  background: #d3d3d3; /* Grey background */
  outline: none; /* Remove outline */
  opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
  -webkit-transition: .2s; /* 0.2 seconds transition on hover */
  transition: opacity .2s;
}

/* Mouse-over effects */
.slider:hover {
  opacity: 1; /* Fully shown on mouse-over */
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border: 0;
  background: url('https://raw.githubusercontent.com/nipreps/nireports/main/assets/slider-handle.png');
  cursor: pointer;
  z-index: 2000 !important;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border: 0;
  background: url('https://raw.githubusercontent.com/nipreps/nireports/main/assets/slider-handle.png');
  cursor: pointer;
  z-index: 2000 !important;
}

</style>
</head>
<body style="font-family: helvetica;">
<nav class="navbar fixed-top navbar-expand-lg bg-light">
<div class="container-fluid">
<div class="collapse navbar-collapse" id="navbarSupportedContent">
    <ul class="navbar-nav me-auto mb-2 mb-lg-0">
        <li class="nav-item"><a class="nav-link" href="#Basic echo-wise reports">Basic echo-wise reports</a></li>
        <li class="nav-item"><a class="nav-link" href="#Extended echo-wise reports">Extended echo-wise reports</a></li>
        <li class="nav-item"><a class="nav-link" href="#Extended reports shared across echos">Extended reports shared across echos</a></li>
        <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" id="navbarAbout" role="button" data-bs-toggle="dropdown" aria-expanded="false" href="#About">
            About
            </a>
            <ul class="dropdown-menu">
                <li><a class="dropdown-item" href="#errors">Errors</a></li>
                <li><a class="dropdown-item" href="#meta-about-metadata">Reproducibility and provenance information</a></li>
            </ul>
        </li>
    </ul>
</div>
</div>
<div class="d-flex flex-row-reverse">
<div class="form-check form-switch align-self-center flex-fill me-4">
<input class="form-check-input" type="checkbox" id="qcrating-toggler"></input>
<label class="form-check-label" style="width: 100pt;" for="qcrating-toggler">Rating widget</label>
</div>
</div>
</nav>
<noscript>
    <h1 class="text-danger"> The navigation menu uses Javascript. Without it this report might not work as expected </h1>
</noscript>

    <div id="Basic echo-wise reports" class="mt-5">
    <h1 class="sub-report-title pt-5 ps-4">Basic echo-wise reports</h1>
        <div id="datatype-figures_desc-stdev_run-01_session-01_subject-67_suffix-bold_task-piper" class="ps-4 pe-4 mb-2">
<h3 class="run-title mt-3">Standard deviation of signal through time</h3><p class="elem-caption">The voxel-wise standard deviation of the signal (variability along time).</p>                    <div class="reportlet">
<img class="svg-reportlet" src="./sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-stdev_bold.svg" style="width: 100%" />
</div>
<small>Get figure file: <a href="./sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-stdev_bold.svg" target="_blank">sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-stdev_bold.svg</a></small>

        </div>
        <div id="datatype-figures_desc-background_run-01_session-01_subject-67_suffix-bold_task-piper" class="ps-4 pe-4 mb-2">
<h3 class="run-title mt-3">View of the background of the voxel-wise average of the BOLD timeseries</h3><p class="elem-caption">This panel shows a mosaic enhancing the background around the head. Artifacts usually unveil themselves in the air surrounding the head, where no signal sources are present.</p>                    <div class="reportlet">
<img class="svg-reportlet" src="./sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-background_bold.svg" style="width: 100%" />
</div>
<small>Get figure file: <a href="./sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-background_bold.svg" target="_blank">sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-background_bold.svg</a></small>

        </div>
        <div id="datatype-figures_desc-zoomed_run-01_session-01_subject-67_suffix-bold_task-piper" class="ps-4 pe-4 mb-2">
<h3 class="run-title mt-3">Voxel-wise average of BOLD time-series, zoomed-in covering just the brain</h3><p class="elem-caption">This panel shows a mosaic of the brain. This mosaic is the most suitable to screen head-motion intensity inhomogeneities, global/local noise, signal leakage (for example, from the eyeballs and across the phase-encoding axis), etc.</p>                    <div class="reportlet">
<img class="svg-reportlet" src="./sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-zoomed_bold.svg" style="width: 100%" />
</div>
<small>Get figure file: <a href="./sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-zoomed_bold.svg" target="_blank">sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-zoomed_bold.svg</a></small>

        </div>
        <div id="datatype-figures_desc-carpet_run-01_session-01_subject-67_suffix-bold_task-piper" class="ps-4 pe-4 mb-2">
<h3 class="run-title mt-3">Carpetplot and nuisance signals</h3><p class="elem-caption">The so-called &laquo;carpetplot&raquo; may assist in assessing head-motion derived artifacts and respiation effects.</p>                    <div class="reportlet">
<img class="svg-reportlet" src="./sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-carpet_bold.svg" style="width: 100%" />
</div>
<small>Get figure file: <a href="./sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-carpet_bold.svg" target="_blank">sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-carpet_bold.svg</a></small>

        </div>
    </div>
    <div id="Extended echo-wise reports" class="mt-5">
    <h1 class="sub-report-title pt-5 ps-4">Extended echo-wise reports</h1>
        <div id="datatype-figures_desc-mean_run-01_session-01_subject-67_suffix-bold_task-piper" class="ps-4 pe-4 mb-2">
<h3 class="run-title mt-3">Voxel-wise average of BOLD time-series</h3><p class="elem-caption">The average signal calculated across the last axis (time).</p>                    <div class="reportlet">
<img class="svg-reportlet" src="./sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-mean_bold.svg" style="width: 100%" />
</div>
<small>Get figure file: <a href="./sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-mean_bold.svg" target="_blank">sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-mean_bold.svg</a></small>

        </div>
    </div>
    <div id="Extended reports shared across echos" class="mt-5">
    <h1 class="sub-report-title pt-5 ps-4">Extended reports shared across echos</h1>
        <div id="datatype-figures_desc-brainmask_run-01_session-01_subject-67_suffix-bold_task-piper" class="ps-4 pe-4 mb-2">
<h3 class="run-title mt-3">Brain extraction performance</h3><p class="elem-caption">Brain mask as internally extracted by MRIQC. Defects on the brainmask could indicate problematic aspects of the image quality-wise.</p>                    <div class="reportlet">
<img class="svg-reportlet" src="./sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-brainmask_bold.svg" style="width: 100%" />
</div>
<small>Get figure file: <a href="./sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-brainmask_bold.svg" target="_blank">sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-brainmask_bold.svg</a></small>

        </div>
        <div id="datatype-figures_desc-norm_run-01_session-01_subject-67_suffix-bold_task-piper" class="ps-4 pe-4 mb-2">
<h3 class="run-title mt-3">Spatial normalization of the anatomical image</h3><p class="elem-caption">This panel shows a <em>quick-and-dirty</em> nonlinear registration into the <code>MNI152NLin2009cAsym</code> template accessed with <a href="https://templateflow.org/browse" target="_blank"><em>TemplateFlow</em></a>.</p>                    <div class="reportlet">
<object class="svg-reportlet" type="image/svg+xml" data="./sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-norm_bold.svg" style="">
Problem loading figure sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-norm_bold.svg. If the link below works, please try reloading the report in your browser.</object>
</div>
<small>Get figure file: <a href="./sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-norm_bold.svg" target="_blank">sub-67/figures/sub-67_ses-01_task-piper_run-01_desc-norm_bold.svg</a></small>

        </div>
    </div>
    <div id="About" class="mt-5">
    <h1 class="sub-report-title pt-5 ps-4">About</h1>
        <div id="errors" class="ps-4 pe-4 mb-2">
<h2 class="sub-report-group mt-4">Errors</h2>                    <p class="alert alert-success" role="alert">No errors to report!</p>
        </div>
        <div id="meta-about-metadata" class="ps-4 pe-4 mb-2">
<h2 class="sub-report-group mt-4">Reproducibility and provenance information</h2><p class="elem-caption">Thanks for using <em>MRIQC</em>. The following information may assist in
reconstructing the provenance of the corresponding derivatives.
</p>                    <div class="accordion accordion-flush" id="about-metadata">


  <div class="accordion-item">
    <h2 class="accordion-header" id="about-metadata-0">
      <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#about-metadata-0-collapse" aria-controls="about-metadata-0-collapse">
        Provenance Information
      </button>
    </h2>
    <div id="about-metadata-0-collapse" class="accordion-collapse collapse" aria-labelledby="about-metadata-0-heading" data-bs-parent="#about-metadata-0">
      <div class="accordion-body metadata-table">
      <table id="about-metadata-table-0" class="table table-sm table-striped">
<tr><td colspan=2>Execution environment</td><td>singularity</td></tr>
<tr><td colspan=2>Input filename</td><td><BIDS root>/sub-67/ses-01/func/sub-67_ses-01_task-piper_run-01_bold.nii.gz</td></tr>
<tr><td>Versions</td><td>MRIQC</td><td>24.1.0.dev0+gd5b13cb5.d20240826</td></tr>
<tr><td>Versions</td><td>NiPype</td><td>1.8.6</td></tr>
<tr><td>Versions</td><td>TemplateFlow</td><td>24.2.0</td></tr>
<tr><td colspan=2>md5sum</td><td>c5d607d4a456f48625876b40d3fb684f</td></tr>
</table>

      </div>
    </div>
  </div>


  <div class="accordion-item">
    <h2 class="accordion-header" id="about-metadata-1">
      <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#about-metadata-1-collapse" aria-controls="about-metadata-1-collapse">
        Dataset Information
      </button>
    </h2>
    <div id="about-metadata-1-collapse" class="accordion-collapse collapse" aria-labelledby="about-metadata-1-heading" data-bs-parent="#about-metadata-1">
      <div class="accordion-body metadata-table">
      <table id="about-metadata-table-1" class="table table-sm table-striped">
<tr><td colspan=2>ConversionSoftware</td><td>dcm2niix</td></tr>
<tr><td colspan=2>ConversionSoftwareVersion</td><td>v1.0.20170207</td></tr>
<tr><td colspan=2>EchoTime</td><td>0.0302</td></tr>
<tr><td colspan=2>EffectiveEchoSpacing</td><td>0.000640002</td></tr>
<tr><td colspan=2>FlipAngle</td><td>90</td></tr>
<tr><td colspan=2>ImageType</td><td>['ORIGINAL', 'PRIMARY', 'M', 'MB', 'ND', 'MOSAIC']</td></tr>
<tr><td colspan=2>MagneticFieldStrength</td><td>3</td></tr>
<tr><td colspan=2>Manufacturer</td><td>Siemens</td></tr>
<tr><td colspan=2>ManufacturersModelName</td><td>Prisma</td></tr>
<tr><td colspan=2>PhaseEncodingDirection</td><td>j-</td></tr>
<tr><td colspan=2>ProcedureStepDescription</td><td>CAMRIS_CHOP</td></tr>
<tr><td colspan=2>ProtocolName</td><td>BOLD_resting1</td></tr>
<tr><td colspan=2>RepetitionTime</td><td>2</td></tr>
<tr><td colspan=2>SliceTiming</td><td>[0, 0.08, 0.1575, 0.2375, 0.3175, 0.395, 0.475, 0.555, 0.6325, 0.7125, 0.7925, 0.87, 0.95, 1.03, 1.11, 1.1875, 1.2675, 1.3475, 1.425, 1.505, 1.585, 1.6625, 1.7425, 1.8225, 1.9, 0, 0.08, 0.1575, 0.2375, 0.3175, 0.395, 0.475, 0.555, 0.6325, 0.7125, 0.7925, 0.87, 0.95, 1.03, 1.11, 1.1875, 1.2675, 1.3475, 1.425, 1.505, 1.585, 1.6625, 1.7425, 1.8225, 1.9, 0, 0.08, 0.1575, 0.2375, 0.3175, 0.395, 0.475, 0.555, 0.6325, 0.7125, 0.7925, 0.87, 0.95, 1.03, 1.11, 1.1875, 1.2675, 1.3475, 1.425, 1.505, 1.585, 1.6625, 1.7425, 1.8225, 1.9]</td></tr>
<tr><td colspan=2>TaskName</td><td>piper</td></tr>
<tr><td>dcmmeta</td><td>affine</td><td>[[-2.0, 0.0, 0.0, 96.0], [0.0, 2.0, 0.0, -84.31500244140625], [0.0, 0.0, 2.0, -60.07749938964844], [0.0, 0.0, 0.0, 1.0]]</td></tr>
<tr><td>dcmmeta</td><td>reorient_transform</td><td>[[0.0, -1.0, 0.0, 95.0], [1.0, 0.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]</td></tr>
<tr><td>dcmmeta</td><td>shape</td><td>[96, 96, 75, 150]</td></tr>
<tr><td>dcmmeta</td><td>slice_dim</td><td>2</td></tr>
<tr><td>dcmmeta</td><td>version</td><td>0.6</td></tr>
<tr><td colspan=2>time</td><td>{'samples': {'AcquisitionNumber': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150], 'AcquisitionTime': ['143400.450000', '143402.450000', '143404.450000', '143406.450000', '143408.450000', '143410.450000', '143412.450000', '143414.450000', '143416.450000', '143418.450000', '143420.450000', '143422.450000', '143424.450000', '143426.450000', '143428.450000', '143430.450000', '143432.450000', '143434.450000', '143436.450000', '143438.450000', '143440.450000', '143442.450000', '143444.450000', '143446.450000', '143448.450000', '143450.450000', '143452.450000', '143454.450000', '143456.450000', '143458.450000', '143500.450000', '143502.450000', '143504.450000', '143506.450000', '143508.450000', '143510.450000', '143512.450000', '143514.450000', '143516.450000', '143518.450000', '143520.450000', '143522.450000', '143524.450000', '143526.450000', '143528.450000', '143530.450000', '143532.450000', '143534.450000', '143536.450000', '143538.450000', '143540.450000', '143542.450000', '143544.450000', '143546.450000', '143548.450000', '143550.450000', '143552.450000', '143554.450000', '143556.450000', '143558.450000', '143600.450000', '143602.450000', '143604.450000', '143606.450000', '143608.450000', '143610.450000', '143612.450000', '143614.450000', '143616.450000', '143618.450000', '143620.450000', '143622.450000', '143624.450000', '143626.450000', '143628.450000', '143630.450000', '143632.450000', '143634.450000', '143636.450000', '143638.450000', '143640.450000', '143642.450000', '143644.450000', '143646.450000', '143648.450000', '143650.450000', '143652.450000', '143654.450000', '143656.450000', '143658.450000', '143700.450000', '143702.450000', '143704.450000', '143706.450000', '143708.450000', '143710.450000', '143712.450000', '143714.450000', '143716.450000', '143718.450000', '143720.450000', '143722.450000', '143724.450000', '143726.450000', '143728.450000', '143730.450000', '143732.450000', '143734.450000', '143736.450000', '143738.450000', '143740.450000', '143742.450000', '143744.450000', '143746.450000', '143748.450000', '143750.450000', '143752.450000', '143754.450000', '143756.450000', '143758.450000', '143800.450000', '143802.450000', '143804.450000', '143806.450000', '143808.450000', '143810.450000', '143812.450000', '143814.450000', '143816.450000', '143818.450000', '143820.450000', '143822.450000', '143824.450000', '143826.450000', '143828.450000', '143830.450000', '143832.450000', '143834.450000', '143836.450000', '143838.450000', '143840.450000', '143842.450000', '143844.450000', '143846.450000', '143848.450000', '143850.450000', '143852.450000', '143854.450000', '143856.450000', '143858.450000'], 'ContentTime': ['143403.251000', '143405.246000', '143407.247000', '143409.246000', '143411.246000', '143413.246000', '143415.246000', '143417.246000', '143419.246000', '143421.246000', '143423.246000', '143425.247000', '143427.246000', '143429.246000', '143431.246000', '143433.246000', '143435.246000', '143437.246000', '143439.246000', '143441.246000', '143443.247000', '143445.246000', '143447.246000', '143449.246000', '143451.246000', '143453.246000', '143455.246000', '143457.246000', '143459.247000', '143501.246000', '143503.246000', '143505.246000', '143507.246000', '143509.246000', '143511.246000', '143513.246000', '143515.246000', '143517.247000', '143519.246000', '143521.246000', '143523.246000', '143525.246000', '143527.246000', '143529.246000', '143531.246000', '143533.246000', '143535.247000', '143537.246000', '143539.246000', '143541.246000', '143543.246000', '143545.246000', '143547.246000', '143549.246000', '143551.246000', '143553.247000', '143555.246000', '143557.246000', '143559.246000', '143601.246000', '143603.246000', '143605.246000', '143607.246000', '143609.247000', '143611.246000', '143613.246000', '143615.246000', '143617.246000', '143619.246000', '143621.246000', '143623.246000', '143625.246000', '143627.247000', '143629.246000', '143631.246000', '143633.246000', '143635.246000', '143637.246000', '143639.246000', '143641.246000', '143643.246000', '143645.247000', '143647.246000', '143649.246000', '143651.246000', '143653.246000', '143655.246000', '143657.246000', '143659.246000', '143701.246000', '143703.247000', '143705.246000', '143707.246000', '143709.246000', '143711.246000', '143713.246000', '143715.246000', '143717.246000', '143719.247000', '143721.246000', '143723.246000', '143725.246000', '143727.246000', '143729.246000', '143731.246000', '143733.246000', '143735.246000', '143737.247000', '143739.246000', '143741.246000', '143743.246000', '143745.246000', '143747.246000', '143749.246000', '143751.246000', '143753.246000', '143755.247000', '143757.246000', '143759.246000', '143801.246000', '143803.246000', '143805.246000', '143807.246000', '143809.246000', '143811.246000', '143813.247000', '143815.246000', '143817.246000', '143819.246000', '143821.246000', '143823.246000', '143825.246000', '143827.246000', '143829.247000', '143831.246000', '143833.246000', '143835.246000', '143837.246000', '143839.246000', '143841.246000', '143843.246000', '143845.266000', '143847.247000', '143849.246000', '143851.246000', '143853.246000', '143855.246000', '143857.246000', '143859.246000', '143900.819000'], 'InstanceCreationTime': ['143403.251000', '143405.246000', '143407.247000', '143409.246000', '143411.246000', '143413.246000', '143415.246000', '143417.246000', '143419.246000', '143421.246000', '143423.246000', '143425.247000', '143427.246000', '143429.246000', '143431.246000', '143433.246000', '143435.246000', '143437.246000', '143439.246000', '143441.246000', '143443.247000', '143445.246000', '143447.246000', '143449.246000', '143451.246000', '143453.246000', '143455.246000', '143457.246000', '143459.247000', '143501.246000', '143503.246000', '143505.246000', '143507.246000', '143509.246000', '143511.246000', '143513.246000', '143515.246000', '143517.247000', '143519.246000', '143521.246000', '143523.246000', '143525.246000', '143527.246000', '143529.246000', '143531.246000', '143533.246000', '143535.247000', '143537.246000', '143539.246000', '143541.246000', '143543.246000', '143545.246000', '143547.246000', '143549.246000', '143551.246000', '143553.247000', '143555.246000', '143557.246000', '143559.246000', '143601.246000', '143603.246000', '143605.246000', '143607.246000', '143609.247000', '143611.246000', '143613.246000', '143615.246000', '143617.246000', '143619.246000', '143621.246000', '143623.246000', '143625.246000', '143627.247000', '143629.246000', '143631.246000', '143633.246000', '143635.246000', '143637.246000', '143639.246000', '143641.246000', '143643.246000', '143645.247000', '143647.246000', '143649.246000', '143651.246000', '143653.246000', '143655.246000', '143657.246000', '143659.246000', '143701.246000', '143703.247000', '143705.246000', '143707.246000', '143709.246000', '143711.246000', '143713.246000', '143715.246000', '143717.246000', '143719.247000', '143721.246000', '143723.246000', '143725.246000', '143727.246000', '143729.246000', '143731.246000', '143733.246000', '143735.246000', '143737.247000', '143739.246000', '143741.246000', '143743.246000', '143745.246000', '143747.246000', '143749.246000', '143751.246000', '143753.246000', '143755.247000', '143757.246000', '143759.246000', '143801.246000', '143803.246000', '143805.246000', '143807.246000', '143809.246000', '143811.246000', '143813.247000', '143815.246000', '143817.246000', '143819.246000', '143821.246000', '143823.246000', '143825.246000', '143827.246000', '143829.247000', '143831.246000', '143833.246000', '143835.246000', '143837.246000', '143839.246000', '143841.246000', '143843.246000', '143845.266000', '143847.247000', '143849.246000', '143851.246000', '143853.246000', '143855.246000', '143857.246000', '143859.246000', '143900.819000'], 'InstanceNumber': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150], 'LargestImagePixelValue': [23410, 23822, 24337, 24231, 24297, 24223, 24018, 24141, 24259, 24175, 24060, 24285, 24386, 24348, 24167, 24147, 23625, 23731, 23844, 24204, 24201, 23618, 23985, 24188, 24229, 23826, 24118, 24228, 24313, 24535, 24204, 24040, 24359, 24208, 24013, 24238, 24410, 24361, 24084, 23966, 24093, 24358, 24073, 24024, 24179, 24574, 24347, 24283, 24676, 24580, 24542, 24539, 24621, 24641, 24645, 24686, 24449, 24249, 24766, 24762, 24609, 24595, 24653, 24862, 24875, 24762, 24331, 24844, 24734, 24957, 24999, 24969, 24869, 24818, 23876, 24770, 24880, 24641, 24392, 24561, 24807, 24850, 24557, 24512, 24869, 24665, 24732, 24750, 24787, 24490, 24797, 24861, 24449, 24946, 24658, 24583, 24609, 24657, 24828, 24629, 24563, 24365, 24184, 23468, 23467, 23935, 24564, 24167, 24643, 24703, 24925, 24549, 24831, 24451, 24755, 24775, 24052, 24243, 23594, 24213, 24595, 23996, 24520, 24619, 24423, 24355, 24457, 23903, 24272, 24373, 24119, 24218, 23658, 23951, 23622, 24616, 24141, 24296, 24262, 24239, 24308, 24056, 24634, 24578, 24320, 23989, 23999, 24167, 24550, 24065], 'TriggerTime': [11755.0, 13755.0, 15755.0, 17755.0, 19755.0, 21755.0, 23755.0, 25755.0, 27755.0, 29755.0, 31755.0, 33755.0, 35755.0, 37755.0, 39755.0, 41755.0, 43755.0, 45755.0, 47755.0, 49755.0, 51755.0, 53755.0, 55755.0, 57755.0, 59755.0, 61755.0, 63755.0, 65755.0, 67755.0, 69755.0, 71755.0, 73755.0, 75755.0, 77755.0, 79755.0, 81755.0, 83755.0, 85755.0, 87755.0, 89755.0, 91755.0, 93755.0, 95755.0, 97755.0, 99755.0, 101755.0, 103755.0, 105755.0, 107755.0, 109755.0, 111755.0, 113755.0, 115755.0, 117755.0, 119755.0, 121755.0, 123755.0, 125755.0, 127755.0, 129755.0, 131755.0, 133755.0, 135755.0, 137755.0, 139755.0, 141755.0, 143755.0, 145755.0, 147755.0, 149755.0, 151755.0, 153755.0, 155755.0, 157755.0, 159755.0, 161755.0, 163755.0, 165755.0, 167755.0, 169755.0, 171755.0, 173755.0, 175755.0, 177755.0, 179755.0, 181755.0, 183755.0, 185755.0, 187755.0, 189755.0, 191755.0, 193755.0, 195755.0, 197755.0, 199755.0, 201755.0, 203755.0, 205755.0, 207755.0, 209755.0, 211755.0, 213755.0, 215755.0, 217755.0, 219755.0, 221755.0, 223755.0, 225755.0, 227755.0, 229755.0, 231755.0, 233755.0, 235755.0, 237755.0, 239755.0, 241755.0, 243755.0, 245755.0, 247755.0, 249755.0, 251755.0, 253755.0, 255755.0, 257755.0, 259755.0, 261755.0, 263755.0, 265755.0, 267755.0, 269755.0, 271755.0, 273755.0, 275755.0, 277755.0, 279755.0, 281755.0, 283755.0, 285755.0, 287755.0, 289755.0, 291755.0, 293755.0, 295755.0, 297755.0, 299755.0, 301755.0, 303755.0, 305755.0, 307755.0, 309755.0], 'WindowCenter': [8229.0, 8197.0, 8219.0, 8218.0, 8202.0, 8194.0, 8213.0, 8241.0, 8260.0, 8241.0, 8222.0, 8232.0, 8240.0, 8237.0, 8238.0, 8243.0, 8192.0, 8171.0, 8207.0, 8247.0, 8218.0, 8202.0, 8210.0, 8229.0, 8209.0, 8210.0, 8228.0, 8217.0, 8228.0, 8253.0, 8228.0, 8209.0, 8238.0, 8239.0, 8229.0, 8228.0, 8227.0, 8227.0, 8210.0, 8191.0, 8198.0, 8205.0, 8217.0, 8219.0, 8228.0, 8227.0, 8226.0, 8217.0, 8225.0, 8245.0, 8236.0, 8222.0, 8244.0, 8266.0, 8256.0, 8234.0, 8223.0, 8222.0, 8232.0, 8226.0, 8223.0, 8234.0, 8245.0, 8253.0, 8254.0, 8217.0, 8190.0, 8231.0, 8253.0, 8265.0, 8258.0, 8239.0, 8234.0, 8224.0, 8230.0, 8220.0, 8217.0, 8209.0, 8190.0, 8215.0, 8233.0, 8225.0, 8216.0, 8226.0, 8212.0, 8213.0, 8195.0, 8212.0, 8232.0, 8233.0, 8233.0, 8223.0, 8214.0, 8231.0, 8227.0, 8184.0, 8190.0, 8229.0, 8233.0, 8243.0, 8242.0, 8216.0, 8245.0, 8235.0, 8215.0, 8222.0, 8239.0, 8222.0, 8227.0, 8222.0, 8238.0, 8251.0, 8247.0, 8241.0, 8258.0, 8283.0, 8292.0, 8260.0, 8230.0, 8227.0, 8235.0, 8231.0, 8246.0, 8252.0, 8246.0, 8247.0, 8246.0, 8248.0, 8260.0, 8270.0, 8243.0, 8238.0, 8202.0, 8209.0, 8210.0, 8262.0, 8259.0, 8266.0, 8257.0, 8259.0, 8250.0, 8220.0, 8243.0, 8264.0, 8247.0, 8248.0, 8260.0, 8267.0, 8257.0, 8239.0], 'WindowWidth': [17392.0, 17323.0, 17362.0, 17356.0, 17326.0, 17314.0, 17355.0, 17410.0, 17449.0, 17408.0, 17372.0, 17393.0, 17408.0, 17398.0, 17401.0, 17416.0, 17307.0, 17263.0, 17337.0, 17418.0, 17359.0, 17329.0, 17345.0, 17383.0, 17341.0, 17348.0, 17382.0, 17357.0, 17381.0, 17428.0, 17377.0, 17341.0, 17401.0, 17405.0, 17385.0, 17379.0, 17377.0, 17376.0, 17344.0, 17308.0, 17317.0, 17331.0, 17359.0, 17363.0, 17381.0, 17377.0, 17375.0, 17354.0, 17372.0, 17416.0, 17394.0, 17359.0, 17415.0, 17462.0, 17438.0, 17392.0, 17366.0, 17363.0, 17383.0, 17376.0, 17366.0, 17388.0, 17413.0, 17430.0, 17432.0, 17353.0, 17302.0, 17381.0, 17430.0, 17457.0, 17441.0, 17401.0, 17385.0, 17367.0, 17385.0, 17365.0, 17355.0, 17337.0, 17300.0, 17350.0, 17384.0, 17371.0, 17357.0, 17376.0, 17341.0, 17350.0, 17312.0, 17345.0, 17387.0, 17388.0, 17389.0, 17367.0, 17352.0, 17385.0, 17378.0, 17286.0, 17295.0, 17376.0, 17390.0, 17409.0, 17406.0, 17358.0, 17417.0, 17402.0, 17356.0, 17369.0, 17402.0, 17367.0, 17371.0, 17365.0, 17397.0, 17425.0, 17414.0, 17404.0, 17440.0, 17496.0, 17523.0, 17453.0, 17390.0, 17381.0, 17396.0, 17393.0, 17418.0, 17425.0, 17419.0, 17422.0, 17419.0, 17426.0, 17445.0, 17473.0, 17419.0, 17402.0, 17328.0, 17342.0, 17347.0, 17448.0, 17449.0, 17461.0, 17445.0, 17452.0, 17436.0, 17370.0, 17412.0, 17454.0, 17424.0, 17427.0, 17458.0, 17465.0, 17445.0, 17407.0]}, 'slices': {}}</td></tr>
</table>

      </div>
    </div>
  </div>


  <div class="accordion-item">
    <h2 class="accordion-header" id="about-metadata-2">
      <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#about-metadata-2-collapse" aria-controls="about-metadata-2-collapse">
        Extracted Image quality metrics (IQMs)
      </button>
    </h2>
    <div id="about-metadata-2-collapse" class="accordion-collapse collapse" aria-labelledby="about-metadata-2-heading" data-bs-parent="#about-metadata-2">
      <div class="accordion-body metadata-table">
      <table id="about-metadata-table-2" class="table table-sm table-striped">
<tr><td colspan=3>aor</td><td>0.0018260000000000001</td></tr>
<tr><td colspan=3>aqi</td><td>0.0104578714</td></tr>
<tr><td colspan=3>dummy_trs</td><td>0</td></tr>
<tr><td>dvars</td><td colspan=2>nstd</td><td>44.32923642100669</td></tr>
<tr><td>dvars</td><td colspan=2>std</td><td>1.2662624114765106</td></tr>
<tr><td>dvars</td><td colspan=2>vstd</td><td>0.9660376410067109</td></tr>
<tr><td colspan=3>efc</td><td>0.5312</td></tr>
<tr><td colspan=3>fber</td><td>763.617</td></tr>
<tr><td>fd</td><td colspan=2>mean</td><td>0.13729516524639904</td></tr>
<tr><td>fd</td><td colspan=2>num</td><td>20</td></tr>
<tr><td>fd</td><td colspan=2>perc</td><td>13.333333333333334</td></tr>
<tr><td>fwhm</td><td colspan=2>avg</td><td>4.031423333333334</td></tr>
<tr><td>fwhm</td><td colspan=2>x</td><td>3.844755</td></tr>
<tr><td>fwhm</td><td colspan=2>y</td><td>4.21452</td></tr>
<tr><td>fwhm</td><td colspan=2>z</td><td>4.034995</td></tr>
<tr><td colspan=3>gcor</td><td>0.00725438</td></tr>
<tr><td>gsr</td><td colspan=2>x</td><td>-0.008078791201114655</td></tr>
<tr><td>gsr</td><td colspan=2>y</td><td>0.05799950659275055</td></tr>
<tr><td>size</td><td colspan=2>t</td><td>150</td></tr>
<tr><td>size</td><td colspan=2>x</td><td>96</td></tr>
<tr><td>size</td><td colspan=2>y</td><td>96</td></tr>
<tr><td>size</td><td colspan=2>z</td><td>75</td></tr>
<tr><td colspan=3>snr</td><td>2.1792212278181426</td></tr>
<tr><td>spacing</td><td colspan=2>tr</td><td>2.0</td></tr>
<tr><td>spacing</td><td colspan=2>x</td><td>2.0</td></tr>
<tr><td>spacing</td><td colspan=2>y</td><td>2.0</td></tr>
<tr><td>spacing</td><td colspan=2>z</td><td>2.0</td></tr>
<tr><td>summary</td><td>bg</td><td>k</td><td>84.7675</td></tr>
<tr><td>summary</td><td>bg</td><td>mad</td><td>69.2375</td></tr>
<tr><td>summary</td><td>bg</td><td>mean</td><td>545.1885</td></tr>
<tr><td>summary</td><td>bg</td><td>median</td><td>236.0</td></tr>
<tr><td>summary</td><td>bg</td><td>n</td><td>509575.0</td></tr>
<tr><td>summary</td><td>bg</td><td>p05</td><td>177.0</td></tr>
<tr><td>summary</td><td>bg</td><td>p95</td><td>2022.0</td></tr>
<tr><td>summary</td><td>bg</td><td>stdv</td><td>1042.5728</td></tr>
<tr><td>summary</td><td>fg</td><td>k</td><td>0.1522</td></tr>
<tr><td>summary</td><td>fg</td><td>mad</td><td>2902.4407</td></tr>
<tr><td>summary</td><td>fg</td><td>mean</td><td>7028.4818</td></tr>
<tr><td>summary</td><td>fg</td><td>median</td><td>6532.0</td></tr>
<tr><td>summary</td><td>fg</td><td>n</td><td>181625.0</td></tr>
<tr><td>summary</td><td>fg</td><td>p05</td><td>2877.0</td></tr>
<tr><td>summary</td><td>fg</td><td>p95</td><td>12453.0</td></tr>
<tr><td>summary</td><td>fg</td><td>stdv</td><td>2997.3928</td></tr>
<tr><td colspan=3>tsnr</td><td>40.362777524627745</td></tr>
</table>

      </div>
    </div>
  </div>

</div>
        </div>
    </div>

<div id="qcrating-menu" class="card position-fixed d-none" style="width: 30%; top: 100px; left: 65%; max-height: 85%; overflow-y: auto;">
<div class="card-header m-0">
    Rating widget
    <button type="button" class="btn-close position-absolute top-0 end-0" aria-label="Close" id="close-qcrating-menu" onclick="toggle_rating()" style="margin: 10px 10px 0 0"></button>
</div>
<div class="card-body">
<div class="accordion">
  <div class="accordion-item">
    <h2 class="accordion-header" id="qcslider-head">
      <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#qcslider-collapse" aria-expanded="true" aria-controls="qcslider-collapse">Overall Quality Rating</button>
    </h2>
    <div id="qcslider-collapse" class="accordion-collapse collapse show" aria-labelledby="qcslider-head">
      <div class="accordion-body">
        <input type="range" min="1.0" max="4.0" step="0.05" value="2.5" id="qcslider" class="slider">
        <ul class="list-group list-group-horizontal slider-labels" style="width: 100%">
            <li class="list-group-item list-group-item-danger small" style="font-size: 0.7em; width: 25%; text-align:center">Exclude</li>
            <li class="list-group-item list-group-item-warning small" style="font-size: 0.7em; width: 25%; text-align:center">Poor</li>
            <li class="list-group-item list-group-item-primary small" style="font-size: 0.7em; width: 25%; text-align:center">Acceptable</li>
            <li class="list-group-item list-group-item-success small" style="font-size: 0.7em; width: 25%; text-align:center">Excellent</li>
        </ul>
      </div>
    </div>
  </div>

  <div class="accordion-item">
    <h2 class="accordion-header" id="qcartifacts-head">
      <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#qcartifacts-collapse" aria-expanded="false" aria-controls="qcartifacts-collapse">
        Record specific artifacts
      </button>
    </h2>
    <div id="qcartifacts-collapse" class="accordion-collapse collapse" aria-labelledby="qcartifacts-head">
      <div class="accordion-body">
        <fieldset id="qcartifacts-group" class="form-group">
            <div class="form-check form-switch small">
                <input class="form-check-input" type="checkbox" name="head-motion" id="qcartifacts-item-0" />
                <label class="form-check-label" for="qcartifacts-item-0">Head motion artifacts</label>
            </div>
            <div class="form-check form-switch small">
                <input class="form-check-input" type="checkbox" name="eye-spillover" id="qcartifacts-item-1" />
                <label class="form-check-label" for="qcartifacts-item-1">Eye spillover through <abbr title="phase-encoding">PE</abbr> axis</label>
            </div>
            <div class="form-check form-switch small">
                <input class="form-check-input" type="checkbox" name="noneye-spillover" id="qcartifacts-item-2" />
                <label class="form-check-label" for="qcartifacts-item-2">Non-eye spillover through <abbr title="phase-encoding">PE</abbr> axis</label>
            </div>
            <div class="form-check form-switch small">
                <input class="form-check-input" type="checkbox" name="coil-failure" id="qcartifacts-item-3" />
                <label class="form-check-label" for="qcartifacts-item-3">Coil failure</label>
            </div>
            <div class="form-check form-switch small">
                <input class="form-check-input" type="checkbox" name="noise-global" id="qcartifacts-item-4" />
                <label class="form-check-label" for="qcartifacts-item-4">Global noise</label>
            </div>
            <div class="form-check form-switch small">
                <input class="form-check-input" type="checkbox" name="noise-local" id="qcartifacts-item-5" />
                <label class="form-check-label" for="qcartifacts-item-5">Local noise</label>
            </div>
            <div class="form-check form-switch small">
                <input class="form-check-input" type="checkbox" name="em-perturbation" id="qcartifacts-item-6" />
                <label class="form-check-label" for="qcartifacts-item-6"><abbr title="electromagnetic">EM</abbr> interference/perturbation</label>
            </div>
            <div class="form-check form-switch small">
                <input class="form-check-input" type="checkbox" name="wrap-around" id="qcartifacts-item-7" />
                <label class="form-check-label" for="qcartifacts-item-7">Problematic <abbr title="field-of-view">FoV</abbr> prescription / wrap-around</label>
            </div>
            <div class="form-check form-switch small">
                <input class="form-check-input" type="checkbox" name="ghost-aliasing" id="qcartifacts-item-8" />
                <label class="form-check-label" for="qcartifacts-item-8">Aliasing ghosts</label>
            </div>
            <div class="form-check form-switch small">
                <input class="form-check-input" type="checkbox" name="ghost-other" id="qcartifacts-item-9" />
                <label class="form-check-label" for="qcartifacts-item-9">Other ghosts (for example, <abbr title="radiofrequency">RF</abbr> spoiling)</label>
            </div>
            <div class="form-check form-switch small">
                <input class="form-check-input" type="checkbox" name="inu" id="qcartifacts-item-10" />
                <label class="form-check-label" for="qcartifacts-item-10">Intensity non-uniformity (B<sub>1</sub> bias)</label>
            </div>
            <div class="form-check form-switch small">
                <input class="form-check-input" type="checkbox" name="field-variation" id="qcartifacts-item-11" />
                <label class="form-check-label" for="qcartifacts-item-11">Temporal B<sub>1</sub> field non-uniformity variation</label>
            </div>
            <div class="form-check form-switch small">
                <input class="form-check-input" type="checkbox" name="processing" id="qcartifacts-item-12" />
                <label class="form-check-label" for="qcartifacts-item-12">Processing such as denoising, defacing or resamplings happened</label>
            </div>
            <div class="form-check form-switch small">
                <input class="form-check-input" type="checkbox" name="uncategorized" id="qcartifacts-item-13" />
                <label class="form-check-label" for="qcartifacts-item-13">Other uncategorized artifact(s)</label>
            </div>
        </fieldset>
      </div> <!-- accordion-body -->
    </div> <!-- accordion-collapse -->
  </div> <!-- accordion-item -->
  <div class="accordion-item">
    <h2 class="accordion-header" id="qcextra-head">
      <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#qcextra-collapse" aria-expanded="false" aria-controls="qcextra-collapse">
        Extra details
      </button>
    </h2>
    <div id="qcextra-collapse" class="accordion-collapse collapse" aria-labelledby="qcextra-head">
      <div class="accordion-body">
        <div class="input-group">
          <span class="input-group-text">Comments</span>
          <textarea class="form-control" aria-label="Comments" id="qcextra-comments"></textarea>
        </div>

        <p style="margin-top: 20px; font-weight: bold">Rater confidence</p>
        <input type="range" min="0.0" max="4.0" step="0.05" value="3.5" id="qcextra-confidence" class="slider" style="margin-left: 22%;width: 56%;">
        <ul class="list-group list-group-horizontal slider-labels" style="width: 100%">
            <li class="list-group-item list-group-item-warning small" style="width: 50%; text-align:center">Doubtful</li>
            <li class="list-group-item list-group-item-success bg-success text-white small" style="width: 50%; text-align:center">Confident</li>
        </ul>
       </div> <!-- accordion-body -->
    </div> <!-- accordion-collapse -->
  </div> <!-- accordion-item -->
</div>
<div style="margin-top: 10px">
<a class="btn btn-primary disabled" id="btn-download" href="">Download</a>
<button class="btn btn-primary" id="btn-post" value="8sSYVI0XjFqacEMZ8wF4" disabled>Share publicly</button>
</div>
<script type="text/javascript">
var MINIMUM_RATING_TIME = 10
$('#qcslider').on('input', function() {

    if ( (Date.now() - timestamp) / 1000 > MINIMUM_RATING_TIME) {
        $('#btn-download').removeClass('disabled');
        $('#btn-download').removeAttr('aria-disabled');
        $('#btn-post').removeAttr('disabled');
    };

    $('#qcslider-collapse .list-group-item').removeClass(function(index, classname) {
        return (classname.match(/(^|\s)bg-\S+/g) || []).join(' ');
    });
    $('#qcslider-collapse .list-group-item').removeClass(function(index, classname) {
        return (classname.match(/(^|\s)text-\S+/g) || []).join(' ');
    });

    if ( $(this).val() < 1.5 ) {
        $('#qcslider-collapse .list-group-item-danger').addClass('bg-danger text-white');
    } else if ( $(this).val() > 3.5 ) {
        $('#qcslider-collapse .list-group-item-success').addClass('bg-success text-white');
    } else if ( $(this).val() < 2.5 ) {
        $('#qcslider-collapse .list-group-item-warning').addClass('bg-warning text-dark');
    } else {
        $('#qcslider-collapse .list-group-item-primary').addClass('bg-primary text-white');
    };

    var payload = read_form();
});

$('#qcextra-confidence').on('input', function() {
    if ( (Date.now() - timestamp) / 1000 > MINIMUM_RATING_TIME) {
        $('#btn-download').removeClass('disabled');
        $('#btn-download').removeAttr('aria-disabled');
        $('#btn-post').removeAttr('disabled');
    };

    $('#qcextra-collapse .list-group-item').removeClass(function(index, classname) {
        return (classname.match(/(^|\s)bg-\S+/g) || []).join(' ');
    });
    $('#qcextra-collapse .list-group-item').removeClass(function(index, classname) {
        return (classname.match(/(^|\s)text-\S+/g) || []).join(' ');
    });

    if ( $(this).val() < 2.0 ) {
        $('#qcextra-collapse .list-group-item-warning').addClass('bg-warning text-dark');
    } else {
        $('#qcextra-collapse .list-group-item-success').addClass('bg-success text-white');
    };

    var payload = read_form();
});


$('#qcextra-comments').bind('input propertychange', function() {
    if ( (Date.now() - timestamp) / 1000 > MINIMUM_RATING_TIME) {
        $('#btn-download').removeClass('disabled');
        $('#btn-download').removeAttr('aria-disabled');
        $('#btn-post').removeAttr('disabled');
    };
});

$( '#btn-post' ).click( function() {
    var payload = read_form();
    var md5sum = "unspecified";
    var params = {
        'rating': payload['rating'],
        'md5sum': md5sum,
        'name': "",
        'comment': JSON.stringify(payload['artifacts'])
    };

    // disable development releases
    var authorization = $(this).val();
    var ratingReq = new XMLHttpRequest();
    ratingReq.open("POST", "https://mriqc.nimh.nih.gov:443/api/v1/rating");
    ratingReq.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
    ratingReq.setRequestHeader("Authorization", authorization);
    ratingReq.onload = function () {
        status = ratingReq.status;
        $('#btn-post').removeClass('btn-primary');
        $('#btn-post').attr('disabled', true);
        $('#btn-post').attr('aria-disabled', true);
        $('#btn-post').prop('disabled');
        $('#btn-post').addClass('disabled');
        $('#btn-post').removeClass('active');
        if (status === "201") {
            $('#btn-post').addClass('btn-success');
            $('#btn-post').html('Posted!');
        } else {
            $('#btn-post').addClass('btn-danger');
            $('#btn-post').html('Failed');
        };
    };
    ratingReq.send(JSON.stringify(params));
});

$( 'body' ).on( 'click', '#qcartifacts-group input', function(e) {
    if ( (Date.now() - timestamp) / 1000 > MINIMUM_RATING_TIME) {
        $('#btn-download').removeClass('disabled');
        $('#btn-download').removeAttr('aria-disabled');
        $('#btn-post').removeAttr('disabled');
    };
    
    var payload = read_form();
});

$( 'body' ).on( 'click', '#qcrating-toggler', function(e) {
    toggle_rating();
});
</script>
</div>

<script type="text/javascript">
function toggle(id) {
    var element = document.getElementById(id);
    if(element.style.display == 'block')
        element.style.display = 'none';
    else
        element.style.display = 'block';
}
</script>
</body>
</html><script>{let postHeight = () => {window.parent.postMessage({frameHeight: document.documentElement.offsetHeight || document.documentElement.scrollHeight}, '*')}; window.addEventListener('load', postHeight); window.addEventListener('message', (event) => {if (event.source === window.parent && event.data.requestOffsetHeight) postHeight()});}</script>