-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
111 lines (99 loc) · 3.09 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<html>
<head>
<title>ITF-2 WebGL Demo</title>
<meta charset="utf-8">
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="/imgs/favicon.ico">
<script src="build/three.min.js"></script>
<script type="text/javascript" src="examples/js/orbit.js"></script>
<style>
body {
margin: 0;
overflow: hidden;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-drag: none;
-khtml-user-drag: none;
}
canvas {
position: relative;
width: 100vw;
height: 100vh;
}
#info {
position: absolute;
top: 0px;
width: 100%;
padding: 1px;
box-sizing: border-box;
text-align: center;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
z-index: 1;
font-size: 0.5rem;
}
#dqboard {
position: absolute;
width: 100%;
height: 10%;
bottom: 0;
margin-bottom: 1.5rem;
}
/* 黒板 */
.blackboard {
width: 80%;
height: 100%;
margin: auto;
padding: 0.5rem;
color: #fff;
border: 1px solid #000;
border-radius: 3px;
box-shadow: 0 0 0 4px #fff inset;
background-color: rgba(0, 0, 0, 0.9);
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
display: flex;
align-items: center;
}
#message {
padding-left: 1rem;
font-size: 1rem;
}
.blink-after::after {
content: '<衛星をクリックして次へ>';
animation: blink 1.4s infinite;
}
/* 点滅 */
@keyframes blink {
50% {
opacity: 0;
}
}
@-webkit-keyframes blink {
50% {
opacity: 0;
}
}
</style>
</head>
<body oncontextmenu="return false;">
<canvas id="myCanvas"
style="position:fixed; top:0px; left:0px; width:100%; height:100%; z-index: 0; background-color: #000000;"></canvas>
<!-- その真上に、2D描画領域のためのdiv要素を配置 -->
<canvas id="canvas2d"
style="position:fixed; top:0px; left:0px; width:100%; height:100%; z-index: 1; background-color:rgba(0,0,0,0);"></canvas>
<div id="dqboard">
<div class="blackboard">
<div id="message1" class="blink-after">
<div id="area1">
ITF-2 webGL DEMO<br>
上下左右のボタンをクリックすると衛星を回転させることが出来ます.
</div>
</div>
</div>
</div>
</body>
</html>