81 lines
2.7 KiB
HTML
81 lines
2.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Détails</title>
|
|
<link rel="stylesheet" href="../css/style.css" />
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css"
|
|
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
|
|
crossorigin="anonymous"
|
|
/>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="section">
|
|
<div class="buttons-container">
|
|
<button id="projets" class="btn btn-primary">
|
|
<span> Mes projets </span>
|
|
</button>
|
|
</div>
|
|
<div id="datas">
|
|
<h5>
|
|
Métriques
|
|
</h5>
|
|
<h6>
|
|
Hygrométrie
|
|
</h6>
|
|
<h6>
|
|
température
|
|
</h6>
|
|
</div>
|
|
<div id="video"></div>
|
|
</div>
|
|
|
|
<footer>
|
|
<p>© 2024 Timelapse. All rights reserved.</p>
|
|
</footer>
|
|
|
|
<script
|
|
src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
|
|
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
|
|
crossorigin="anonymous"
|
|
></script>
|
|
<script
|
|
src="https://cdn.jsdelivr.net/npm/popper.js@1.14.7/dist/umd/popper.min.js"
|
|
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
|
|
crossorigin="anonymous"
|
|
></script>
|
|
<script
|
|
src="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/js/bootstrap.min.js"
|
|
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>
|
|
</body>
|
|
</html>
|