-
Notifications
You must be signed in to change notification settings - Fork 0
/
arbol.html
120 lines (109 loc) · 2.84 KB
/
arbol.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>marmotas</title>
<!--link rel="stylesheet" href="style.css"--!>
<style>
body {
background:black;
}
.container {
height: 100vh;
}
.container img {
max-width: 100%;
max-height: 100%;
display: block;
margin: 0 auto;
}
.custom-field::after {
content: attr(aria-label);
}
.custom-field input {
text-align:center;
border: none;
-webkit-appearance: none;
-ms-appearance: none;
-moz-appearance: none;
appearance: none;
padding: 12px;
border-radius: 3px;
position:fixed;
z-index:10000;
font-size: 50px;
color:white;
}
html, body {margin: 0; height: 100%; overflow: hidden}
::placeholder {
color:white;
}
#exec_word {
background: rgba(224,100,100, .1);
bottom:0%;
}
#exec_tree {
background: rgba(224,255,232, .1);
top:0%;
}
img {
position:fixed;
filter: contrast(1);
}
button {
display:none;
}
#word{right:0%;width:400%;}
#tree{left:0%;width:50%;bottom:-9%;}
span{
position: absolute;
background: url(output_test.svg);
background-size: cover;
pointer-events: none;
transform: translate(-50%, -50%);
animation: animate 10s linear infinite;
}
@keyframes animate{
0%{
transform: translate(-50%, -50%);
opacity: 1;
}
100%{
transform: translate(-50%, -1000%);
opacity: 0;
}
}
</style>
</head>
<body>
<div class="container">
<img id="word" src="output_word.svg"/>
<div id="tree_img"></div>
<img id="tree" src="output_test.svg">
</div>
<!--tree--!>
<div class="input">
{
<label class="custom-field" >
<input type="text" id="exec_tree" size="70" placeholder="{∅}">
<button id="myButton" onclick="buttonCodeTree()">Submit</button>
</label>
}
</div>
<!--tree--!>
<!--word graph--!>
<div class="input">
{
<label class="custom-field" >
<input type="text" id="exec_word" size="65" placeholder="{∅}">
<button id="myWordButton" onclick="buttonCodeWord()">Submit</button>
</label>
}
</div>
<!--word graph--!>
<script src="./arbol.js"></script>
<!--script src="index.js"></script--!>
</body>
</html>