-
Notifications
You must be signed in to change notification settings - Fork 66
/
index.html
102 lines (92 loc) · 2.98 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
<html>
<head>
<title>魔方游戏 online | Rubik cube</title>
<meta name="description" content="基于HTML的使用 Threejs 和 TypeScript 制作的3D魔方(rubik cube)游戏">
<meta property="keywords" content="魔方,rubik,Threejs,three,webgl,三维,cube,游戏,在线,minicode,online">
<meta property="og:title" content="RubikCube - 魔方">
<meta property="og:description" content="基于HTML的使用 Threejs 和 TypeScript 制作的3D魔方(rubik cube)游戏">
<meta property="og:keywords" content="魔方,rubik,Threejs,three,webgl,三维,cube,游戏,在线,minicode,online">
<meta property="author" content="王鹏飞">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
h1 {
position: fixed;
right: 5px;
bottom: 10px;
font-size: 18px;
font-weight: normal;
writing-mode: vertical-rl;
}
#container {
height: 100vh;
width: 100vw;
}
#status {
font-size: 18px;
position: absolute;
left: 0;
top: 0;
width: 100vw;
display: flex;
flex-wrap: wrap;
align-items: center;
/* color: white; */
}
.status-item {
margin-left: 20px;
display: flex;
align-items: center;
}
#order-select {
outline: none;
}
#disorder {
width: 50px;
display: none;
}
#restore {
width: 50px;
}
</style>
</head>
<body>
<div id="container"></div>
<div id="status">
<h1>魔方</h1>
<div class="status-item">
<label for="finish">状态: </label>
<span id="finish"></span>
</div>
<div class="status-item">
<label for="order-select">阶数: </label>
<select id="order-select">
<option value="2">2</option>
<option value="3" selected>3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</div>
<div class="status-item">
<button id="restore">还原</button>
</div>
<!-- comming soon -->
<div class="status-item">
<button id="disorder">打乱</button>
</div>
<div>
<a href="https://github.com/pengfeiw/rubiks-cube">查看源码</a>
</div>
</div>
<script type="module" src="./out-tsc/src/index.js"></script>
</body>
</html>