-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
117 lines (107 loc) · 3.48 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
<!DOCTYPE html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSPSH</title>
<script src="./Source/CSPSH.js" type="module"></script>
<link rel="stylesheet" href="index.css">
<link rel="shortcut icon" href="/Resources/CSPSH(withGrad).png" type="image/x-icon">
</head>
<body>
<!-- a demo code of addition in every language that CSPSH supports you can add your language by cloning the project. -->
<h1 style="margin: 1rem;">
Code Tabs:
</h1>
<div class="cspshBuildTabs" mode="simple">
<div class="cspsh" name="home" lang="html" theme="cspsh" linecount="true">
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home</title>
<script src="script.js">​</script>
<link href="style.css" rel="stylesheet">​</link>
</head>
<body>
<h1>Hello World</h1>
</body>
</html>
</div>
<div class="cspsh" name="style" lang="css" theme="monokai" linecount="true">
body{
background-color: black;
color: white;
}
h1{
font-size: 5rem;
}
</div>
<div class="cspsh" name="script" lang="js" linecount="true" theme="drakula">
const a = 10;
const b = 20;
let c = add(a, b);
console.log(c);
function add(a, b) {
console.log("retro effect!")
return a + b;
}
</div>
</div>
<h1 style="margin: 1rem;">
Without Code Tabs:
</h1>
<div class="cspsh" name="add" lang="py" theme="drakula" linecount="true">
def add(a, b):
return a + b
a = 10
b = 20
c = add(a, b)
print(c)
</div>
<div class="cspsh" name="add" lang="java" theme="cspsh">
public class Main {
public static void main(String[] args) {
int a = 10;
int b = 20;
int c = add(a, b);
System.out.println(c);
}
public static int add(int a, int b) {
return a + b;
}
}
</div>
<div class="cspsh" name="add" lang="sts" theme="drakula">
//storyscript is a language developed by lines-of-code. You can search story script in github to know more
int a = 10
int b = 20
print(a + b)
</div>
<div class="cspsh" name="add" lang="c" theme="cspsh">
#include <stdio.h>
int main() {
int a = 10;
int b = 20;
int c = add(a, b);
printf("%d", c);
return 0;
}
int add(int a, int b) {
return a + b;
}
</div>
<div class="cspsh" name="simple_mode_add" lang="js" theme="cspsh" mode="simple">
const a = 10;
const b = 20;
let c = add(a, b);
console.log(c, "simple mode");
function add(a, b) {
return a + b;
}
</div>
<script src="index.js" type="module"></script>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300&display=swap" rel="stylesheet" />
</body>
</html>