-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsandbox.html
More file actions
55 lines (54 loc) · 2.96 KB
/
sandbox.html
File metadata and controls
55 lines (54 loc) · 2.96 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
53
54
55
<!DOCTYPE html>
<html lang="en">
<style>
#rules{
resize: none;
}
textarea {
background-color: #1b1b1b;
color: white;
white-space: pre-line;
}
</style>
<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 href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<title>Sandbox</title>
<link rel="icon" href="https://www.pouekdev.one/miQZ2R.gif">
<link rel="stylesheet" href="styles/blog.css">
</head>
<body>
<p style="font-size: 40px;">Code | Rules</p>
<textarea id="code" rows="30" cols="100" required></textarea><textarea rows="30" cols="100" readonly id="rules">
Pouek's Markdown 2.0
#TITL(STRING) - Sets title of the post.
#THBN(LINK) - Sets the thumbnail of the post.
#DESC(STRING) - Adds a description to the post. If not present the first paragraph will be displayed instead.
#IMAG(LINK ~ HEIGHT ~ WIDTH) - Adds an image to the post. If not specified Height and Width values will be defaulted to the original image size.
#TEXT(STRING ~ SIZE ~ COLOR(HEX) ~ DECORATION) - Adds text line to the post. Only the text is required
#YTEM(ID OF THE VIDEO FROM YOUTUBE URL) - Embeds a YouTube video into the post.
#NWLN - Adds a new line to the post.
#HEAD(STRING ~ LEVEL ~ ID) - Adds header to the post.
#LINK(LINK ~ TEXT) - Adds a "link" text to the post with the pasted URL. If not specified the text of the link will be the link.
#DATE(STRING) - Adds a date timestamp to the post.
#IFRM(LINK ~ HEIGHT ~ WIDTH) - Embeds a website.
#CODE(PATHTOSNIPPET ~ LANGUAGE) - Adds code snippet to the post.
#NRDY - When put in the post file the website ignores it when displaying available posts on page.
#TAGS - Adds tags to the post which allows for easier sorting.</textarea><br>
<br>
<div style="text-align: center;">
<button type="button" class="btn btn-dark" onclick="preview()">Generate preview</button>
<button type="button" class="btn btn-dark" onclick="save()">Save as a file</button>
</div>
<br><br>
<p style="font-size: 40px; text-align: center;">Preview</p>
<br><br>
<iframe style="width: 1500px; height: 1000px;" id="previewbox"></iframe>
<br><br>
</body>
<script src="js/sandbox.js"></script>
</html>