Skip to content

Commit 149d307

Browse files
authored
Codeit 3.3.0
2 parents 6797861 + ea8afaf commit 149d307

File tree

17 files changed

+757
-185
lines changed

17 files changed

+757
-185
lines changed

404.html

Lines changed: 61 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,72 @@
11
<!DOCTYPE html>
2-
<html style="background:#000;height: 100%;">
2+
<html>
3+
34
<head>
45
<meta charset="utf-8">
5-
<title>404 not found</title>
6-
<meta name="theme-color" content="#000">
6+
<title>Codeit - Page not found</title>
7+
<meta name="theme-color" content="#0e0e0e">
78
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover,shrink-to-fit=no">
89
<link rel="shortcut icon" href="/icons/app-favicon.png">
910
<style>
10-
.quote::before {
11-
content: '"';
12-
color: gray;
13-
opacity: 0.5;
14-
font-size: 50px;
15-
position: absolute;
16-
top: -40px;
17-
left: -8px;
11+
12+
@font-face {
13+
font-family: 'Inter';
14+
font-style: normal;
15+
font-weight: 100 900;
16+
font-display: swap;
17+
src: url('/fonts/Inter/Inter.var.woff2') format('woff2');
18+
font-named-instance: 'Regular';
19+
}
20+
21+
22+
html {
23+
height: 100%;
24+
background: #0e0e0e;
25+
color: #d4d5d7;
26+
font-family: 'Inter', system-ui, sans-serif;
27+
}
28+
29+
body {
30+
display: flex;
31+
flex-flow: column;
32+
justify-content: center;
33+
height: 100%;
34+
margin: 0;
35+
max-width: 500px;
36+
margin: auto;
37+
padding: 0 20px;
1838
}
39+
40+
.title {
41+
font-size: 19px;
42+
margin-top: 0;
43+
margin-bottom: 0;
44+
position: relative;
45+
text-align: center;
46+
}
47+
48+
49+
html, body {
50+
text-rendering: optimizeLegibility;
51+
font-feature-settings: "kern";
52+
-webkit-font-feature-settings: "kern";
53+
touch-action: manipulation;
54+
overscroll-behavior: none;
55+
user-select: none;
56+
-webkit-user-select: none;
57+
-webkit-touch-callout: none;
58+
-webkit-font-smoothing: antialiased;
59+
-webkit-tap-highlight-color: transparent;
60+
-webkit-text-size-adjust: 100%;
61+
-webkit-overflow-scrolling: touch;
62+
-webkit-text-size-adjust: none;
63+
}
64+
1965
</style>
2066
</head>
21-
<body style="
22-
display: flex;
23-
flex-flow: column;
24-
justify-content: center;
25-
height: 100%;
26-
margin: 0;
27-
color: #fff;
28-
font-family: system-ui;
29-
max-width: 500px;
30-
margin: auto;
31-
padding: 0 20px;
32-
" ontouchstart>
33-
<p style="
34-
font-size: 19px;
35-
line-height: 1.5;
36-
margin-bottom: 40px;
37-
margin-top: 0;
38-
position: relative;
39-
" class="quote">Of course everything in the world has been thought of. But what about everything that's not yet in the world? There's way more of that, and none of it's been thought of.</p>
40-
<p style="text-align:right;font-style:italic;color:gray;margin-top: 0;margin-bottom: 0;"><a style="
41-
color: hsl(0deg 0% 66%);
42-
">- Bill Wurtz</a><br><br>404 not found</p>
67+
68+
<body ontouchstart="">
69+
<p class="title">Page not found</p>
4370
</body>
44-
</html>
4571

72+
</html>

api/link.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,13 @@ const html = `
6262
<!-- <meta property="og:description" content="Run JavaScript projects, code your ideas, and share it all on Codeit."> -->
6363
<meta property="og:url" content="https://codeit.codes">
6464
<meta property="og:image" content="https://codeit.codes/images/banner-og.png">
65-
<meta property="og:type" content="website">
65+
<meta property="og:type" content="video.other">
6666
<meta property="og:site_name" content="Codeit">
67+
<meta property="og:video:url" content="https://codeit.codes/api/link?url=`+ query.url +`">
68+
<meta property="og:video:secure_url" content="https://codeit.codes/api/link?url=`+ query.url +`">
69+
<meta property="og:video:type" content="text/html">
70+
<meta property="og:video:width" content="1280">
71+
<meta property="og:video:height" content="720">
6772
6873
<meta property="twitter:title" content="`+ title +`">
6974
<meta property="twitter:site" content="@codeitcodes">
@@ -76,6 +81,8 @@ const html = `
7681
<meta name="twitter:player:width" content="800">
7782
<meta name="twitter:player:height" content="600">
7883
84+
<link rel="alternate" type="application/json+oembed" href="https://codeit.codes/api/oembed?url=`+ query.url +`&format=json" title="`+ title +`">
85+
7986
<meta name="referrer" content="default">
8087
<meta name="keywords" content="code editor, version control tools, source code versioning, source code management tools, python, jquery demo, html, git, how to, bootstrap, jquery, javascript, javascript tutorial, javascript tutorial for beginners, javascript programming, html web form, create form in html, responsive web design, html web design, html design, responsive website development, html5 tutorial, html5 css3, html5 development, web design software, web development software, git tutorial, git howto, git repository, git command, git source code, top programming languages to learn, best programming language, best computer language, open source, open source code, open source applications, source code editor, software development tools, development tool, software developer tools list, programmer tool, web application development software">
8188
<link rel="canonical" href="https://codeit.codes/">

bottomfloat.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,19 @@ function playPushAnimation(element) {
7171
pushWrapper.innerHTML = pushIcon;
7272

7373
// push when clicked on button
74-
pushWrapper.addEventListener('click', () => {
74+
pushWrapper.addEventListener('click', async () => {
7575

7676
// get selected file element
7777
let selectedEl = fileWrapper.querySelector('.file.modified[sha="'+ selectedFile.sha +'"]');
7878

7979
// if selected file element is modified
8080
if (selectedEl) {
8181

82+
const dialogResp = await checkPushDialogs();
83+
84+
if (dialogResp === 'return') return;
85+
86+
8287
// play push animation
8388
playPushAnimation(pushWrapper);
8489

0 commit comments

Comments
 (0)