-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex_template.html
More file actions
99 lines (97 loc) · 3.52 KB
/
index_template.html
File metadata and controls
99 lines (97 loc) · 3.52 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome to DomFico.github.io</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<style>
body {
font-family: 'Courier New', Courier, monospace;
background-color: #333; /* Initial dark background */
color: white; /* Initial white text */
}
.container {
padding: 20px;
}
.color-picker {
margin-bottom: 20px;
}
.directory, .files {
list-style-type: none;
margin: 0;
padding: 0;
}
.directory > li {
margin-left: 1rem;
padding-bottom: 10px; /* Add padding between initial folders */
}
.directory-name {
font-weight: bold;
cursor: pointer;
font-size: 1.2em; /* Increase font size of the folders */
}
.files {
padding-left: 20px;
}
.folder > span, .file > span {
border-bottom: 1px solid;
border-left: 1px solid;
height: 1.5rem;
width: 2rem;
display: inline-block;
margin-bottom: 0.3rem;
margin-left: 1rem;
}
.folder > span {
border-left: 1px solid transparent;
}
.fa-folder, .fa-file {
margin-right: 5px;
}
</style>
</head>
<body>
<div class="container">
<h1>My Work</h1>
<div class="color-picker">
<label for="background-color">Background Color:</label>
<input type="color" id="background-color" name="background-color" value="#333">
<label for="text-color">Text Color:</label>
<input type="color" id="text-color" name="text-color" value="#ffffff">
</div>
<ul class="directory">
<li><span></span><i class="fas fa-folder" onclick="toggleFiles('coding-projects-files')"></i> <span class="directory-name">Coding Projects</span>
<ul class="files" id="coding-projects-files" style="display: none;">
<!-- Coding Projects Start -->
<!-- Coding Projects End -->
</ul>
</li>
<li><span></span><i class="fas fa-folder" onclick="toggleFiles('research-files')"></i> <span class="directory-name">Research</span>
<ul class="files" id="research-files" style="display: none;">
<!-- Research Start -->
<!-- Research End -->
</ul>
</li>
</ul>
</div>
<script>
// JavaScript to handle color changes
document.getElementById('background-color').addEventListener('input', function(event) {
document.body.style.backgroundColor = event.target.value;
});
document.getElementById('text-color').addEventListener('input', function(event) {
document.body.style.color = event.target.value;
});
function toggleFiles(folderId) {
const filesDiv = document.getElementById(folderId);
// Toggle the display state of file list
if (filesDiv.style.display === 'none' || filesDiv.style.display === '') {
filesDiv.style.display = 'block';
} else {
filesDiv.style.display = 'none';
}
}
</script>
</body>
</html>