index.html 6.71 KB
Newer Older
Ysragh Heiden's avatar
Ysragh Heiden committed
1
2
<!DOCTYPE html>
<html>
Marco Kellershoff's avatar
Marco Kellershoff committed
3
4
5
6
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>PWNY CodeTest</title>
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
    <style>
@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 400;
  src: local('Source Code Pro'), local('SourceCodePro-Regular'), url(SourceCodePro-Regular.woff) format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
html,body {overflow:hidden;}
html,body,div,iframe {margin:0;padding:0;border:0 none;}
#drawer button,
#drawer select {font-family:"Helvetica Neue", "Calibri Light", Roboto, sans-serif;border:1px solid #333;margin:3px;font-size:1rem;padding:0.75rem 1.35rem;}
#app iframe {display:block;border:1px solid #444;margin-top:0;}
html,body,#app{margin:0;padding:0;width:100%;height:100%;}
@media (max-width: 1000px) {
  body #app #logo {display: none;}
  body #app {margin-top: 25px;}
}
Marco Kellershoff's avatar
Marco Kellershoff committed
25
26
27
28
29
30
31
32
33
34
#table {
  display: table;
  width: 100%;
  height: calc(100% - 111px);
}
#table-row {
  display: table-row;
  width: 100%;
  height: 100%;
}
35
36
37
#app {
  display: none;
  box-sizing: border-box;
Marco Kellershoff's avatar
Marco Kellershoff committed
38
  margin: 111px 0 0 0;
39
  width: 100%;
Marco Kellershoff's avatar
Marco Kellershoff committed
40
  height: 100%;
41
42
43
44
45
  overflow-x: hidden;
  overflow-y: auto;
  overflow-scrolling: touch;
  padding: 20px;
}
Marco Kellershoff's avatar
Marco Kellershoff committed
46
47
48
49
50
51
52
53
54
55
56
#col1, #col2 {height:100%;width:50%;display:table-cell;}
#col1 .ace_editor {width:100%;height:100%;}
#col2 iframe {position:relative;top:-10px;left:10px;width:100%;height:100%;}
#app #col2 iframe.fullscreen {
  position:relative;top:0;left:0;width:100%;height:100%;
  border: 0 none;
  margin-top: 0;
}
#app #table.fullscreen {
  height: 100%;
}
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
#btn_run {
  background-color: #82BF56;
  border-bottom: 5px solid #669644;
  text-shadow: 0px -2px #669644;
}
#file {
  display:none;
}
#btn_file {
  background-color: #56bf8f;
  border-bottom: 5px solid #36aa7a;
  text-shadow: 0px -2px #36aa7a;
}
#btn_add {
  background-color: #F2CF66;
  border-bottom: 5px solid #D1B358;
  text-shadow: 0px -2px #D1B358;
}
#btn_delete {
  background-color: #E74C3C;
  border-bottom: 5px solid #BD3E31;
  text-shadow: 0px -2px #BD3E31;
}
#btn_share {
  background-color: #3498DB;
  border-bottom: 5px solid #2980B9;
  text-shadow: 0px -2px #2980B9;
}
#templates {
  background-color: #112233;
  border-bottom: 5px solid #051525;
  text-shadow: 0px -2px #051525;
}
#syntax {
  background-color: #226666;
  border-bottom: 5px solid #155050;
  text-shadow: 0px -2px #155050;
}
#syntax option:checked {
  background-color:#033;
}
#logo {
  position: fixed;
  top: 0;
  width: 199px;
  height: 130px;
}
#drawer-toggle-label:before {
  content: "";
  display: block;
  position: absolute;
  height: 2px;
  width: 24px;
  background: #fff;
  left: 13px;
  top: 18px;
  box-shadow: 0 6px 0 #fff, 0 12px 0 #fff;
}

#drawer-toggle-label {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 50px;
  width: 50px;
  z-index: 1;
  background: transparent;
}

#drawer-toggle { display: none; }

#drawer {
  position: fixed;
  top: 0;
  padding-top: 50px;
  height: 100%;
  width: 250px;
  background: #2f2f2f;
  overflow-x: hidden;
  overflow-y: auto;
  left: -250px;
  background:"";
}

#drawer ul {
  list-style: none;
  padding: 0;
}

#drawer li a {
  display: block;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-family: 'Source Code Pro';
}

#drawer li button,
#drawer li select {
  font-family: 'Source Code Pro';
  position: relative;
  padding: 10px 40px;
  margin: 0px 10px 10px 10px;
  border-radius: 10px;
  font-size: 18px;
  color: #FFF;
  text-decoration: none;
}

#drawer li button:active {
  transform: translate(0px,5px);
  -webkit-transform: translate(0px,5px);
  border-bottom: 1px solid;
}

#drawer li {
  margin: 0;
  width: 100%;
  padding: 10px 0
}

#drawer-toggle:checked ~ #drawer-toggle-label,
#drawer-toggle:checked ~ header { left: calc(100% - 100px); }

#drawer-toggle:checked ~ #drawer {
  width: calc(100% - 50px);
  left: 0;
}

Marco Kellershoff's avatar
Marco Kellershoff committed
187
#drawer-toggle:checked ~ #app { margin-left: 300px; width: calc(100% - 300px); }
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
  @media screen and (min-width: 380px) {
    #drawer-toggle:checked ~ #drawer-toggle-label,
    #drawer-toggle:checked ~ #drawer {
      width: 300px;
      left: 0;
    }
}


.loader {
  margin: 5% auto;
  display: none;
  border-radius: 50%;
  width: 180px;
  height: 180px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader {
  border-top: 16px solid #3498DB;
  border-right: 16px solid #82BF56;
  border-bottom: 16px solid #E74C3C;
  border-left: 16px solid #F2CF66;
}
    </style>
Marco Kellershoff's avatar
Marco Kellershoff committed
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
  </head>
  <body>
    <input id="drawer-toggle" type="checkbox">
    <label id="drawer-toggle-label" for="drawer-toggle"></label>
    <nav id="drawer"></nav>
    <div id="loading" class="loader"></div>
    <div id="app"></div>
    <div id="shareDialogue" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="Share URL" aria-hidden="true">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
            <h5 class="modal-title">Share</h5>
          </div>
          <div class="modal-body">
            <div class="input-group">
              <input type="text" class="form-control" id="shareUrlBox" readonly="true">
              <span class="input-group-btn">
                <button id="copyShareUrlButton" data-dismiss="modal" data-clipboard-target="#shareUrlBox" class="btn btn-success" type="button">Copy &amp; Close</button>
              </span>
            </div>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
          </div>
        </div>
      </div>
    </div>
    <script src="assets/ace/src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
    <script src="assets/ace/src-noconflict/ext-language_tools.js" type="text/javascript" charset="utf-8"></script>
    <script src="assets/lzma.js" type="text/javascript" charset="utf-8"></script>
    <script src="assets/pwny.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" href="assets/bootstrap/bootstrap.min.css" />
    <link rel="stylesheet" href="assets/bootstrap/themes/slate/bootstrap.min.css" />
    <script src="assets/jquery/jquery-3.2.1.min.js"></script>
    <script src="assets/bootstrap/bootstrap.min.js"></script>
    <script src="assets/clipboard.min.js"></script>
  </body>
Ysragh Heiden's avatar
Ysragh Heiden committed
264
</html>