Skip to content
Snippets Groups Projects
Commit a4eb5abe authored by DESERT Romain's avatar DESERT Romain
Browse files

refonte visuel du code

parent b2eb776b
No related branches found
No related tags found
No related merge requests found
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Three.js</title> <title>Three.js</title>
<style> <style>
body { margin: 0; } body {
canvas { width: 100%; height: 100% } margin: 0;
.centre{text-align: center;} }
</style>
canvas {
width: 100%;
height: 100%
}
.centre {
text-align: center;
}
</style>
</head> </head>
<body> <body>
<!-- API importe du site de Three.js --> <!-- 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 async src="https://unpkg.com/es-module-shims@1.3.6/dist/es-module-shims.js"></script>
<script type="importmap"> <script type="importmap">
{ {
"imports": { "imports": {
"three": "https://threejs.org/build/three.module.js", "three": "https://threejs.org/build/three.module.js",
"three/addons/": "https://threejs.org/examples/jsm/" "three/addons/": "https://threejs.org/examples/jsm/"
} }
} }
</script> </script>
<!-- JQuery pour afficher les erreurs --> <!-- JQuery pour afficher les erreurs -->
<script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
"></script> <!-- Un titre centre -->
<!-- Un titre centre --> <h1 class="centre"> projet peinture </h1>
<h1 class="centre"> projet peinture </h1> <div id="webGL" class="centre"></div>
<div id="webGL" class="centre"></div> <!-- Mon script avec un chemin relatif -->
<!-- Mon script avec un chemin relatif --> <script type="module" src="projet.js"></script>
<script type="module" src="projet.js"></script> <p class="centre"> projet </p>
<p class="centre"> projet </p>
</body> </body>
</html> </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