going somewhere.
This commit is contained in:
1 parent
3a40288689
commit
4b97a2b147
2 files changed
+24
No files matched your search
@@ -0,0 +1,14 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>title</title>
|
||||||
|
<script type="module" src="script.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<button id="hello-button">
|
||||||
|
Say Hello
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
import {average} from "https://cdn.jsdelivr.net/gh/didiercrunch/cours-420-301-ah@main/modules-examples/stats.js";
|
||||||
|
|
||||||
|
|
||||||
|
function sayHello(){
|
||||||
|
alert(average([10, 67, 82, 109]));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
document.getElementById("hello-button")
|
||||||
|
.addEventListener('click', sayHello);
|
||||||
Reference in new issue
Block a user