inst/extdata/templates/cert/template_no_cert.md

title: $title$

The certificate can be found at this $codecheck_report_subtext$

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; } } .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; }

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$

// 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; } // 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() { // 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.