"bak 18h15"
This commit is contained in:
parent
03fc3678c8
commit
0a2643231e
501
TD1/README.html
Normal file
501
TD1/README.html
Normal file
File diff suppressed because one or more lines are too long
501
TD1/README_tmp.html
Normal file
501
TD1/README_tmp.html
Normal file
File diff suppressed because one or more lines are too long
@ -1,3 +1,4 @@
|
|||||||
# Programmation Web – client riche - TD2
|
# Programmation Web – client riche - TD2
|
||||||
|
|
||||||
## Exercice 1
|
## Exercice 1
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ h1 {
|
|||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.h {
|
h2 {
|
||||||
background-color: #abc;
|
background-color: #abc;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin-left: 60px;
|
margin-left: 60px;
|
||||||
@ -40,3 +40,10 @@ p {
|
|||||||
.pink {
|
.pink {
|
||||||
background-color: pink;
|
background-color: pink;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#imgMelou,
|
||||||
|
#butMelou {
|
||||||
|
display: block;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
BIN
TD2/img/melou.jpeg
Normal file
BIN
TD2/img/melou.jpeg
Normal file
Binary file not shown.
After Width: | Height: | Size: 60 KiB |
@ -11,11 +11,36 @@
|
|||||||
<meta name="keywords" content="JavaScript, TD1" />
|
<meta name="keywords" content="JavaScript, TD1" />
|
||||||
<link rel='stylesheet' type='text/css' media='screen' href='./css/main.css'>
|
<link rel='stylesheet' type='text/css' media='screen' href='./css/main.css'>
|
||||||
<script src='./js/main.js'></script>
|
<script src='./js/main.js'></script>
|
||||||
<p>Comme pour tous les autres td, les réponses aux questions sont disponibles <strong><a href="https://github.com/JunkJumper/M4103-Programmation-Web-Client-Riche/tree/master/TD1" target="_blank">ICI</a></strong> !</p>
|
<p>Comme pour tous les autres td, les réponses aux questions sont disponibles <strong><a href="https://github.com/JunkJumper/M4103-Programmation-Web-Client-Riche/tree/master/TD2" target="_blank">ICI</a></strong> !</p>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body onload="init();">
|
<body onload="init();">
|
||||||
|
<h1>Pierre Lees-Melou</h1>
|
||||||
|
<h2>Courte présentation</h2>
|
||||||
|
<div id="presentation">
|
||||||
|
<p>Pierre Lees-Melou, est un footballeur français. Il évolue au poste de milieu offensif à l'OGC Nice.</p>
|
||||||
|
<img src="./img/melou.jpeg" width="15%" alt="melou" id="imgMelou" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2>Son parcours et ses stats</h2>
|
||||||
|
|
||||||
|
<div id="parcours">
|
||||||
|
<p>Voici les clubs par lequel notre numéro <span>8</span> <a href="https://www.ogcnice.com/fr/">du gym</a> est passé</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>2010-2012 | Langon FC</li>
|
||||||
|
<li>2012 | FCE Mérignac Arlac</li>
|
||||||
|
<li>2013-2015 | US Lège-Cap-Ferret</li>
|
||||||
|
<li>2015-2017 | Dijon FCO</li>
|
||||||
|
<li>2017-Aujoud'hui | OGC Nice</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2>Son dernier but</h2>
|
||||||
|
|
||||||
|
<div id="video">
|
||||||
|
<iframe width="640" height="360" src="https://www.youtube.com/embed/RxnjbxLElWI" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen id="butMelou"></iframe>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
@ -1,10 +1,14 @@
|
|||||||
|
console.log("JavaScript is linked"); /**Cette méthode permet de vérifier que Javascript est bien activé **/
|
||||||
|
|
||||||
|
function init() {
|
||||||
|
//sayHello();
|
||||||
|
document.body.addEventListener("click", sayHello); //vérification que le listener est ok
|
||||||
|
}
|
||||||
|
|
||||||
|
function sayHello() { /**Cette méthode permet de vérifier que la console de log est activée. **/
|
||||||
|
console.log("Hello Everypony !");
|
||||||
|
}
|
||||||
|
|
||||||
function initSelection() {
|
function initSelection() {
|
||||||
document.body.addEventListener("click", selection);
|
sayHello();
|
||||||
}
|
|
||||||
|
|
||||||
function selection(event) {
|
|
||||||
console.log(event.target.tagName);
|
|
||||||
var element = event.target;
|
|
||||||
element.classList.toggle("pink");
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user