-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (31 loc) · 998 Bytes
/
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
<!--
Congratulations! Your project has been converted to JavaScript!
You should see a working preview of your project on the right side of
the screen. If not, it means something went wrong.
Your project's code is all stored in the files on the left side of the
screen. You can edit the JavaScript code and your project will change.
But you have to save your changes using File > Save or Ctrl+S on your
keyboard before the project preview will update.
-->
<!DOCTYPE html>
<html>
<head>
<link
rel="stylesheet"
href="https://unpkg.com/leopard@^1/dist/index.min.css"
/>
</head>
<body>
<button id="greenFlag">Green Flag</button>
<div id="project"></div>
<script type="module">
import project from "./index.js";
project.attach("#project");
document.querySelector("#greenFlag").addEventListener("click", () => {
project.greenFlag();
});
// Autoplay
project.greenFlag();
</script>
</body>
</html>