Merge branch 'main' of https://git.etud.insa-toulouse.fr/mougnibas/projet-clicodrome
This commit is contained in:
commit
96052e1981
2 changed files with 14 additions and 10 deletions
12
index.html
12
index.html
|
@ -7,7 +7,7 @@
|
|||
<script> alert("click")</script>
|
||||
<link rel="stylesheet" href="" id="link-css">
|
||||
<link rel="stylesheet" href="./css/alerte.css">
|
||||
</head>Technologies
|
||||
</head>
|
||||
<body>
|
||||
<script src="./js/intro.js" deref></script>
|
||||
<script src="./js/element.js"></script>
|
||||
|
@ -15,9 +15,17 @@
|
|||
<script src="./js/main.js"></script>
|
||||
<script src="./js/alerte.js"></script>
|
||||
<script src="./js/collegue.js"></script>
|
||||
<div id="div_button_score" style="align-items: center;">
|
||||
|
||||
<div id="div_score" style=" display: flex; justify-content: center;">
|
||||
|
||||
</div>
|
||||
|
||||
<div id="div_button" style=" display: flex; justify-content: center;">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<table style="margin-top:10px ;">
|
||||
<thead>
|
||||
<th>nom</th>
|
||||
|
|
12
js/intro.js
12
js/intro.js
|
@ -4,22 +4,18 @@ document.addEventListener("click",firstClick)
|
|||
|
||||
|
||||
function firstClick(){
|
||||
let position_button=document.getElementById("div_button_score")
|
||||
let position_button=document.getElementById("div_button")
|
||||
let position_score=document.getElementById("div_score")
|
||||
|
||||
const score_aff = document.createElement("output")
|
||||
score_aff.innerText="SCORE"
|
||||
score_aff.id = "score_affichage"
|
||||
|
||||
|
||||
|
||||
const saut=document.createElement("div")
|
||||
|
||||
const click = document.createElement("button")
|
||||
click.innerText="click"
|
||||
|
||||
position_button.appendChild(score_aff)
|
||||
saut.appendChild(click)
|
||||
position_button.appendChild(saut)
|
||||
position_score.appendChild(score_aff)
|
||||
position_button.appendChild(click)
|
||||
|
||||
click.addEventListener("click",scoreCount)
|
||||
|
||||
|
|
Loading…
Reference in a new issue