-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (34 loc) · 1.74 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Interactive 3D Character with Three.js | Codrops</title>
<meta name="description" content="Demo for the tutorial on how to add an interactive 3D character to a website." />
<meta name="keywords" content="3d model, three.js, tutorial, interactive, website, web development" />
<meta name="author" content="Codrops" />
<link rel="shortcut icon" href="img/favicon.ico">
<link rel="stylesheet" type="text/css" href="css/base.css" />
<script>document.documentElement.className="js";var supportsCssVars=function(){var e,t=document.createElement("style");return t.innerHTML="root: { --tmp-var: bold; }",document.head.appendChild(t),e=!!(window.CSS&&window.CSS.supports&&window.CSS.supports("font-weight","var(--tmp-var)")),t.parentNode.removeChild(t),e};supportsCssVars()||alert("Please view this demo in a modern browser that supports CSS Variables.");</script>
</head>
<body>
<div class="loading" id="js-loader">
<div class="loader"></div>
</div>
<div class="wrapper">
<!-- The canvas element is used to draw the 3D scene -->
<canvas id="c"></canvas>
</div>
<div class="frame">
<h1 class="frame__title"></h1>
</div>
<!-- The main Three.js file -->
<script src="js/three.min.js"></script>
<!-- This brings in the ability to load custom 3D objects in the .gltf file format. Blender allows the ability to export to this format out the box -->
<script src="js/GLTFloader.js"></script>
<script src="./js/face-api.js"></script>
<script src="js/faceDetectionControls.js"></script>
<script src="js/commons.js"></script>
<script src="js/script.js"></script>
</body>
</html>