mes trucs
This commit is contained in:
@@ -14,24 +14,25 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="section">
|
||||
<div class="buttons-container">
|
||||
<button id="projets" class="btn btn-primary">
|
||||
<span> Mes projets </span>
|
||||
</button>
|
||||
<div id="section" class="container mt-5">
|
||||
<div>
|
||||
<div class="buttons-container" style="float: left; width: 20%;">
|
||||
<button id="projets" class="btn btn-primary">
|
||||
<span> Home </span>
|
||||
</button>
|
||||
</div>
|
||||
<h3 id="name_project" class="text-black" style="float: left; width: 50%;"></h3>
|
||||
</div>
|
||||
<div id="datas">
|
||||
<h5>
|
||||
Métriques
|
||||
</h5>
|
||||
<h6>
|
||||
Hygrométrie
|
||||
</h6>
|
||||
<h6>
|
||||
température
|
||||
</h6>
|
||||
</div>
|
||||
<div id="video"></div>
|
||||
<table class="table table-striped" id="table-metrics">
|
||||
<thead class="bg-blue-600 text-black">
|
||||
<tr>
|
||||
<th> Métriques </th>
|
||||
<th> Hygrométrie </th>
|
||||
<th> température </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
@@ -53,28 +54,8 @@
|
||||
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
document.getElementById("projets").addEventListener("click", () => {
|
||||
window.location.href = "projets.html";
|
||||
});
|
||||
});
|
||||
|
||||
const iframeString = `<iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ?autoplay=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>`;
|
||||
|
||||
const tempContainer = document.createElement("div");
|
||||
|
||||
// Set the innerHTML of the temporary container to the iframe string
|
||||
tempContainer.innerHTML = iframeString;
|
||||
|
||||
// Get the first child element of the temporary container (which should be the iframe element)
|
||||
const iframe = tempContainer.firstChild;
|
||||
|
||||
// Add the iframe element to the DOM
|
||||
document.body.appendChild(iframe);
|
||||
|
||||
// Add the video element to the DOM
|
||||
document.body.appendChild(video);
|
||||
</script>
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||
<script src="../js/globals.js"></script>
|
||||
<script src="../js/projet_detail.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user