inst/extdata/templates/cert/template_base.md

title: $title$

body { font-family: "PT Sans", Helvetica, Arial, sans-serif; } h1 { margin-top: 2rem; } /* Add minimum height to cards when screen less than md */ @media (max-width: 768px) { .card { min-height: 270px; } } .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; height: 100%; } .scrollable-text-box { flex: 1 1 auto; height: 0; /*Adding a height of 0 so that the text box fills remainder of card*/ overflow-y: auto; border: 1px solid #ddd; padding: 10px; background-color: #fff; }

Previous

Next

Paper details

Title: $paper_title$

$author_names_heading$: $paper_authors$

Abstract: Obtained from $abstract_source$

$abstract_content$

Codecheck details

Certificate identifier: $codecheck_cert$

$codechecker_names_heading$: $codechecker_names$

Time of codecheck: $codecheck_time$

Repository: $codecheck_repo$

Codecheck report: $codecheck_report$

Summary:

$codecheck_summary$

// Dynamically insert the images array $var_images$ 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) { // Check if the content is empty, in which case we hide the section if (!contentElement.textContent.trim()) { sectionElement.style.display = 'none'; return; } } document.addEventListener("DOMContentLoaded", function() { // Adjust for the summary section var summarySection = document.getElementById("summary-section"); var summaryContent = document.getElementById("summary-content"); adjustContentDisplay(summaryContent, summarySection); // Adjust for the abstract section var abstractSection = document.getElementById("abstract-section"); var abstractContent = document.getElementById("abstract-content"); adjustContentDisplay(abstractContent, abstractSection); });


codecheckers/codecheck documentation built on Dec. 6, 2024, 7:38 p.m.