-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommentium.html
41 lines (38 loc) · 1.33 KB
/
commentium.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Commentium test</title>
</head>
<body>
<div id="commentium"></div>
<script>
if (location.search === "?q=1") {
fetch('https://commentium.dev/api/v1/comments', {
headers: {
accept: '*/*',
'accept-language': 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7',
'cache-control': 'no-cache',
'content-type': 'application/json;charset=utf-8',
pragma: 'no-cache',
priority: 'u=1, i',
'sec-ch-ua': '"Not A(Brand";v="8", "Chromium";v="132"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"macOS"',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-origin',
},
referrer: 'https://commentium.dev/static/template.html?from=https://rundleman.github.io/commentium.html',
referrerPolicy: 'strict-origin-when-cross-origin',
body: `{\"text\":\"${new Date().toISOString()}\",\"thread\":\"2yp624ceWdETrLE1mcHYT\",\"parent\":\"2yp6259J9ZAs5svceBlqv\"}`,
method: 'POST',
mode: 'cors',
credentials: 'include',
});
}
</script>
<script src="https://commentium.dev/static/index.js"></script>
</body>
</html>