-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrundown.html
120 lines (100 loc) · 4.75 KB
/
rundown.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
<!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">
<link id="favicon" href="https://dodov.dev/media/site/d0298ef0fd-1614418428/favicon-monokai.png" rel="icon" type="image/png">
<title>Rundown • Projects • Hristiyan Dodov</title>
<link rel="stylesheet" href="rstyle.css">
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Fira+Code&display=swap" rel="stylesheet"/>
</head>
<body>
<div class="r-container">
<div class="r-navbar">
<nav>
<a href="index.html">home</a>
<a href="blog.html">blog</a>
<a href="project.html">projects</a>
<a href="rundown.html" class="rundown isactive">rundown
<span> ×</span>
</a>
</nav>
</div>
<main>
<div class="projcontents">
<div class="r-projcontent2">
<div class="r-pc2photo">
<a href="./rundown.html"> <img src="./images/rundown-logo.svg" alt="" /></a>
</div>
<div class="r-pc2text">
<div class="r-pc2text1">
<h3><a href="./rundown.html"> Rundown</a></h3>
<p>Turns your browser's new-tab page into a simple markdown editor with to-do lists and summaries.</p>
</div>
<div class="r-pc2text2"> <a href="https://chrome.google.com/webstore/detail/rundown/opjjddkgmphhkjlgocopmeolmmibiphb">chrome.google.com</a></div>
</div>
</div>
</div>
<br>
<hr>
<br>
<footer>
<div class="links">
<ul>
<li class="up">
<a class="social-link" href="https://github.io/yandodov" rel="noopener noreferrer" target="_blank">Github</a>
</li>
<li>
<a class="social-link" href="https://twitter.com/yandodov" rel="noopener noreferrer" target="_blank">Twitter</a>
</li>
<li>
<a class="social-link" href="https://www.linkedin.com/in/yandodov/" rel="noopener noreferrer" target="_blank">LinkedIn</a>
</li>
<li>
<a class="social-link" href="https://www.instagram.com/yandodov/" rel="noopener noreferrer" target="_blank">Instagram</a>
</li>
</ul>
</div>
<div class="modes">
<select name="theme" id="theme">
<option value="monokai"> Monokai </option>
<option value="light-plus"> Light+ </option>
<option value="dark-plus"> Dark+ </option>
<option value="github-dark"> GitHub Dark </option>
<option value="github-light"> GitHub Light </option>
<option value="solarized-light"> Solarized Light </option>
</select>
<span class="colour">↓ </span>
</div>
</footer>
</main>
</div>
<script>
const setTheme = (theme) => {
localStorage.setItem("theme", theme)
document.documentElement.className = theme
};
window.onload = (event) => {
const theme= localStorage.getItem('theme')
if (theme) {
setTheme(theme)
document.getElementById('theme').value =theme
return
}
setTheme('monokai')
console.log('page is fully loaded');
};
// const getTheme = () => {
// const theme = localStorage.getItem('theme');
// theme && setTheme(theme);
// }
// getTheme();
document.getElementById("theme").addEventListener("change", function () {
setTheme(this.value);
});
</script>
</body>
</html>