Skip to content

Commit ec7f78b

Browse files
Add sw.js
1 parent 194322f commit ec7f78b

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed

index.html

+9-4
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
<script type="text/javascript" src="js/ui.js"></script>
4040
<link type="text/css" rel="stylesheet" href="css/ide.css">
4141

42-
<title>Judge0 IDE - Free and open-source online code editor.</title>
43-
<meta name="title" content="Judge0 IDE - Free and open-source online code editor.">
42+
<title>Judge0 IDE - Online code compiler and editor</title>
43+
<meta name="title" content="Judge0 IDE - Online code compiler and editor">
4444
<meta name="description" content="Free and open-source online code editor that allows you to write and execute code from a rich set of languages.">
4545
<meta name="keywords" content="online editor, online code editor, online ide, online compiler, online interpreter, run code online, learn programming online,
4646
online debugger, programming in browser, online code runner, online code execution, debug online, debug C code online, debug C++ code online,
@@ -49,7 +49,7 @@
4949

5050
<meta property="og:url" content="https://ide.judge0.com">
5151
<meta property="og:type" content="website">
52-
<meta property="og:title" content="Judge0 IDE - Free and open-source online code editor.">
52+
<meta property="og:title" content="Judge0 IDE - Online code compiler and editor">
5353
<meta property="og:image" content="https://raw.githubusercontent.com/judge0/ide/refs/heads/master/.github/wallpaper.png">
5454
<meta property="og:image:alt" content="Judge0 IDE">
5555
<meta property="og:description" content="Free and open-source online code editor that allows you to write and execute code from a rich set of languages.">
@@ -58,7 +58,7 @@
5858

5959
<meta property="twitter:url" content="https://ide.judge0.com">
6060
<meta property="twitter:card" content="summary_large_image">
61-
<meta property="twitter:title" content="Judge0 IDE - Free and open-source online code editor.">
61+
<meta property="twitter:title" content="Judge0 IDE - Online code compiler and editor">
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

@@ -158,5 +158,10 @@
158158
<div id="judge0-status-line" class="ui bottom right attached label"></div>
159159

160160
<!-- <i class="copyright outline icon"></i>2016-2025 Judge0 d.o.o. – All Rights Reserved. -->
161+
<script>
162+
if ("serviceWorker" in navigator) {
163+
navigator.serviceWorker.register("sw.js").then(() => console.log("Service Worker Registered"));
164+
}
165+
</script>
161166
</body>
162167
</html>

site.webmanifest

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
{
22
"name": "Judge0 IDE",
33
"short_name": "Judge0 IDE",
4+
"description": "Online code compiler and editor",
5+
"display": "standalone",
6+
"start_url": "/",
7+
"scope": "/",
8+
"theme_color": "#ffffff",
9+
"background_color": "#ffffff",
410
"icons": [
511
{
612
"src": "/web-app-manifest-192x192.png",
713
"sizes": "192x192",
8-
"type": "image/png",
9-
"purpose": "maskable"
14+
"type": "image/png"
1015
},
1116
{
1217
"src": "/web-app-manifest-512x512.png",
1318
"sizes": "512x512",
1419
"type": "image/png",
15-
"purpose": "maskable"
20+
"purpose": "any maskable"
1621
}
17-
],
18-
"theme_color": "#ffffff",
19-
"background_color": "#ffffff",
20-
"display": "standalone"
22+
]
2123
}

sw.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
self.addEventListener("fetch", (event) => {
2+
event.respondWith(fetch(event.request));
3+
});

0 commit comments

Comments
 (0)