-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
133 lines (120 loc) · 4.07 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<html>
<head>
<title>
Code for Schools Python Editor
</title>
<link rel="shortcut icon" type="image/jpg" href="robot_512.png"/>
<style type="text/css" media="screen">
.title {
margin: 5px auto;
text-align:center;
font-family: Trebuchet MS;
font-weight: bold;
color: #FF5500
}
.logo-image {
height:116px;
}
.titlebar {
display:block;
margin: auto;
border-top: 1px solid;
border-bottom: 1px solid;
}
.editorframe {
display:block;
border:0;
margin: 0px auto;
}
.sk-chase {
width: 40px;
height: 40px;
position: relative;
animation: sk-chase 2.5s infinite linear both;
margin: 200px auto;
}
.sk-chase-dot {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
animation: sk-chase-dot 2.0s infinite ease-in-out both;
}
.sk-chase-dot:before {
content: '';
display: block;
width: 25%;
height: 25%;
background-color: #00f;
border-radius: 100%;
animation: sk-chase-dot-before 2.0s infinite ease-in-out both;
}
.sk-chase-dot:nth-child(1) { animation-delay: -1.1s; }
.sk-chase-dot:nth-child(2) { animation-delay: -1.0s; }
.sk-chase-dot:nth-child(3) { animation-delay: -0.9s; }
.sk-chase-dot:nth-child(4) { animation-delay: -0.8s; }
.sk-chase-dot:nth-child(5) { animation-delay: -0.7s; }
.sk-chase-dot:nth-child(6) { animation-delay: -0.6s; }
.sk-chase-dot:nth-child(1):before { animation-delay: -1.1s; }
.sk-chase-dot:nth-child(2):before { animation-delay: -1.0s; }
.sk-chase-dot:nth-child(3):before { animation-delay: -0.9s; }
.sk-chase-dot:nth-child(4):before { animation-delay: -0.8s; }
.sk-chase-dot:nth-child(5):before { animation-delay: -0.7s; }
.sk-chase-dot:nth-child(6):before { animation-delay: -0.6s; }
@keyframes sk-chase {
100% { transform: rotate(360deg); }
}
@keyframes sk-chase-dot {
80%, 100% { transform: rotate(360deg); }
}
@keyframes sk-chase-dot-before {
50% {
transform: scale(0.4);
} 100%, 0% {
transform: scale(1.0);
}
}
</style>
<script>
function getURL() {
return "editor.html?" + window.location.search.split("?")[1];
}
function enableEditor()
{
var editor = document.getElementById("editor");
editor.src = getURL();
editor.onload = function() {
editor.style.display = "block";
document.getElementById("spinner").style.display= "none";
editor.onload = null;
//alert("Done");
};
}
</script>
</head>
<body onload="enableEditor()" onresize="resize()">
<div style="width:100%; height:100%;" id = "wrapper">
<div class = "titlebar">
<div style="display:flex; align-items: center; justify-content: center; margin: 5px auto">
<img class="logo-image" src = "logo.svg" height="200px"/>
</div>
</div>
<div id="spinner" class="sk-chase">
<div class="sk-chase-dot"></div>
<div class="sk-chase-dot"></div>
<div class="sk-chase-dot"></div>
<div class="sk-chase-dot"></div>
<div class="sk-chase-dot"></div>
<div class="sk-chase-dot"></div>
</div>
<iframe id = "editor" class = "editorframe" width = "80%" height = "90%" allow='clipboard-write' allowFullScreen style="display:none;"></iframe>
</div>
<script>
function resize() {
document.getElementById("editor").height = Math.max(document.getElementById("wrapper").clientHeight - 128, 580) + "px";
}
resize();
</script>
</body>
</html>