Skip to content

Commit 7494a2c

Browse files
Merge pull request #2636 from Sourabh782/rubiks-cube
Added Rubik's Cube Extension
2 parents 75686ff + abf5d8a commit 7494a2c

File tree

7 files changed

+151
-0
lines changed

7 files changed

+151
-0
lines changed

Rubik's Cube/3bfd9608.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Rubik's Cube/index.html

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<html>
2+
<head>
3+
<title>Rubik cube</title>
4+
<meta name="description" content="rubiks cube" />
5+
<meta property="keywords" content="rubiks cube online" />
6+
<meta property="og:title" content="RubikCube" />
7+
<meta property="og:description" content="html css js" />
8+
<meta property="og:keywords" content="rubiks" />
9+
<meta property="author" content="Sourabh" />
10+
<meta
11+
name="viewport"
12+
content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"
13+
/>
14+
<style>
15+
* {
16+
margin: 0;
17+
padding: 0;
18+
box-sizing: border-box;
19+
}
20+
body {
21+
height: 500px;
22+
width: 500px;
23+
}
24+
h1 {
25+
position: fixed;
26+
right: 5px;
27+
bottom: 10px;
28+
font-size: 18px;
29+
font-weight: 400;
30+
writing-mode: vertical-rl;
31+
}
32+
#container {
33+
height: 100%;
34+
width: 100%;
35+
}
36+
#status {
37+
font-size: 18px;
38+
position: absolute;
39+
left: 0;
40+
top: 0;
41+
width: 100vw;
42+
display: flex;
43+
flex-wrap: wrap;
44+
align-items: center;
45+
}
46+
.status-item {
47+
margin-left: 20px;
48+
display: flex;
49+
align-items: center;
50+
}
51+
#order-select {
52+
outline: 0;
53+
margin-left: 5px;
54+
}
55+
#disorder {
56+
width: 50px;
57+
display: none;
58+
}
59+
#restore {
60+
width: 50px;
61+
}
62+
</style>
63+
<link
64+
rel="preload"
65+
href="./3bfd9608.js"
66+
as="script"
67+
crossorigin="anonymous"
68+
/>
69+
</head>
70+
<body>
71+
<div id="container">
72+
<div id="status">
73+
<div class="status-item">
74+
<label for="finish">State :</label> <span id="finish"></span>
75+
</div>
76+
<div class="status-item">
77+
<label for="order-select">Order :</label>
78+
<select id="order-select">
79+
<option value="2">2</option>
80+
<option value="3" selected="">3</option>
81+
<option value="4">4</option>
82+
</select>
83+
</div>
84+
<div class="status-item"><button id="restore">Restore</button></div>
85+
</div>
86+
</div>
87+
<script type="module" src="./3bfd9608.js"></script>
88+
</body>
89+
</html>

Rubik's Cube/manifest.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "Rubiks Cube",
3+
"version": "1.0.0",
4+
"description": "An simple rubiks cube game",
5+
"manifest_version": 3,
6+
"author": "Sourabh singh rawat",
7+
"action":{
8+
"default_popup": "index.html",
9+
"default_title": "Rubiks Cube"
10+
}
11+
}

Rubik's Cube/sw.js

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Rubik's Cube/sw.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)