Skip to content

Commit

Permalink
Fix bug cert pages with no cert preview (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
angelina-momin authored Nov 12, 2024
1 parent b22e3ea commit 56e8e43
Show file tree
Hide file tree
Showing 15 changed files with 106 additions and 126 deletions.
Binary file added docs/certs/2020-001/cert.pdf
Binary file not shown.
75 changes: 39 additions & 36 deletions docs/certs/2023-012/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ <h2 class="card-title" style="color: darkgreen; margin-top: 0;">
<div class="card-body d-flex flex-column">
<p>
<strong>Title</strong>: <a
href="https://doi.org/10.21203/rs.3.rs-2587424/v1">An inventory of human
href="https://doi.org/10.1038/s41598-023-48241-y">An inventory of human
light exposure related behaviour</a>
</p>
<p>
Expand All @@ -273,44 +273,47 @@ <h2 class="card-title" style="color: darkgreen; margin-top: 0;">
</p>
<div id="abstract-content" class="scrollable-text-box">
<p>
<jats:title>Abstract</jats:title> <jats:p>Light exposure is an essential
<jats:title>Abstract</jats:title><jats:p>Light exposure is an essential
driver of health and well-being, and individual behaviours during rest
and activity modulate physiologically-relevant aspects of light
and activity modulate physiologically relevant aspects of light
exposure. Further understanding the behaviours that influence individual
photic exposure patterns may provide insight into the volitional
contributions to the physiological effects of light and guide bevavioral
points of intervention. Here, we present a novel, self-reported and
psychometrically validated inventory to capture light exposure-related
behaviour, the Light Exposure Behaviour Assessment (LEBA). An expert
panel prepared the initial 48-item pool spanning different light
exposure-related behaviours. Responses, consisting of rating the
frequency of engaging in the per-item behaviour on a 5-point Likert type
scale, were collected in an online survey yielding responses from a
geographically unconstrained sample (690 completed responses, 74
countries, 28 time zones). The exploratory factor analysis (EFA) on an
initial subsample (n=428) rendered a five-factor solution with 25 items
(Wearing blue light filters, spending time outdoors, using a phone and
smartwatch in bed, using light before bedtime, using light in the
morning and during daytime). In a confirmatory factor analysis (CFA)
performed on an independent subset of participants (n=262), we removed
two additional items to attain the best fit for the five-factor solution
(CFI=0.95, TLI=0.95, RMSEA=0.06). The internal consistency reliability
coefficient for the total instrument yielded McDonald’s Omega=0.68.
Measurement model invariance analysis between native and non-native
English speakers showed our model attained the highest level of
invariance (residual invariance; CFI=0.95, TLI=0.95, RMSEA=0.05).
Lastly, a short form of the LEBA (n=18) was developed using Item
Response Theory on the complete sample (n=690). The psychometric
properties of the LEBA indicate the usability to measure light
exposure-related behaviours. The instrument may offer a scalable
solution to characterize behaviours that influence individual photic
exposure patterns in remote samples. The LEBA inventory is available
under the open-access CC-BY-NC-ND license. Instrument webpage: <a
contributions to the physiological effects of light and guide
behavioural points of intervention. Here, we present a novel,
self-reported and psychometrically validated inventory to capture light
exposure-related behaviour, the Light Exposure Behaviour Assessment
(LEBA). An expert panel prepared the initial 48-item pool spanning
different light exposure-related behaviours. Responses, consisting of
rating the frequency of engaging in the per-item behaviour on a
five-point Likert-type scale, were collected in an online survey
yielding responses from a geographically unconstrained sample (690
completed responses, 74 countries, 28 time zones). The exploratory
factor analysis (EFA) on an initial subsample (n = 428) rendered a
five-factor solution with 25 items (wearing blue light filters, spending
time outdoors, using a phone and smartwatch in bed, using light before
bedtime, using light in the morning and during daytime). In a
confirmatory factor analysis (CFA) performed on an independent subset of
participants (n = 262), we removed two additional items to attain the
best fit for the five-factor solution (CFI = 0.95, TLI = 0.95, RMSEA =
0.06). The internal consistency reliability coefficient for the total
instrument yielded McDonald’s Omega = 0.68. Measurement model invariance
analysis between native and non-native English speakers showed our model
attained the highest level of invariance (residual invariance CFI =
0.95, TLI = 0.95, RMSEA = 0.05). Lastly, a short form of the LEBA (n =
18 items) was developed using Item Response Theory on the complete
sample (n = 690). The psychometric properties of the LEBA indicate the
usability for measuring light exposure-related behaviours. The
instrument may offer a scalable solution to characterise behaviours that
influence individual photic exposure patterns in remote samples. The
LEBA inventory is available under the open-access CC-BY license.
Instrument
webpage:<jats:ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="uri" xlink:href="https://leba-instrument.org/"><a
href="https://leba-instrument.org/"
class="uri">https://leba-instrument.org/</a> GitHub repository
containing this manuscript: <a
class="uri">https://leba-instrument.org/</a></jats:ext-link>GitHub
repository containing this
manuscript:<jats:ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="uri" xlink:href="https://github.com/leba-instrument/leba-manuscript"><a
href="https://github.com/leba-instrument/leba-manuscript"
class="uri">https://github.com/leba-instrument/leba-manuscript</a></jats:p>
class="uri">https://github.com/leba-instrument/leba-manuscript</a></jats:ext-link>.</jats:p>
</p>
</div>
</div>
Expand Down Expand Up @@ -350,8 +353,8 @@ <h2 class="card-title" style="color: darkgreen; margin-top: 0;">
</p>
<div id="summary-content" class="scrollable-text-box">
<p>
Comprehensive reproduction of Rmarkdown document; biggest concerns found
with linux versions of R package “gt”.
Comprehensive reproduction of RMarkdown document; biggest concerns found
with Linux versions of R package “gt”.
</p>
</div>
</div>
Expand Down
27 changes: 24 additions & 3 deletions docs/certs/2024-001/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ <h2 class="card-title" style="color: darkgreen; margin-top: 0;">
<div class="card-body d-flex flex-column">
<p>
<strong>Title</strong>: <a
href="https://doi.org/10.17605/OSF.IO/ZRKSF">Regulation of pupil size in
href="https://doi.org/10.1098/rsos.191613">Regulation of pupil size in
natural vision across the human lifespan</a>
</p>
<p>
Expand All @@ -264,11 +264,32 @@ <h2 class="card-title" style="color: darkgreen; margin-top: 0;">
<!-- Abstract section -->
<div id="abstract-section" class="scrollable-container">
<p>
<strong>Abstract</strong>: <i>Obtained from <span
class="math inline"><em>a</em><em>b</em><em>s</em><em>t</em><em>r</em><em>a</em><em>c</em><em>t</em><sub><em>s</em></sub><em>o</em><em>u</em><em>r</em><em>c</em><em>e</em></span></i>
<strong>Abstract</strong>: <i>Obtained from <a
href="https://www.crossref.org">CrossRef</a></i>
</p>
<div id="abstract-content" class="scrollable-text-box">
<p>
<jats:p> Vision is mediated by light passing through the pupil, which
changes in diameter from approximately 2 to 8 mm between bright and dark
illumination. With age, mean pupil size declines. In laboratory
experiments, factors affecting pupil size can be experimentally
controlled. How the pupil reflects the change in retinal input from the
visual environment under natural viewing conditions is unclear. We
address this question in a field experiment (
<jats:italic>N</jats:italic> = 83, 43 female, 18–87 years) using a
custom-made wearable video-based eye tracker with a spectroradiometer
measuring near-corneal spectral irradiance. Participants moved in and
between indoor and outdoor environments varying in spectrum and engaged
in a range of everyday tasks. Our data confirm that light-adapted pupil
size is determined by light level, with a better model fit of melanopic
over photopic units, and that it decreased with increasing age, yielding
steeper slopes at lower light levels. We found no indication that sex,
iris colour or reported caffeine consumption affects pupil size. Our
exploratory results point to a role of photoreceptor integration in
controlling steady-state pupil size. The data provide evidence for
considering age in personalized lighting solutions and against the use
of photopic illuminance alone to assess the impact of real-world
lighting conditions. </jats:p>
</p>
</div>
</div>
Expand Down
77 changes: 18 additions & 59 deletions docs/certs/2024-002/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ <h1 class="title toc-ignore">CODECHECK Certificate 2024-002</h1>
</div>


<p class="fs-3 fw">
The certificate can be found at this <a
href="https://doi.org/10.5281/zenodo.FIXME">link</a>
</p>
<p><link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"></p>
<style>
body {
Expand All @@ -189,20 +193,6 @@ <h1 class="title toc-ignore">CODECHECK Certificate 2024-002</h1>
}
}

.img-background {
background-position: center;
background-repeat: no-repeat;
background-size: contain;
height: 100%;
}
.wrapper {
height: 80vh;
padding: 0px;
}
.row {
margin: 5px;
}

.scrollable-container {
display: flex;
flex-direction: column;
Expand All @@ -217,32 +207,11 @@ <h1 class="title toc-ignore">CODECHECK Certificate 2024-002</h1>
padding: 10px;
background-color: #fff;
}

</style>
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="card mb-3">
<div class="card-body">
<!-- Buttons to change cert page -->
<div class="d-flex justify-content-center">
<button type="button" onclick="changeImage(-1)" class="btn btn-outline-secondary mx-2">
<h4>
Previous
</h4>
</button>
<button type="button" onclick="changeImage(1)" class="btn btn-outline-secondary mx-2">
<h4>
Next
</h4>
</button>
</div>
<!-- Cert image -->
<img class="card-img-top mb-3" src="cert_1.png" id="image-slider">
</div>
</div>
</div>
<!-- Right Side Content (Paper Details + Codecheck details) -->
<!-- Paper details -->
<div class="col-md-6 d-flex flex-column">
<div class="card mb-3 flex-grow-1">
<div class="card-header pt-4">
Expand Down Expand Up @@ -304,6 +273,9 @@ <h2 class="card-title" style="color: darkgreen; margin-top: 0;">
</div>
</div>
</div>
</div>
<!-- Codecheck details -->
<div class="col-md-6 d-flex flex-column">
<div class="card mb-3 flex-grow-1">
<div class="card-header pt-4">
<h2 class="card-title" style="color: darkgreen; margin-top: 0;">
Expand Down Expand Up @@ -345,28 +317,9 @@ <h2 class="card-title" style="color: darkgreen; margin-top: 0;">
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
</div>
</div>
<script>
// Dynamically insert the images array
var images = ["cert_1.png", "cert_0.png"];
var currentIndex = 0;

function changeImage(direction) {
currentIndex += direction;
if (currentIndex < 0) {
currentIndex = images.length - 1;
} else if (currentIndex >= images.length) {
currentIndex = 0;
}
// Change the src image on click
document.getElementById('image-slider').src= images[currentIndex];
}

// Setting the cert page 1 as the display image
changeImage(0);

// Toggling display of the summary and abstract section on and off depending on if text is available
function adjustContentDisplay(contentElement, sectionElement) {
Expand All @@ -375,6 +328,14 @@ <h2 class="card-title" style="color: darkgreen; margin-top: 0;">
sectionElement.style.display = 'none';
return;
}

// Set the min-height for elements with the "card" class
else {
const cardElements = document.querySelectorAll('.card');
cardElements.forEach(card => {
card.style.minHeight = '320px'; // Adjust this value as needed
});
}
}

document.addEventListener("DOMContentLoaded", function() {
Expand All @@ -390,9 +351,7 @@ <h2 class="card-title" style="color: darkgreen; margin-top: 0;">

adjustContentDisplay(abstractContent, abstractSection);
});

</script>
</div>

<p style="margin-bottom: 2em;">
</p>
Expand Down
4 changes: 2 additions & 2 deletions docs/codecheckers/0000-0001-8607-8025/featured.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"Venue": "preprint",
"Report": "https://doi.org/10.5281/zenodo.10213244",
"Title": "An inventory of human light exposure related behaviour",
"Paper reference": "https://doi.org/10.21203/rs.3.rs-2587424/v1",
"Paper reference": "https://doi.org/10.1038/s41598-023-48241-y",
"Check date": "2023-11-26"
},
{
Expand All @@ -76,7 +76,7 @@
"Venue": "preprint",
"Report": "https://doi.org/10.5281/zenodo.10823246",
"Title": "Regulation of pupil size in natural vision across the human lifespan",
"Paper reference": "https://doi.org/10.17605/OSF.IO/ZRKSF",
"Paper reference": "https://doi.org/10.1098/rsos.191613",
"Check date": "2024-03-15"
},
{
Expand Down
7 changes: 3 additions & 4 deletions docs/codecheckers/0000-0001-8607-8025/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,8 @@ <h1 class="title toc-ignore">Codechecks by Stephen J. Eglen
<tr class="odd">
<td align="left"><a
href="https://codecheck.org.uk/register/certs/2023-012/">2023-012</a></td>
<td align="left"><a
href="https://doi.org/10.21203/rs.3.rs-2587424/v1">An inventory of human
light exposure related behaviour</a></td>
<td align="left"><a href="https://doi.org/10.1038/s41598-023-48241-y">An
inventory of human light exposure related behaviour</a></td>
<td align="left">community</td>
<td align="left">preprint</td>
<td align="left"><a
Expand All @@ -357,7 +356,7 @@ <h1 class="title toc-ignore">Codechecks by Stephen J. Eglen
<td align="left"><a
href="https://codecheck.org.uk/register/certs/2024-001/">2024-001</a></td>
<td align="left"><a
href="https://doi.org/10.17605/OSF.IO/ZRKSF">Regulation of pupil size in
href="https://doi.org/10.1098/rsos.191613">Regulation of pupil size in
natural vision across the human lifespan</a></td>
<td align="left">community</td>
<td align="left">preprint</td>
Expand Down
4 changes: 2 additions & 2 deletions docs/codecheckers/0000-0001-8607-8025/register.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"Venue": "preprint",
"Report": "https://doi.org/10.5281/zenodo.10213244",
"Title": "An inventory of human light exposure related behaviour",
"Paper reference": "https://doi.org/10.21203/rs.3.rs-2587424/v1",
"Paper reference": "https://doi.org/10.1038/s41598-023-48241-y",
"Check date": "2023-11-26"
},
{
Expand All @@ -116,7 +116,7 @@
"Venue": "preprint",
"Report": "https://doi.org/10.5281/zenodo.10823246",
"Title": "Regulation of pupil size in natural vision across the human lifespan",
"Paper reference": "https://doi.org/10.17605/OSF.IO/ZRKSF",
"Paper reference": "https://doi.org/10.1098/rsos.191613",
"Check date": "2024-03-15"
},
{
Expand Down
4 changes: 2 additions & 2 deletions docs/codecheckers/0000-0001-8607-8025/register.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ title: Codechecks by Stephen J. Eglen (0000-0001-8607-8025)
|[2020-024](https://codecheck.org.uk/register/certs/2020-024/)|[Driftage: a multi-agent system framework for concept drift detection ](https://doi.org/10.1093/gigascience/giab030) |journal |GigaScience |[31](https://github.com/codecheckers/register/issues/31)|https://doi.org/10.5281/zenodo.4964880 |2020-12-07 |
|[2022-001](https://codecheck.org.uk/register/certs/2022-001/)|[Geographically Weighted Regressions for prioritizing educational planning, policies, and interventions ](http://www.iiep.unesco.org/en/publication/geographically-weighted-regressions-prioritizing-educational-planning-policies-and)|community |codecheck |[40](https://github.com/codecheckers/register/issues/40)|https://doi.org/10.5281/zenodo.6040066 |2022-01-19 |
|[2023-011](https://codecheck.org.uk/register/certs/2023-011/)|[Does enforcing glenohumeral joint stability matter? A new rapid muscle redundancy solver highlights the importance of non-superficial shoulder muscles ](https://doi.org/10.1101/2023.07.11.548542)|community |preprint |[56](https://github.com/codecheckers/register/issues/56)|https://doi.org/10.5281/zenodo.8359199 |2023-09-18 |
|[2023-012](https://codecheck.org.uk/register/certs/2023-012/)|[An inventory of human light exposure related behaviour ](https://doi.org/10.21203/rs.3.rs-2587424/v1) |community |preprint |[59](https://github.com/codecheckers/register/issues/59)|https://doi.org/10.5281/zenodo.10213244 |2023-11-26 |
|[2024-001](https://codecheck.org.uk/register/certs/2024-001/)|[Regulation of pupil size in natural vision across the human lifespan ](https://doi.org/10.17605/OSF.IO/ZRKSF) |community |preprint |[60](https://github.com/codecheckers/register/issues/60)|https://doi.org/10.5281/zenodo.10823246 |2024-03-15 |
|[2023-012](https://codecheck.org.uk/register/certs/2023-012/)|[An inventory of human light exposure related behaviour ](https://doi.org/10.1038/s41598-023-48241-y) |community |preprint |[59](https://github.com/codecheckers/register/issues/59)|https://doi.org/10.5281/zenodo.10213244 |2023-11-26 |
|[2024-001](https://codecheck.org.uk/register/certs/2024-001/)|[Regulation of pupil size in natural vision across the human lifespan ](https://doi.org/10.1098/rsos.191613) |community |preprint |[60](https://github.com/codecheckers/register/issues/60)|https://doi.org/10.5281/zenodo.10823246 |2024-03-15 |
|[2024-002](https://codecheck.org.uk/register/certs/2024-002/)|[Modeling spatiotemporal domestic wastewater variability: Implications for measuring treatment efficiency](https://doi.org/10.1016/j.jenvman.2023.119680)|community |codecheck NL |[61](https://github.com/codecheckers/register/issues/61)|https://doi.org/10.5281/zenodo.FIXME |2020-05-21 |
|[2024-003](https://codecheck.org.uk/register/certs/2024-003/)|[State-Dependent Dynamic Tube MPC: A Novel Tube MPC Method with a Fuzzy Model of Disturbances ](https://arxiv.org/pdf/2310.19997) |community |codecheck NL |[66](https://github.com/codecheckers/register/issues/66)|https://doi.org/10.5281/zenodo.11403956 |2024-05-30 |
7 changes: 3 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1107,9 +1107,8 @@ <h1 class="title toc-ignore">CODECHECK Register</h1>
<tr class="even">
<td align="left"><a
href="https://codecheck.org.uk/register/certs/2023-012/">2023-012</a></td>
<td align="left"><a
href="https://doi.org/10.21203/rs.3.rs-2587424/v1">An inventory of human
light exposure related behaviour</a></td>
<td align="left"><a href="https://doi.org/10.1038/s41598-023-48241-y">An
inventory of human light exposure related behaviour</a></td>
<td align="left">community</td>
<td align="left">preprint</td>
<td align="left"><a
Expand All @@ -1122,7 +1121,7 @@ <h1 class="title toc-ignore">CODECHECK Register</h1>
<td align="left"><a
href="https://codecheck.org.uk/register/certs/2024-001/">2024-001</a></td>
<td align="left"><a
href="https://doi.org/10.17605/OSF.IO/ZRKSF">Regulation of pupil size in
href="https://doi.org/10.1098/rsos.191613">Regulation of pupil size in
natural vision across the human lifespan</a></td>
<td align="left">community</td>
<td align="left">preprint</td>
Expand Down
4 changes: 2 additions & 2 deletions docs/register.json
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@
"Venue": "preprint",
"Report": "https://doi.org/10.5281/zenodo.10213244",
"Title": "An inventory of human light exposure related behaviour",
"Paper reference": "https://doi.org/10.21203/rs.3.rs-2587424/v1",
"Paper reference": "https://doi.org/10.1038/s41598-023-48241-y",
"Check date": "2023-11-26"
},
{
Expand All @@ -646,7 +646,7 @@
"Venue": "preprint",
"Report": "https://doi.org/10.5281/zenodo.10823246",
"Title": "Regulation of pupil size in natural vision across the human lifespan",
"Paper reference": "https://doi.org/10.17605/OSF.IO/ZRKSF",
"Paper reference": "https://doi.org/10.1098/rsos.191613",
"Check date": "2024-03-15"
},
{
Expand Down
Loading

0 comments on commit 56e8e43

Please sign in to comment.