-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSource.txt
More file actions
25 lines (22 loc) · 876 Bytes
/
Copy pathSource.txt
File metadata and controls
25 lines (22 loc) · 876 Bytes
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
head:
color-mode = "dark"
title = "SimplePost"
dependancy "server-list"
style = "modern" # "modern" sleek design with font Roboto, curved corners and neon colors
dependency "files"
body:
header(centered: x) "Welcome to SimplePost"
list(maindisplay: markdown, type: text boxes) [if add=true:
{
textBox(prompt: "Enter your post", variable: "post", group: "adding")
}] server-list.fetch(server: "feed", order: newest)
button(id: "post", icon: "icons.com/data/plus.png", background: color="blue", shape: "square")
if add=true:
button(group: "adding", position: "bottom-right", id: "send" icon="icons.com/data/airplane.png") "Send"
script:
id.send.pressed:
log("button pressed!")
server-list.append(server: "feed", file.convert.md(post))
add = false
id.post.pressed:
add = true