-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcb.html
95 lines (94 loc) · 1.75 KB
/
cb.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Code Blocks</title>
<style type="text/css">
body{
margin: 0;
}
header{
background: #a861ff;
color: white;
padding: 5px 25px;
}
header>h1{
display: inline-block;
}
header>i{
font-size: 50px;
float: right;
top: 15px;
position: relative;
}
aside{
display: inline;
height: 90vh;
}
#toolbox{
float: left;
background: #8739e7;
width: 15vw;
}
#toolbox>span{
float: right;
top: 45%;
position: relative;
background: #d9baff;
padding: 10px;
font-size: 20px;
font-weight: bolder;
border-radius: 5px 0 0 5px;
cursor: pointer;
user-select: none;
font-family: monospace;
color: #410092;
}
#code{
float: right;
width: 40vw;
background: #ddd;
text-align: center;
}
section{
height: 50%;
}
textarea{
width: 98%;
resize: none;
height: 100%;
color: white;
font-size: 16px;
}
#cpp{
background: #000;
}
#python{
background: #012242;
}
</style>
<script crossorigin="anonymous" src="https://kit.fontawesome.com/f325a34ebe.js"></script>
</head>
<body mode="blockly">
<header>
<h1>Code Blocks</h1>
<i class="fa fa-user-circle" aria-hidden="true"></i>
</header>
<aside id="toolbox">
<span><</span>
</aside>
<aside id="blocklyDiv">
</aside>
<aside id="code">
<section>
<textarea id="python"></textarea>
</section>
<section>
<textarea id="cpp"></textarea>
</section>
</aside>
<script src="https://unpkg.com/blockly@8.0.5/blockly.min.js"></script>
<script src="main.js"></script>
</body>
</html>