-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (47 loc) · 1.35 KB
/
index.html
File metadata and controls
52 lines (47 loc) · 1.35 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="color-scheme" content="light" />
<title>Disqus comments</title>
<style>
html, body {
margin: 0;
padding: 0;
width: 100%;
background: #fff;
color: #111;
color-scheme: light;
}
#disqus_thread {
background: #fff;
}
</style>
</head>
<body>
<div id="disqus_thread"></div>
<script>
const q = new URLSearchParams(window.location.search);
const pageUrl = q.get('u') || 'https://publish.obsidian.md/zapret';
const pageTitle = q.get('t') || 'Note';
const pageId = q.get('i') || pageUrl;
document.documentElement.style.colorScheme = 'light';
window.disqus_config = function () {
this.page.url = pageUrl;
this.page.identifier = pageId;
this.page.title = pageTitle;
};
</script>
<script>
(function () {
var d = document;
var s = d.createElement('script');
s.src = 'https://loop-uh.disqus.com/embed.js';
s.setAttribute('data-timestamp', String(Date.now()));
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the comments.</noscript>
</body>
</html>