From 86f6668d9bc829cd5886ffaf754c542e63014f54 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7oise=20Conil?= <francoise.conil@insa-lyon.fr>
Date: Thu, 15 Dec 2022 10:31:00 +0100
Subject: [PATCH] Page web minimale avec interaction JavaScript

---
 basic-web/basic.html | 3 ++-
 basic-web/script.js  | 4 ++++
 2 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100644 basic-web/script.js

diff --git a/basic-web/basic.html b/basic-web/basic.html
index 6710a98..07c22ca 100644
--- a/basic-web/basic.html
+++ b/basic-web/basic.html
@@ -3,11 +3,12 @@
   <head>
     <meta charset="utf-8">
     <link rel="stylesheet" href="style.css">
+    <script src="script.js"></script>
     <title>Stage 3ème</title>
   </head>
   <body>
     <h1>Découverte du laboratoire</h1>
-    <h2>Le métier d'ingénieur</h2>
+    <h2 onclick="disQuelquechose()">Le métier d'ingénieur</h2>
     <p>Bonjour</p>
     <ol>
        <li>BAC L</li>
diff --git a/basic-web/script.js b/basic-web/script.js
new file mode 100644
index 0000000..de7bd1c
--- /dev/null
+++ b/basic-web/script.js
@@ -0,0 +1,4 @@
+function disQuelquechose () { 
+    alert ("J'ai cliqué sur le titre");
+}
+
-- 
GitLab