Skip to content

Commit 5485f88

Browse files
committed
add footnote
1 parent 380609f commit 5485f88

File tree

3 files changed

+31
-6
lines changed

3 files changed

+31
-6
lines changed

static/css/content.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,25 @@ body {
2121
padding: 20px;
2222
width: 86%;
2323
height: 100vh;
24+
min-height: 100vh;
2425
box-sizing: border-box;
2526
overflow-x: hidden;
2627
transition: top 0.5s ease;
2728
flex: 1;
2829
overflow-y: auto;
2930
}
3031

32+
#content > .footnote {
33+
font-size: 14px;
34+
color: #777;
35+
background-color: #f9f9f9;
36+
}
37+
38+
.footnote a {
39+
color: #0056b3;
40+
text-decoration: none;
41+
}
42+
3143
.iframe-style {
3244
width: 100%;
3345
height: 100%;

static/js/main.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ import { updateSidebarButtons } from './modules/utils.js';
44

55
const moduleObjects = {};
66

7+
function addFootnote() {
8+
const content = document.getElementById('content');
9+
10+
const footnote = document.createElement('div');
11+
footnote.className = 'footnote';
12+
footnote.innerHTML = `
13+
<p>
14+
TaskVine Report Tool available on GitHub:
15+
<a href="https://github.com/cooperative-computing-lab/taskvine-report-tool.git" target="_blank">https://github.com/cooperative-computing-lab/taskvine-report-tool.git</a>.
16+
</p>
17+
`;
18+
19+
content.appendChild(footnote);
20+
}
21+
722
async function fetchAllModulesData(folder) {
823
try {
924
const tasks = moduleConfigs.map(({ id }) => {
@@ -52,4 +67,7 @@ document.addEventListener('DOMContentLoaded', () => {
5267

5368
/* update sidebar buttons */
5469
updateSidebarButtons();
70+
71+
/* add footnote */
72+
addFootnote();
5573
});

templates/index.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,7 @@
7070
</div>
7171

7272
<div id="content">
73-
<!-- handled in module_definitions.js -->
74-
<div class="footnote">
75-
<p>
76-
TaskVine Report Tool available on <a href="https://github.com/cooperative-computing-lab/taskvine-report-tool.git" target="_blank">Github</a>.
77-
</p>
78-
</div>
73+
7974
</div>
8075

8176
</body>

0 commit comments

Comments
 (0)