-
Notifications
You must be signed in to change notification settings - Fork 1
/
flash.eve
65 lines (50 loc) · 931 Bytes
/
flash.eve
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
# Flash
```eve
bind @browser
[#h1 text:"Flash"]
commit
[#max value:5]
```
```
search
[#max value]
i = range[from: 1 to: value]
j = range[from: 1 to: value]
commit
[#sp x:i y:j col:"white" text:""]
```
```
search
[#max value]
sp = [#sp x y text]
order = sort[value: (x y)]
width = round[value: (100 / value)]
bind @browser
[#div class: "board" children:
[#div class: "piece" sort: order sp text: "{{sp.text}}" style: [width:"{{width}}%", background-color:"{{sp.col}}"]]]
```
```css
.board {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
border: solid 2px gray
}
.piece {
height: 50px;
line-height: 50px;
vertical-align: "middle";
border-width: 0px 1px 1px 0px;
border-style: dashed;
border-color: gray;
text-align: center
}
```
```
search
[#time hours minutes seconds]
[#div sp x:1 y:1]
commit
sp <- [col:"red" text:"tick"]
```