-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOOPDANotes.html
203 lines (200 loc) · 6.76 KB
/
OOPDANotes.html
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module" src="https://cdn.jsdelivr.net/gh/zerodevx/zero-md@2/dist/zero-md.min.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.min.js" charset="utf-8"></script>
<title>OOPDA Class Notes</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Space+Mono&display=swap');
* {
box-sizing: border-box;
}
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background-color: #868686;
border-radius: 20px;
border: 3px solid transparent;
background-clip: content-box;
}
#siteContent {
display: flex;
max-width: 95vw;
}
.navContainer {
max-width: 300px;
width: 25vw;
font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
}
.navContainer #navigationBar {
position: sticky;
padding: 1rem;
top: 40px;
width: 80%;
margin-left: 1rem;
margin-right: 1rem;
margin-top: 90px;
border: 1px solid #dedede;
border-radius: 5px;
overflow: hidden;
color: #d4d4d4;
}
.navContainer #navigationBar h1 {
margin: 0;
}
.navContainer #navigationBar a {
text-decoration: none;
color: #d4d4d4;
}
.navContainer #navigationBar ol {
padding-inline-start: 1.5rem;
margin-bottom: 0;
margin-top: 0.55rem;
}
#markdownContent {
width: 70vw;
}
@media only screen and (width < 550px) {
body {
margin: 0;
}
#siteContent {
display: grid;
}
.navContainer {
width: 100%;
max-width: 100%;
}
.navContainer #navigationBar {
width: 90%;
position: static;
margin: 0 auto;
margin-top: 15px;
}
#markdownContent {
width: 90vw;
margin: 0 auto;
}
}
</style>
<script>
$(document).ready(function() {
const jumpLinks = document.querySelectorAll('a[href^="#"]'); // finds jump links
jumpLinks.forEach(link => {
link.addEventListener("click", e => {
window.location = link.href;
window.location.reload(); //refreshing because the links don't do anyting otherwise
// const targetID = link.getAttribute('href');
// console.log(targetID);
// const targetElement = document.querySelector(targetID); //get the element with that id
// console.log(targetElement);
// targetElement.scrollIntoView({ behavior: 'smooth' });//it doesnt work and now i think it's zero-md's fault
// console.log("successfully completed");
});
});
});
</script>
</head>
<body style="background-color: #1e1e1e;">
<div id="siteContent">
<div class="navContainer">
<nav id="navigationBar">
<h1>Notes Outline</h1>
<ol>
<li><a href="#java-oopda">Java</a></li>
<li><a href="#hashing">Hashing</a></li>
<li><a href="#maps">Maps</a></li>
<li><a href="#interfaces">Interfaces</a></li>
<li><a href="#inheritance">Inheritance</a></li>
<li><a href="#lambda-functions">Lambda Functions</a></li>
<li><a href="#design">Design</a></li>
</ol>
</nav>
</div>
<zero-md src="notes.md" id="markdownContent">
`notes.md` was *not* found
<template>
<style>
*:not(code *) {
line-height: 1.6;
color: #d4d4d4;
font-family: "Segoe UI", sans-serif;
}
::-webkit-scrollbar {
width: 8px;
}
pre::-webkit-scrollbar {
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background-color: #868686;
border-radius: 20px;
border: 3px solid transparent;
background-clip: content-box;
}
h1, h2 {
font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
font-style: normal;
font-variant: normal;
font-weight: 700;
}
h1 {
font-size: 24px;
line-height: 26.4px;
padding-top: 1em;
border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}
h2 {
font-size: 18px;
line-height: 22px;
}
pre {
background-color: rgba(10, 10, 10, 0.4);
padding: 16px;
border-radius: 3px;
overflow: auto;
}
pre code *:not(.string) {
color: #d4d4d4;
}
pre code {
color: #94c0e5;
}
code {
font-family: 'Space Mono', Courier, monospace;
color: #ce9178;
}
th, td {
padding: 5px 15px;
text-align: left;
}
table {
border-collapse: collapse;
}
thead tr:first-child {
border-bottom: 1px solid;
border-color: rgba(255, 255, 255, 0.7);
}
tbody tr:not(:last-child) {
border-bottom: 2px solid;
border-color: rgba(255, 255, 255, 0.3);
}
hr {
color: rgba(255, 255, 255, 0.18);
}
</style>
</template>
</zero-md>
</div>
</body>
</html>