-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (44 loc) · 1.79 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<html>
<head>
<link rel="icon" type="image/png" href="https://raw.githubusercontent.com/garismiring-an8/garismiring-an8.github.io/master/an8.png"/>
<link rel="icon" type="image/png" href="https://raw.githubusercontent.com/garismiring-an8/garismiring-an8.github.io/master/an8.png"/>
<title>{\an8}</title>
<style>
body {
margin: 0;
}
canvas {
display: block;
}
</style>
</head>
<body>
<div style="display:flex;width:100%;height:100%;position:absolute;color:#f0db4f;justify-content:center;align-items:center">
</div>
<script src="https://threejs.org/build/three.js"></script>
<script>
var scene = new THREE.Scene();
var camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
var renderer = new THREE.WebGLRenderer();
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);
var geometry = new THREE.PlaneGeometry(6, 6, 32);
var texture = new THREE.TextureLoader().load('https://raw.githubusercontent.com/garismiring-an8/garismiring-an8.github.io/master/an8.png');
var material = new THREE.MeshBasicMaterial({ map: texture, side: THREE.DoubleSide });
var plane = new THREE.Mesh(geometry, material);
scene.add(plane);
camera.position.z = 20;
var animate = function () {
requestAnimationFrame(animate);
plane.rotation.y += 0.03;
renderer.render(scene, camera);
};
animate();
</script>
<script>
document.body.addEventListener('click', () => {
window.open("https://drive.google.com/open?id=17KuS4NimVIDxUoa6zsOlReEgS4Bn2znh", "_blank")
})
</script>
</body>
</html>