-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathterms.html
78 lines (65 loc) · 2.94 KB
/
terms.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- HTML Meta Tags -->
<title>Terms of Service | is-a.dev</title>
<meta name="description" content="By using our service, you agree to the following Terms of Service." />
<!-- Google / Search Engine Tags -->
<meta itemprop="name" content="Terms of Service | is-a.dev" />
<meta itemprop="description" content="By using our service, you agree to the following Terms of Service." />
<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://is-a.dev/terms" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Terms of Service | is-a.dev" />
<meta property="og:description" content="By using our service, you agree to the following Terms of Service." />
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Terms of Service | is-a.dev" />
<meta name="twitter:description" content="By using our service, you agree to the following Terms of Service." />
<!-- Stylesheets -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.8.1/github-markdown.min.css">
<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
</head>
<style>
body {
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
margin: 0 auto;
padding: 45px;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #0d1117;
}
}
</style>
<body>
<div class="markdown-body" id="terms-of-service">Loading Terms of Service...</div>
<script>
const markdownUrl = "https://raw.githubusercontent.com/is-a-dev/register/refs/heads/main/TERMS_OF_SERVICE.md";
const container = document.getElementById("terms-of-service");
// Fetch the Markdown file
fetch(markdownUrl)
.then(response => {
if (!response.ok) {
throw new Error(`Error fetching the file: ${response.statusText}`);
}
return response.text();
})
.then(markdown => {
// Convert Markdown to HTML using Marked.js
const htmlContent = marked.parse(markdown);
// Insert the HTML into the container
container.innerHTML = htmlContent;
})
.catch(err => {
console.error(err);
container.innerHTML = "<p>Failed to load Terms of Service.</p>";
});
</script>
</body>
</html>