-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
78 lines (75 loc) · 2.41 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
78
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>pathfind - p5.js sketch</title>
<style>
* {
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
body {
background-color: #1e2132;
}
main {
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.p5Canvas {
border: 1px solid white;
box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
}
input {
font-size: 13px;
margin: 10px;
border-radius: 4px;
line-height: 1.5;
padding: 5px 10px;
transition: box-shadow 100ms ease-in, border 100ms ease-in, background-color 100ms ease-in;
border: 2px solid #dee1e2;
color: rgb(14, 14, 16);
background: #dee1e2;
display: block;
height: 30px;
:hover {
border-color: #ccc;
}
:focus{
border-color: #9147ff;
background: #fff;
}
}
button {
display: inline-block;
outline: none;
cursor: pointer;
font-weight: 600;
border-radius: 3px;
padding: 12px 24px;
border: 0;
color: #fff;
background: #303443;
line-height: 1.15;
font-size: 16px;
:hover {
transition: all .1s ease;
box-shadow: 0 0 0 0 #fff, 0 0 0 3px #1de9b6;
}
}
</style>
</head>
<body>
<main id="container"></main>
<script src="p5.min.js"></script>
<!-- <script src="/p5.js/p5.sound.min.js"></script> -->
<script src="pathfind.js"></script>
<script src="World.js"></script>
<script src="sketch.js"></script>
</body>
</html>