forked from dissimulate/Tearable-Cloth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (34 loc) · 1.08 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
<!DOCTYPE html>
<html>
<head>
<title>Tearable Cloth</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<canvas id="c"></canvas>
<a target="_blank" href="http://codepen.io/suffick/pen/fhjvk" id="p">Like playing with physics? Click here!</a>
<div id="info">
<div id="top">
<a target="_blank" id="site" href="javascript:alert('Currently down, sorry!');">my website</a>
<a id="close" href="">close</a>
</div>
<p>
<br>- Tear the cloth with your mouse.
<br>
<br>- Right click and drag to cut the cloth
<br>
<br>- Reduce physics_accuracy if it's laggy.
<br>
<br>
</p>
</div>
<script type="text/javascript">
document.getElementById('close').onmousedown = function(e) {
e.preventDefault();
document.getElementById('info').style.display = 'none';
return false;
};
</script>
<script type="text/javascript" src="Cloth.js"></script>
</body>
</html>