Skip to content

Commit 194322f

Browse files
Prepare for PWA
1 parent 4e261c2 commit 194322f

13 files changed

+37
-76
lines changed

apple-touch-icon.png

18.6 KB
Loading

css/ide.css

+1-16
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,8 @@ html, body {
66
background: url("../images/logo_black.svg") center center / 33% no-repeat #1b1c1d; /* Color from Semantic UI */
77
}
88

9-
#judge0-site-navigation {
10-
border-radius: 0;
11-
border: none;
12-
min-height: 3rem;
13-
}
14-
15-
#judge0-header {
16-
border-radius: 0;
17-
padding: 0;
18-
}
19-
20-
#judge0-logo {
21-
width: 3rem;
22-
}
23-
249
.judge0-file-menu {
25-
min-width: 9rem !important;
10+
min-width: 15rem !important;
2611
}
2712

2813
#judge0-status-line, .lm_tab {

favicon-96x96.png

8.15 KB
Loading

favicon.html

-53
This file was deleted.

favicon.ico

-11.3 KB
Binary file not shown.

favicon.svg

+3
Loading

images/icon.png

-56.9 KB
Binary file not shown.

images/icon_var2_rounded_512.png

58.6 KB
Loading

index.html

+9-6
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,18 @@
6262
<meta property="twitter:image" content="https://raw.githubusercontent.com/judge0/ide/refs/heads/master/.github/wallpaper.png">
6363
<meta property="twitter:description" content="Free and open-source online code editor that allows you to write and execute code from a rich set of languages.">
6464

65-
<link rel="icon" sizes="192x192" href="/favicon.ico" type="image/x-icon">
66-
<link rel="apple-touch-icon" href="/favicon.ico" type="image/x-icon">
67-
<link rel="mask-icon" href="/favicon.ico" color="black" type="image/x-icon">
65+
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />
66+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
67+
<link rel="shortcut icon" href="/favicon.ico" />
68+
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
69+
<meta name="apple-mobile-web-app-title" content="Judge0 IDE" />
70+
<link rel="manifest" href="/site.webmanifest" />
6871
</head>
6972

7073
<body>
71-
<div id="judge0-site-navigation" class="ui top attached inverted borderless mini menu">
74+
<div id="judge0-site-navigation" class="ui top fixed inverted borderless menu">
7275
<a id="judge0-header" href="https://judge0.com" target="_blank" class="header item judge0-hidden-for-minimal-style">
73-
<img id="judge0-logo" src="./images/icon.png" />
76+
<img id="judge0-logo" src="./images/icon_var2_rounded_512.png" />
7477
</a>
7578
<div class="ui simple dropdown item">
7679
<span class="text">File</span>
@@ -152,7 +155,7 @@
152155
</div>
153156
</div>
154157

155-
<div id="judge0-status-line" class="ui bottom right attached mini label"></div>
158+
<div id="judge0-status-line" class="ui bottom right attached label"></div>
156159

157160
<!-- <i class="copyright outline icon"></i>2016-2025 Judge0 d.o.o. – All Rights Reserved. -->
158161
</body>

js/ide.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,9 @@ function clear() {
449449
}
450450

451451
function refreshSiteContentHeight() {
452-
$("#judge0-site-content").height($(window).height() - $("#judge0-site-navigation").outerHeight());
452+
const navigationHeight = $("#judge0-site-navigation").outerHeight();
453+
$("#judge0-site-content").height($(window).height() - navigationHeight);
454+
$("#judge0-site-content").css("padding-top", navigationHeight);
453455
}
454456

455457
function refreshLayoutSize() {

site.webmanifest

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "Judge0 IDE",
3+
"short_name": "Judge0 IDE",
4+
"icons": [
5+
{
6+
"src": "/web-app-manifest-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png",
9+
"purpose": "maskable"
10+
},
11+
{
12+
"src": "/web-app-manifest-512x512.png",
13+
"sizes": "512x512",
14+
"type": "image/png",
15+
"purpose": "maskable"
16+
}
17+
],
18+
"theme_color": "#ffffff",
19+
"background_color": "#ffffff",
20+
"display": "standalone"
21+
}

web-app-manifest-192x192.png

20.9 KB
Loading

web-app-manifest-512x512.png

78.6 KB
Loading

0 commit comments

Comments
 (0)