<?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-63_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-63_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-63_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-63/figures/sub-63_ses-01_task-piper_run-01_desc-stdev_bold.svg" style="width: 100%" />
</div>
<small>Get figure file: <a href="./sub-63/figures/sub-63_ses-01_task-piper_run-01_desc-stdev_bold.svg" target="_blank">sub-63/figures/sub-63_ses-01_task-piper_run-01_desc-stdev_bold.svg</a></small>

        </div>
        <div id="datatype-figures_desc-background_run-01_session-01_subject-63_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-63/figures/sub-63_ses-01_task-piper_run-01_desc-background_bold.svg" style="width: 100%" />
</div>
<small>Get figure file: <a href="./sub-63/figures/sub-63_ses-01_task-piper_run-01_desc-background_bold.svg" target="_blank">sub-63/figures/sub-63_ses-01_task-piper_run-01_desc-background_bold.svg</a></small>

        </div>
        <div id="datatype-figures_desc-zoomed_run-01_session-01_subject-63_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-63/figures/sub-63_ses-01_task-piper_run-01_desc-zoomed_bold.svg" style="width: 100%" />
</div>
<small>Get figure file: <a href="./sub-63/figures/sub-63_ses-01_task-piper_run-01_desc-zoomed_bold.svg" target="_blank">sub-63/figures/sub-63_ses-01_task-piper_run-01_desc-zoomed_bold.svg</a></small>

        </div>
        <div id="datatype-figures_desc-carpet_run-01_session-01_subject-63_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-63/figures/sub-63_ses-01_task-piper_run-01_desc-carpet_bold.svg" style="width: 100%" />
</div>
<small>Get figure file: <a href="./sub-63/figures/sub-63_ses-01_task-piper_run-01_desc-carpet_bold.svg" target="_blank">sub-63/figures/sub-63_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-63_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-63/figures/sub-63_ses-01_task-piper_run-01_desc-mean_bold.svg" style="width: 100%" />
</div>
<small>Get figure file: <a href="./sub-63/figures/sub-63_ses-01_task-piper_run-01_desc-mean_bold.svg" target="_blank">sub-63/figures/sub-63_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-63_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-63/figures/sub-63_ses-01_task-piper_run-01_desc-brainmask_bold.svg" style="width: 100%" />
</div>
<small>Get figure file: <a href="./sub-63/figures/sub-63_ses-01_task-piper_run-01_desc-brainmask_bold.svg" target="_blank">sub-63/figures/sub-63_ses-01_task-piper_run-01_desc-brainmask_bold.svg</a></small>

        </div>
        <div id="datatype-figures_desc-norm_run-01_session-01_subject-63_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-63/figures/sub-63_ses-01_task-piper_run-01_desc-norm_bold.svg" style="">
Problem loading figure sub-63/figures/sub-63_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-63/figures/sub-63_ses-01_task-piper_run-01_desc-norm_bold.svg" target="_blank">sub-63/figures/sub-63_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-63/ses-01/func/sub-63_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>e469f8e360b327622041f2841ccec02c</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.3975, 0.475, 0.555, 0.635, 0.7125, 0.7925, 0.8725, 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.3975, 0.475, 0.555, 0.635, 0.7125, 0.7925, 0.8725, 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.3975, 0.475, 0.555, 0.635, 0.7125, 0.7925, 0.8725, 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, -72.91600036621094], [0.0, 0.0, 2.0, -26.40959930419922], [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': ['135311.172500', '135313.172500', '135315.172500', '135317.172500', '135319.172500', '135321.172500', '135323.172500', '135325.172500', '135327.172500', '135329.172500', '135331.172500', '135333.172500', '135335.172500', '135337.172500', '135339.172500', '135341.172500', '135343.172500', '135345.172500', '135347.172500', '135349.172500', '135351.172500', '135353.172500', '135355.172500', '135357.172500', '135359.172500', '135401.172500', '135403.172500', '135405.172500', '135407.172500', '135409.172500', '135411.172500', '135413.172500', '135415.172500', '135417.172500', '135419.172500', '135421.172500', '135423.172500', '135425.172500', '135427.172500', '135429.172500', '135431.172500', '135433.172500', '135435.172500', '135437.172500', '135439.172500', '135441.172500', '135443.172500', '135445.172500', '135447.172500', '135449.172500', '135451.172500', '135453.172500', '135455.172500', '135457.172500', '135459.172500', '135501.172500', '135503.172500', '135505.172500', '135507.172500', '135509.172500', '135511.172500', '135513.172500', '135515.172500', '135517.172500', '135519.172500', '135521.172500', '135523.172500', '135525.172500', '135527.172500', '135529.172500', '135531.172500', '135533.172500', '135535.172500', '135537.172500', '135539.172500', '135541.172500', '135543.172500', '135545.172500', '135547.172500', '135549.172500', '135551.172500', '135553.172500', '135555.172500', '135557.172500', '135559.172500', '135601.172500', '135603.172500', '135605.172500', '135607.172500', '135609.172500', '135611.172500', '135613.172500', '135615.172500', '135617.172500', '135619.172500', '135621.172500', '135623.172500', '135625.172500', '135627.172500', '135629.172500', '135631.172500', '135633.172500', '135635.172500', '135637.172500', '135639.172500', '135641.172500', '135643.172500', '135645.172500', '135647.172500', '135649.172500', '135651.172500', '135653.172500', '135655.172500', '135657.172500', '135659.172500', '135701.172500', '135703.172500', '135705.172500', '135707.172500', '135709.172500', '135711.172500', '135713.172500', '135715.172500', '135717.172500', '135719.172500', '135721.172500', '135723.172500', '135725.172500', '135727.172500', '135729.172500', '135731.172500', '135733.172500', '135735.172500', '135737.172500', '135739.172500', '135741.172500', '135743.172500', '135745.172500', '135747.172500', '135749.172500', '135751.172500', '135753.172500', '135755.172500', '135757.172500', '135759.172500', '135801.172500', '135803.172500', '135805.172500', '135807.172500', '135809.172500'], 'ContentTime': ['135313.488000', '135315.484000', '135317.484000', '135319.484000', '135321.484000', '135323.484000', '135325.484000', '135327.484000', '135329.484000', '135331.484000', '135333.484000', '135335.484000', '135337.484000', '135339.484000', '135341.484000', '135343.484000', '135345.484000', '135347.484000', '135349.484000', '135351.485000', '135353.484000', '135355.484000', '135357.484000', '135359.484000', '135401.484000', '135403.484000', '135405.484000', '135407.484000', '135409.484000', '135411.484000', '135413.484000', '135415.484000', '135417.484000', '135419.484000', '135421.484000', '135423.484000', '135425.484000', '135427.484000', '135429.484000', '135431.484000', '135433.484000', '135435.484000', '135437.484000', '135439.484000', '135441.484000', '135443.485000', '135445.484000', '135447.484000', '135449.484000', '135451.484000', '135453.484000', '135455.484000', '135457.484000', '135459.484000', '135501.485000', '135503.484000', '135505.484000', '135507.484000', '135509.484000', '135511.484000', '135513.484000', '135515.484000', '135517.484000', '135519.484000', '135521.484000', '135523.484000', '135525.484000', '135527.484000', '135529.484000', '135531.484000', '135533.484000', '135535.484000', '135537.484000', '135539.484000', '135541.500000', '135543.484000', '135545.484000', '135547.484000', '135549.484000', '135551.484000', '135553.485000', '135555.484000', '135557.484000', '135559.484000', '135601.484000', '135603.484000', '135605.484000', '135607.484000', '135609.484000', '135611.485000', '135613.484000', '135615.484000', '135617.484000', '135619.484000', '135621.484000', '135623.484000', '135625.484000', '135627.484000', '135629.484000', '135631.484000', '135633.484000', '135635.484000', '135637.485000', '135639.484000', '135641.484000', '135643.484000', '135645.484000', '135647.484000', '135649.484000', '135651.484000', '135653.484000', '135655.484000', '135657.485000', '135659.484000', '135701.484000', '135703.485000', '135705.484000', '135707.485000', '135709.484000', '135711.484000', '135713.484000', '135715.484000', '135717.485000', '135719.484000', '135721.485000', '135723.484000', '135725.484000', '135727.484000', '135729.484000', '135731.484000', '135733.484000', '135735.484000', '135737.484000', '135739.484000', '135741.484000', '135743.484000', '135745.484000', '135747.484000', '135749.484000', '135751.484000', '135753.484000', '135755.484000', '135757.484000', '135759.484000', '135801.484000', '135803.484000', '135805.484000', '135807.484000', '135809.484000', '135811.484000'], 'InstanceCreationTime': ['135313.488000', '135315.484000', '135317.484000', '135319.484000', '135321.484000', '135323.484000', '135325.484000', '135327.484000', '135329.484000', '135331.484000', '135333.484000', '135335.484000', '135337.484000', '135339.484000', '135341.484000', '135343.484000', '135345.484000', '135347.484000', '135349.484000', '135351.485000', '135353.484000', '135355.484000', '135357.484000', '135359.484000', '135401.484000', '135403.484000', '135405.484000', '135407.484000', '135409.484000', '135411.484000', '135413.484000', '135415.484000', '135417.484000', '135419.484000', '135421.484000', '135423.484000', '135425.484000', '135427.484000', '135429.484000', '135431.484000', '135433.484000', '135435.484000', '135437.484000', '135439.484000', '135441.484000', '135443.485000', '135445.484000', '135447.484000', '135449.484000', '135451.484000', '135453.484000', '135455.484000', '135457.484000', '135459.484000', '135501.485000', '135503.484000', '135505.484000', '135507.484000', '135509.484000', '135511.484000', '135513.484000', '135515.484000', '135517.484000', '135519.484000', '135521.484000', '135523.484000', '135525.484000', '135527.484000', '135529.484000', '135531.484000', '135533.484000', '135535.484000', '135537.484000', '135539.484000', '135541.500000', '135543.484000', '135545.484000', '135547.484000', '135549.484000', '135551.484000', '135553.485000', '135555.484000', '135557.484000', '135559.484000', '135601.484000', '135603.484000', '135605.484000', '135607.484000', '135609.484000', '135611.485000', '135613.484000', '135615.484000', '135617.484000', '135619.484000', '135621.484000', '135623.484000', '135625.484000', '135627.484000', '135629.484000', '135631.484000', '135633.484000', '135635.484000', '135637.485000', '135639.484000', '135641.484000', '135643.484000', '135645.484000', '135647.484000', '135649.484000', '135651.484000', '135653.484000', '135655.484000', '135657.485000', '135659.484000', '135701.484000', '135703.485000', '135705.484000', '135707.485000', '135709.484000', '135711.484000', '135713.484000', '135715.484000', '135717.485000', '135719.484000', '135721.485000', '135723.484000', '135725.484000', '135727.484000', '135729.484000', '135731.484000', '135733.484000', '135735.484000', '135737.484000', '135739.484000', '135741.484000', '135743.484000', '135745.484000', '135747.484000', '135749.484000', '135751.484000', '135753.484000', '135755.484000', '135757.484000', '135759.484000', '135801.484000', '135803.484000', '135805.484000', '135807.484000', '135809.484000', '135811.484000'], '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': [36625, 35748, 35447, 35145, 36018, 35425, 35707, 35329, 35573, 35681, 35672, 35273, 35332, 35215, 35271, 35171, 35927, 35259, 34959, 35493, 35428, 35453, 35562, 35359, 35155, 35415, 35519, 35465, 35237, 35236, 35019, 35866, 35317, 35684, 35365, 35395, 36198, 36094, 35940, 35676, 36071, 35960, 35449, 35577, 35928, 35625, 35441, 35028, 35472, 35239, 35675, 36088, 35937, 35332, 35454, 35490, 35635, 35618, 35650, 35290, 35811, 32304, 35114, 33785, 33126, 32960, 32985, 34231, 35032, 34516, 34874, 35807, 35067, 34930, 36381, 36607, 36197, 35823, 36759, 35363, 34464, 34544, 34871, 34834, 35343, 35279, 35100, 35414, 35378, 35277, 34993, 35144, 34865, 35164, 35531, 35463, 35355, 35452, 35552, 35470, 35462, 35517, 35248, 35324, 35246, 35492, 35545, 35266, 35526, 35407, 35319, 35382, 35197, 35304, 35238, 35734, 35211, 35655, 35318, 35514, 35614, 35732, 35855, 35358, 35385, 36114, 36004, 35534, 35584, 35574, 35626, 35652, 35583, 36320, 36068, 35864, 35744, 36032, 36228, 36039, 35966, 35921, 35936, 35761, 35626, 35885, 35626, 35276, 35155, 36882], 'TriggerTime': [11677.5, 13677.5, 15677.5, 17677.5, 19677.5, 21677.5, 23677.5, 25677.5, 27677.5, 29677.5, 31677.5, 33677.5, 35677.5, 37677.5, 39677.5, 41677.5, 43677.5, 45677.5, 47677.5, 49677.5, 51677.5, 53677.5, 55677.5, 57677.5, 59677.5, 61677.5, 63677.5, 65677.5, 67677.5, 69677.5, 71677.5, 73677.5, 75677.5, 77677.5, 79677.5, 81677.5, 83677.5, 85677.5, 87677.5, 89677.5, 91677.5, 93677.5, 95677.5, 97677.5, 99677.5, 101678.0, 103678.0, 105678.0, 107678.0, 109678.0, 111678.0, 113678.0, 115678.0, 117678.0, 119678.0, 121678.0, 123678.0, 125678.0, 127678.0, 129678.0, 131678.0, 133678.0, 135678.0, 137678.0, 139678.0, 141678.0, 143678.0, 145678.0, 147678.0, 149678.0, 151678.0, 153678.0, 155678.0, 157678.0, 159678.0, 161678.0, 163678.0, 165678.0, 167678.0, 169678.0, 171678.0, 173678.0, 175678.0, 177678.0, 179678.0, 181678.0, 183678.0, 185678.0, 187678.0, 189678.0, 191678.0, 193678.0, 195678.0, 197678.0, 199678.0, 201678.0, 203678.0, 205678.0, 207678.0, 209678.0, 211678.0, 213678.0, 215678.0, 217678.0, 219678.0, 221678.0, 223678.0, 225678.0, 227678.0, 229678.0, 231678.0, 233678.0, 235678.0, 237678.0, 239678.0, 241678.0, 243678.0, 245678.0, 247678.0, 249678.0, 251678.0, 253678.0, 255678.0, 257678.0, 259678.0, 261678.0, 263678.0, 265678.0, 267678.0, 269678.0, 271678.0, 273678.0, 275678.0, 277678.0, 279678.0, 281678.0, 283678.0, 285678.0, 287678.0, 289678.0, 291678.0, 293678.0, 295678.0, 297678.0, 299678.0, 301678.0, 303678.0, 305678.0, 307678.0, 309678.0], 'WindowCenter': [9482.0, 9466.0, 9467.0, 9470.0, 9488.0, 9469.0, 9469.0, 9470.0, 9472.0, 9469.0, 9462.0, 9461.0, 9454.0, 9453.0, 9452.0, 9452.0, 9466.0, 9469.0, 9465.0, 9470.0, 9469.0, 9469.0, 9469.0, 9464.0, 9477.0, 9470.0, 9461.0, 9463.0, 9463.0, 9455.0, 9462.0, 9484.0, 9480.0, 9479.0, 9480.0, 9489.0, 9496.0, 9488.0, 9487.0, 9482.0, 9486.0, 9479.0, 9486.0, 9490.0, 9497.0, 9491.0, 9489.0, 9483.0, 9479.0, 9491.0, 9514.0, 9511.0, 9496.0, 9490.0, 9481.0, 9472.0, 9488.0, 9500.0, 9492.0, 9493.0, 9508.0, 9263.0, 9410.0, 9423.0, 9401.0, 9386.0, 9403.0, 9450.0, 9447.0, 9458.0, 9474.0, 9479.0, 9464.0, 9466.0, 9500.0, 9474.0, 9481.0, 9485.0, 9498.0, 9412.0, 9428.0, 9430.0, 9413.0, 9418.0, 9434.0, 9427.0, 9445.0, 9461.0, 9461.0, 9447.0, 9448.0, 9455.0, 9440.0, 9453.0, 9480.0, 9472.0, 9463.0, 9486.0, 9481.0, 9472.0, 9463.0, 9470.0, 9458.0, 9462.0, 9480.0, 9471.0, 9462.0, 9464.0, 9462.0, 9463.0, 9472.0, 9480.0, 9466.0, 9474.0, 9483.0, 9480.0, 9474.0, 9488.0, 9474.0, 9466.0, 9474.0, 9473.0, 9464.0, 9464.0, 9478.0, 9484.0, 9479.0, 9488.0, 9492.0, 9481.0, 9480.0, 9494.0, 9489.0, 9492.0, 9478.0, 9478.0, 9486.0, 9495.0, 9487.0, 9485.0, 9485.0, 9478.0, 9477.0, 9476.0, 9473.0, 9485.0, 9410.0, 9464.0, 9446.0, 9502.0], 'WindowWidth': [20262.0, 20225.0, 20230.0, 20240.0, 20273.0, 20241.0, 20241.0, 20248.0, 20252.0, 20241.0, 20228.0, 20223.0, 20210.0, 20205.0, 20201.0, 20200.0, 20230.0, 20241.0, 20236.0, 20243.0, 20239.0, 20239.0, 20236.0, 20230.0, 20257.0, 20240.0, 20220.0, 20228.0, 20226.0, 20208.0, 20224.0, 20272.0, 20265.0, 20264.0, 20271.0, 20288.0, 20302.0, 20285.0, 20281.0, 20275.0, 20277.0, 20264.0, 20278.0, 20292.0, 20306.0, 20298.0, 20292.0, 20280.0, 20269.0, 20299.0, 20348.0, 20338.0, 20304.0, 20295.0, 20272.0, 20251.0, 20286.0, 20314.0, 20296.0, 20306.0, 20331.0, 19750.0, 20090.0, 20126.0, 20080.0, 20051.0, 20091.0, 20191.0, 20183.0, 20211.0, 20251.0, 20256.0, 20225.0, 20235.0, 20302.0, 20241.0, 20256.0, 20268.0, 20294.0, 20100.0, 20141.0, 20143.0, 20104.0, 20114.0, 20148.0, 20136.0, 20178.0, 20214.0, 20214.0, 20185.0, 20190.0, 20202.0, 20170.0, 20197.0, 20260.0, 20242.0, 20220.0, 20273.0, 20264.0, 20244.0, 20225.0, 20239.0, 20214.0, 20220.0, 20262.0, 20236.0, 20216.0, 20224.0, 20216.0, 20218.0, 20242.0, 20261.0, 20232.0, 20249.0, 20271.0, 20259.0, 20248.0, 20277.0, 20249.0, 20230.0, 20250.0, 20245.0, 20224.0, 20227.0, 20255.0, 20264.0, 20257.0, 20279.0, 20292.0, 20266.0, 20266.0, 20295.0, 20284.0, 20285.0, 20256.0, 20258.0, 20273.0, 20296.0, 20275.0, 20269.0, 20271.0, 20254.0, 20252.0, 20246.0, 20244.0, 20264.0, 20092.0, 20220.0, 20180.0, 20306.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.009834866666666667</td></tr>
<tr><td colspan=3>aqi</td><td>0.008622085933333332</td></tr>
<tr><td colspan=3>dummy_trs</td><td>0</td></tr>
<tr><td>dvars</td><td colspan=2>nstd</td><td>37.55451701644294</td></tr>
<tr><td>dvars</td><td colspan=2>std</td><td>1.1930658395302023</td></tr>
<tr><td>dvars</td><td colspan=2>vstd</td><td>1.0355168774496641</td></tr>
<tr><td colspan=3>efc</td><td>0.5234</td></tr>
<tr><td colspan=3>fber</td><td>789.1879</td></tr>
<tr><td>fd</td><td colspan=2>mean</td><td>0.14640924058443328</td></tr>
<tr><td>fd</td><td colspan=2>num</td><td>12</td></tr>
<tr><td>fd</td><td colspan=2>perc</td><td>8.0</td></tr>
<tr><td>fwhm</td><td colspan=2>avg</td><td>4.649416666666666</td></tr>
<tr><td>fwhm</td><td colspan=2>x</td><td>4.40506</td></tr>
<tr><td>fwhm</td><td colspan=2>y</td><td>5.18015</td></tr>
<tr><td>fwhm</td><td colspan=2>z</td><td>4.36304</td></tr>
<tr><td colspan=3>gcor</td><td>0.00697289</td></tr>
<tr><td>gsr</td><td colspan=2>x</td><td>-0.020617978647351265</td></tr>
<tr><td>gsr</td><td colspan=2>y</td><td>0.09452836960554123</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>1.7163949098823097</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>62.7388</td></tr>
<tr><td>summary</td><td>bg</td><td>mad</td><td>92.5341</td></tr>
<tr><td>summary</td><td>bg</td><td>mean</td><td>626.3536</td></tr>
<tr><td>summary</td><td>bg</td><td>median</td><td>258.0</td></tr>
<tr><td>summary</td><td>bg</td><td>n</td><td>499391.0</td></tr>
<tr><td>summary</td><td>bg</td><td>p05</td><td>181.0</td></tr>
<tr><td>summary</td><td>bg</td><td>p95</td><td>2415.0</td></tr>
<tr><td>summary</td><td>bg</td><td>stdv</td><td>1116.4694</td></tr>
<tr><td>summary</td><td>fg</td><td>k</td><td>0.8345</td></tr>
<tr><td>summary</td><td>fg</td><td>mad</td><td>3925.2198</td></tr>
<tr><td>summary</td><td>fg</td><td>mean</td><td>8168.8248</td></tr>
<tr><td>summary</td><td>fg</td><td>median</td><td>7261.0</td></tr>
<tr><td>summary</td><td>fg</td><td>n</td><td>191809.0</td></tr>
<tr><td>summary</td><td>fg</td><td>p05</td><td>2925.0</td></tr>
<tr><td>summary</td><td>fg</td><td>p95</td><td>16165.0</td></tr>
<tr><td>summary</td><td>fg</td><td>stdv</td><td>4230.3674</td></tr>
<tr><td colspan=3>tsnr</td><td>42.19182025057853</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>