Skip to content

Commit 41c67c7

Browse files
committed
Add container
1 parent 6e55d71 commit 41c67c7

File tree

2 files changed

+49
-2
lines changed

2 files changed

+49
-2
lines changed

blockly/src/dev/app.html.ejs

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,50 @@
99
<link rel="stylesheet" type="text/css" href="../css/common.css">
1010
<link rel="stylesheet" type="text/css" href="../css/<%= app %>.css">
1111

12+
<% if (app === "minecraft") { %>
13+
<style>
14+
body {
15+
margin: 0px;
16+
overflow: hidden;
17+
-moz-user-select: none;
18+
-webkit-user-select: none;
19+
-ms-user-select: none;
20+
}
21+
22+
#crosshair {
23+
/* centered on div */
24+
position: relative;
25+
top: 50%;
26+
left: 50%;
27+
margin: -16px 0 0 -16px;
28+
width: 32px;
29+
height: 32px;
30+
}
31+
32+
#stats {
33+
bottom: 0px;
34+
right: 0px;
35+
}
36+
37+
.logo {
38+
position: absolute;
39+
top: 5px;
40+
left: 5px;
41+
}
42+
43+
.errorMessage {
44+
text-align: center;
45+
width: 200px;
46+
margin: 20px auto;
47+
}
48+
49+
#container {
50+
width: 400px;
51+
height: 400px;
52+
}
53+
</style>
54+
<script type="text/javascript" src="https://s3.amazonaws.com/cdo-dist/cdo-voxel/bundle.js"></script>
55+
<% } %>
1256
<% if ((app === "maze" && options.levelId.indexOf('3_') === 0) ||
1357
(app === "webapp" && options.levelId.indexOf('ec_') === 0) ||
1458
(app === "studio" && options.levelId.indexOf('ec_') === 0) ||
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="svgMinecraft">
2-
</svg>
1+
<div id="container" width="500" height="500">
2+
<div id="crosshair"><img src="https://s3.amazonaws.com/cdo-dist/cdo-voxel/crosshair4.png"></div>
3+
</div>
4+
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="svgMinecraft"></svg>
5+
<!--TODO remove ^-->

0 commit comments

Comments
 (0)