This repository has been archived by the owner on Jun 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent_index.html
193 lines (165 loc) · 8.59 KB
/
content_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
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
187
188
189
190
191
192
193
<!DOCTYPE html><html><head><meta charset="utf-8">
<link rel="stylesheet" href="index.css"><meta name="viewport" content="width=device-width, initial-scale=1">
<title>CLUB ENIGMA</title></head>
<body>
<div class="contents">
<h1 style="display: inline-block; padding-right: 20px;">CLUB ENIGMA</h1>
<button id="btn" onclick="setTheme()">THEME</button>
<hr>
<div class="profile">
<img src="pfp.png"
width="150" height="150" style="float:left; margin-right: 15px; margin-top: 5px;">
<br>
</div>
<div>
<h2 id="projects">PROJECTS</h2>
<div class="cyber security">
<button style="height: 50px; width: 300px; margin-bottom: 10px;" onclick="toggleContent('cyber')">CYBER SECURITY</button>
<div class="project-content" id="cyber-content">
<!-- Content for Cyber Security -->
<p>
<ul>
<li>CRIM</li>
<li>Munger</li>
<li>Gano</li>
<li>Rpi Monitor Interceptor</li>
<li>Rubber Ducky</li>
</ul>
</p>
</div>
</div>
<div class="distributed systems">
<button style="height: 50px; width: 300px; margin-bottom: 10px;" onclick="toggleContent('distributed')">DISTRIBUTED SYSTEMS</button>
<div class="project-content" id="distributed-content">
<!-- Content for Distributed Systems -->
<p>
<ul>
<li>Bit-Torrent Implementation in C++ from scratch</li>
<li> WebRTC Based Call/Chat App</li>
</ul>
</p>
</div>
</div>
<div class="system software">
<button style="height: 50px; width: 300px; margin-bottom: 10px;" onclick="toggleContent('system')">SYSTEM SOFTWARE</button>
<div class="project-content" id="system-content">
<!-- Content for System Software -->
<p>
<ul>
<li>RISC-V Virtual Machine</li>
<li> rumi - MIDI Serializer and Deserializer</li>
<li>CHIP-8 Emulator</li>
<li> Regex Engine</li>
<li>Parser Combinator</li>
</ul>
</p>
</div>
</div>
<div class="computer graphics">
<button style="height: 50px; width: 300px; margin-bottom: 10px;" onclick="toggleContent('graphics')">COMPUTER GRAPHICS</button>
<div class="project-content" id="graphics-content">
<!-- Content for Computer Graphics -->
<p>
<ul>
<li>UI Framework(Immediate Mode-GUI)</li>
<li>Mineraft Clone</li>
<li>Vadya(Music Synthesizer)</li>
<li>Fractal Park</li>
<li>Ray-Tracer from Scratch</li>
<li> Particle and Forcefield Simulator</li>
</ul>
</p>
</div>
</div>
</div>
<h2>BLOGS</h2><hr>
<div class="project">
<ul><a href='welcome.html'> <li>Welcome to Club Enigma!</li></a><details><summary>Computer Graphics</summary><a href='cg/cg_intro.html'> <li>Introduction to Computer Graphics</li></a></details></ul>
</div><br><h2>CONTACTS</h2><hr><div class="contact"><a href='https://instagram.com/enigmaiiits'><svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-instagram"><rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line></svg>
</a><a href='https://www.linkedin.com/company/enigmaiiits'><svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-linkedin"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle></svg>
</a><a href='https://github.com/Enigma-IIITS'><svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24" fill="none"
stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-github">
<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22">
</path>
</svg></a><a href='mailto: [email protected]'><svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24" fill="none"
stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-mail">
<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
<polyline points="22,6 12,13 2,6"></polyline>
</svg></a></div></div><footer>© 2023 Club Enigma</footer><script>const stylesheet = document.documentElement.style;
const darkThemeMq = window.matchMedia("(prefers-color-scheme: dark)");
if(!localStorage.getItem("theme")){
localStorage.setItem("theme", "system");
}
if(localStorage.getItem("theme") == "system") setSystemTheme();
else if(localStorage.getItem("theme") == "light") setLightTheme();
else if(localStorage.getItem("theme") == "dark") setDarkTheme();
setButtonText();
function setSystemTheme(){
if(darkThemeMq.matches){
setDarkTheme();
}else{
setLightTheme();
}
setButtonText();
}
function setDarkTheme(){
const darkBg = getComputedStyle(document.documentElement).getPropertyValue("--dark-bg");
const darkAccent = getComputedStyle(document.documentElement).getPropertyValue("--dark-accent");
const darkAccent2 = getComputedStyle(document.documentElement).getPropertyValue("--dark-accent-2");
const darkAccent3 = getComputedStyle(document.documentElement).getPropertyValue("--dark-accent-3");
stylesheet.setProperty("--theme-bg", darkBg);
stylesheet.setProperty("--theme-accent", darkAccent);
stylesheet.setProperty("--theme-accent-2", darkAccent2);
stylesheet.setProperty("--theme-accent-3", darkAccent3);
setButtonText();
}
function setLightTheme(){
const lightBg = getComputedStyle(document.documentElement).getPropertyValue("--light-bg");
const lightAccent = getComputedStyle(document.documentElement).getPropertyValue("--light-accent");
const lightAccent2 = getComputedStyle(document.documentElement).getPropertyValue("--light-accent-2");
const lightAccent3 = getComputedStyle(document.documentElement).getPropertyValue("--light-accent-3");
stylesheet.setProperty("--theme-bg", lightBg);
stylesheet.setProperty("--theme-accent", lightAccent);
stylesheet.setProperty("--theme-accent-2", lightAccent2);
stylesheet.setProperty("--theme-accent-3", lightAccent3);
setButtonText();
}
function setButtonText(){
const theme = localStorage.getItem("theme");
var text = theme.toUpperCase() +' THEME';
document.getElementById("btn").innerHTML = text;
}
darkThemeMq.addListener(e => {
if(localStorage.getItem("theme") == "system"){
if (e.matches) {
setDarkTheme();
} else {
setLightTheme();
}
}
});
function setTheme(){
if(localStorage.getItem("theme") == "system"){
localStorage.setItem("theme", "light");
setLightTheme();
}else if(localStorage.getItem("theme") == "light"){
localStorage.setItem("theme", "dark");
setDarkTheme();
}else{
localStorage.setItem("theme", "system");
setSystemTheme();
}
}
function toggleContent(contentId) {
const content = document.getElementById(contentId + '-content');
if (content.style.display === 'none') {
content.style.display = 'block';
} else {
content.style.display = 'none';
}
}
</script>
</body>
</html>