-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoblik.html
127 lines (107 loc) · 5.01 KB
/
oblik.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
<!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>Oblik • 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="oblik.html" class="oblik active">oblik-toolkit
<span> ×</span>
</a>
</nav>
</div>
<main>
<div class="r-projcontent2">
<div class="r-pc2photo">
<a href="oblik.html"><img src="./images/oblik-toolkit-logo.svg" alt="oblik Toolkit front-end framework logo"/></a>
</div>
<div class="r-pc2text">
<div class="r-pc2text1">
<h3><a href="./oblik.html">Oblik Toolkit</a></h3>
<p>JavaScript functionality we use in
<a href="https://oblik.studio/"
rel="noopener noreferrer nofollow"
target="_blank"
>Oblik
</a>
for our projects, packaged in small and
reusable modules.</p>
</div>
<div class="r-pc2text2">
<a href="https://oblik.dev" rel="noopener noreferrer" target="_blank">oblik.dev</a>
</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>