-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (71 loc) · 1.34 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>2049</title>
<meta name="viewport" content="width=device-width, user-scalable=no">
<link rel="stylesheet" type="text/css" href="css.css">
<script src="//unpkg.com/jquery"></script>
<body>
<h1>Le rectangle de Pascal</h1>
<input type="number" id="io" min= 2 max=12 onchange="App.setWidth(this.value);">
<table id="table"
onclick='document.querySelector("ul").classList.remove("visible")'
></table>
<script src="index.js"></script>
<label >
type of movments
<input
class="steps"
type="text" value="<"
>
<input
class="steps"
type="text" value="^"
>
<input
class="steps"
type="text" value="v^"
>
</label>
<label >
nb of mvts
<input
type="number" min=3 max=8 value=5
onchange="App.setSteps(this.value)"
>
</label>
<ul class="hidden">
<li><button>></button></li>
<li><button><</button></li>
<li><button>v</button></li>
<li><button>^</button></li>
</ul>
<script>
window.addEventListener('sortie',function (e) {
console.log("sortie");
})
</script>
</body>
<style>
body{
max-height: 100vh;
overflow: hidden;
}
label{
display: block;
margin: 10px;
}
input[type='text']{
width: 10%;
}
ul{
transition: all 1s;
}
.hidden{
transform: translateY(200%);
}
.visible{
transform: translateY(0);
}
</style>
</html>