Skip to content
Snippets Groups Projects
Commit d26c6e6a authored by PETRAZOLLER Johan's avatar PETRAZOLLER Johan
Browse files

html

parent c1463be3
No related branches found
No related tags found
No related merge requests found
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Projet</title>
<style>
body {
margin: 0;
display: flex;
flex-direction: column;
align-items: center; /* Centre horizontalement */
justify-content: center; /* Centre verticalement */
height: 100vh; /* Prend toute la hauteur de l'écran */
overflow: hidden; /* Empêche les barres de défilement */
}
#webGL {
display: flex;
justify-content: center;
align-items: center;
width: 100vw;
}
</style>
</head>
<body>
<!-- API importe du site de Three.js -->
<script async src="https://unpkg.com/es-module-shims@1.3.6/dist/es-module-shims.js"></script>
<script type="importmap">
{
"imports": {
"three": "https://threejs.org/build/three.module.js",
"three/addons/": "https://threejs.org/examples/jsm/"
}
}
</script>
<!-- JQuery pour afficher les erreurs -->
<script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<!-- Un titre centre -->
<h1 class="centre"> Projet</h1>
<div id="webGL" class="centre"></div>
<!-- Mon script avec un chemin relatif -->
<script type="module" src="scriptProjet.js"></script>
<p class="centre"> Kilian / Jeremie / Johan
</p>
</body>
</html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment