Spaces:
Running
Running
Update index.html
Browse files- index.html +497 -14
index.html
CHANGED
@@ -7,8 +7,357 @@
|
|
7 |
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
<style>
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
</style>
|
13 |
</head>
|
14 |
<body>
|
@@ -37,13 +386,59 @@
|
|
37 |
</div>
|
38 |
|
39 |
<script>
|
40 |
-
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
const terminalText = document.getElementById('typing-text');
|
43 |
const commandLine = document.getElementById('command-line');
|
44 |
const commandInput = document.getElementById('command-input');
|
45 |
const securityIcon = document.getElementById('security-icon');
|
46 |
-
|
47 |
const messages = [
|
48 |
{ text: "Booting CYBERNODE v2.0...", delay: 50 },
|
49 |
{ text: "Initializing secure Salesforce connection...", delay: 50 },
|
@@ -98,14 +493,14 @@
|
|
98 |
{ text: "> Type 'help' for available commands", delay: 30, style: "color: #0f0" },
|
99 |
{ text: "\n", delay: 50 },
|
100 |
];
|
101 |
-
|
102 |
let currentMessageIndex = 0;
|
103 |
let currentCharIndex = 0;
|
104 |
let isTyping = true;
|
105 |
let commandHistory = [];
|
106 |
let historyIndex = -1;
|
107 |
let secretMode = false;
|
108 |
-
|
109 |
function typeNextCharacter() {
|
110 |
if (currentMessageIndex >= messages.length) {
|
111 |
isTyping = false;
|
@@ -136,7 +531,7 @@
|
|
136 |
setTimeout(typeNextCharacter, 100);
|
137 |
}
|
138 |
}
|
139 |
-
|
140 |
function processCommand(command) {
|
141 |
if (command.trim() !== '') {
|
142 |
commandHistory.unshift(command);
|
@@ -168,6 +563,7 @@
|
|
168 |
<div class="command-history"><i class="fas fa-terminal hacker-icon"></i> <span class="highlight">skills</span>: List technical skills</div>
|
169 |
<div class="command-history"><i class="fas fa-terminal hacker-icon"></i> <span class="highlight">contact</span>: Show contact information</div>
|
170 |
<div class="command-history"><i class="fas fa-terminal hacker-icon"></i> <span class="highlight">projects</span>: List key projects</div>
|
|
|
171 |
<div class="command-history"><i class="fas fa-terminal hacker-icon"></i> <span class="highlight">clear</span>: Clear the terminal</div>
|
172 |
<div class="command-history"><i class="fas fa-terminal hacker-icon"></i> <span class="highlight">secret</span>: Enable secret mode</div>
|
173 |
<div class="command-history"><i class="fas fa-terminal hacker-icon"></i> <span class="highlight">exit</span>: Close terminal (simulated)</div>`;
|
@@ -200,6 +596,26 @@
|
|
200 |
<div class="contact-item"><i class="fas fa-award hacker-icon"></i> <span class="highlight">Tea Tree Gully</span> - GOV Design Award 2017</div>
|
201 |
<div class="contact-item"><i class="fas fa-bolt hacker-icon"></i> <span class="highlight">Virtual Power Plant SA</span> - State government portal</div>`;
|
202 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
else if (command === 'clear') {
|
204 |
terminalText.innerHTML = '';
|
205 |
commandInput.value = '';
|
@@ -212,11 +628,13 @@
|
|
212 |
<i class="fas fa-user-secret hacker-icon"></i> AI Initiatives Unlocked:<br>
|
213 |
<i class="fas fa-brain hacker-icon"></i> MoodLens: Sentiment Analysis<br>
|
214 |
<i class="fas fa-shield-alt hacker-icon"></i> Abuse Detector: Content Filter<br>
|
215 |
-
<i class="fas fa-robot hacker-icon"></i> CouncilCaseClassifier: Case Routing
|
|
|
|
|
216 |
securityIcon.className = 'fas fa-lock hacker-icon';
|
217 |
document.body.style.background = '#000a0a';
|
218 |
} else {
|
219 |
-
response.innerHTML = `<span style="color: #0f0">SECRET MODE DEACTIVATED</span>`;
|
220 |
securityIcon.className = 'fas fa-lock-open hacker-icon';
|
221 |
document.body.style.background = '#000';
|
222 |
}
|
@@ -233,19 +651,84 @@
|
|
233 |
terminalText.appendChild(document.createElement('br'));
|
234 |
commandLine.scrollIntoView();
|
235 |
}
|
236 |
-
|
237 |
-
|
238 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
window.addEventListener('load', function() {
|
240 |
draw();
|
241 |
typeNextCharacter();
|
242 |
|
243 |
console.log('%c Try "secret" for hidden AI projects!', 'color: #0f0; font-family: monospace; font-size: 14px;');
|
244 |
});
|
245 |
-
|
246 |
window.addEventListener('resize', function() {
|
247 |
canvas.width = window.innerWidth;
|
248 |
canvas.height = window.innerHeight;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
});
|
250 |
</script>
|
|
|
251 |
</html>
|
|
|
7 |
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
<style>
|
10 |
+
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&family=Share+Tech+Mono&display=swap');
|
11 |
+
|
12 |
+
:root {
|
13 |
+
--terminal-bg: #0a0a12;
|
14 |
+
--terminal-green: #0f0;
|
15 |
+
--terminal-cyan: #0ff;
|
16 |
+
--terminal-purple: #b19cd9;
|
17 |
+
--terminal-red: #f44;
|
18 |
+
--terminal-glow: rgba(0, 255, 0, 0.7);
|
19 |
+
--terminal-border: #333;
|
20 |
+
--text-color: #e0e0e0;
|
21 |
+
--text-shadow: 0 0 8px var(--terminal-glow);
|
22 |
+
--selection-color: rgba(0, 255, 0, 0.3);
|
23 |
+
}
|
24 |
+
|
25 |
+
* {
|
26 |
+
margin: 0;
|
27 |
+
padding: 0;
|
28 |
+
box-sizing: border-box;
|
29 |
+
}
|
30 |
+
|
31 |
+
body {
|
32 |
+
background: #000;
|
33 |
+
overflow: hidden;
|
34 |
+
font-family: 'Inconsolata', monospace;
|
35 |
+
display: flex;
|
36 |
+
justify-content: center;
|
37 |
+
align-items: center;
|
38 |
+
min-height: 100vh;
|
39 |
+
perspective: 1000px;
|
40 |
+
}
|
41 |
+
|
42 |
+
.matrix-background {
|
43 |
+
position: fixed;
|
44 |
+
top: 0;
|
45 |
+
left: 0;
|
46 |
+
width: 100%;
|
47 |
+
height: 100%;
|
48 |
+
z-index: -1;
|
49 |
+
opacity: 0.15;
|
50 |
+
}
|
51 |
+
|
52 |
+
.terminal-container {
|
53 |
+
position: relative;
|
54 |
+
width: 85%;
|
55 |
+
max-width: 900px;
|
56 |
+
height: 75vh;
|
57 |
+
background: var(--terminal-bg);
|
58 |
+
border-radius: 8px;
|
59 |
+
box-shadow: 0 0 30px rgba(0, 255, 0, 0.5),
|
60 |
+
inset 0 0 10px rgba(0, 255, 0, 0.2);
|
61 |
+
overflow: hidden;
|
62 |
+
border: 1px solid var(--terminal-green);
|
63 |
+
transform-style: preserve-3d;
|
64 |
+
animation: float 8s ease-in-out infinite;
|
65 |
+
}
|
66 |
+
|
67 |
+
@keyframes float {
|
68 |
+
0%, 100% { transform: translateY(0) rotateX(10deg) rotateY(5deg); }
|
69 |
+
50% { transform: translateY(-20px) rotateX(5deg) rotateY(10deg); }
|
70 |
+
}
|
71 |
+
|
72 |
+
.terminal-header {
|
73 |
+
background: linear-gradient(to right, #0a0a0a, #111);
|
74 |
+
padding: 8px 15px;
|
75 |
+
display: flex;
|
76 |
+
justify-content: space-between;
|
77 |
+
align-items: center;
|
78 |
+
color: var(--terminal-green);
|
79 |
+
font-family: 'Share Tech Mono', monospace;
|
80 |
+
border-bottom: 1px solid var(--terminal-green);
|
81 |
+
box-shadow: 0 2px 15px rgba(0, 255, 0, 0.3);
|
82 |
+
}
|
83 |
+
|
84 |
+
.terminal-buttons {
|
85 |
+
display: flex;
|
86 |
+
gap: 8px;
|
87 |
+
}
|
88 |
+
|
89 |
+
.terminal-button {
|
90 |
+
width: 12px;
|
91 |
+
height: 12px;
|
92 |
+
border-radius: 50%;
|
93 |
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
94 |
+
transition: all 0.2s;
|
95 |
+
cursor: pointer;
|
96 |
+
}
|
97 |
+
|
98 |
+
.terminal-button:hover {
|
99 |
+
transform: scale(1.2);
|
100 |
+
}
|
101 |
+
|
102 |
+
.terminal-button.red {
|
103 |
+
background: #ff5f56;
|
104 |
+
}
|
105 |
+
|
106 |
+
.terminal-button.yellow {
|
107 |
+
background: #ffbd2e;
|
108 |
+
}
|
109 |
+
|
110 |
+
.terminal-button.green {
|
111 |
+
background: #27c93f;
|
112 |
+
}
|
113 |
+
|
114 |
+
.terminal-body {
|
115 |
+
padding: 15px;
|
116 |
+
height: calc(100% - 40px);
|
117 |
+
overflow-y: auto;
|
118 |
+
color: var(--text-color);
|
119 |
+
text-shadow: var(--text-shadow);
|
120 |
+
line-height: 1.6;
|
121 |
+
scrollbar-width: thin;
|
122 |
+
scrollbar-color: var(--terminal-green) transparent;
|
123 |
+
}
|
124 |
+
|
125 |
+
.terminal-body::-webkit-scrollbar {
|
126 |
+
width: 8px;
|
127 |
+
}
|
128 |
+
|
129 |
+
.terminal-body::-webkit-scrollbar-track {
|
130 |
+
background: transparent;
|
131 |
+
}
|
132 |
+
|
133 |
+
.terminal-body::-webkit-scrollbar-thumb {
|
134 |
+
background-color: var(--terminal-green);
|
135 |
+
border-radius: 10px;
|
136 |
+
}
|
137 |
+
|
138 |
+
.typing-text {
|
139 |
+
white-space: pre-wrap;
|
140 |
+
font-size: 1.1rem;
|
141 |
+
}
|
142 |
+
|
143 |
+
.command-line {
|
144 |
+
margin-top: 20px;
|
145 |
+
display: flex;
|
146 |
+
align-items: center;
|
147 |
+
position: sticky;
|
148 |
+
bottom: 0;
|
149 |
+
background: var(--terminal-bg);
|
150 |
+
padding-bottom: 10px;
|
151 |
+
}
|
152 |
+
|
153 |
+
.prompt {
|
154 |
+
color: var(--terminal-green);
|
155 |
+
margin-right: 10px;
|
156 |
+
font-weight: bold;
|
157 |
+
}
|
158 |
+
|
159 |
+
.cursor {
|
160 |
+
display: inline-block;
|
161 |
+
width: 10px;
|
162 |
+
height: 20px;
|
163 |
+
background: var(--terminal-green);
|
164 |
+
animation: blink 1s infinite;
|
165 |
+
vertical-align: middle;
|
166 |
+
margin-left: 5px;
|
167 |
+
}
|
168 |
+
|
169 |
+
@keyframes blink {
|
170 |
+
0%, 100% { opacity: 1; }
|
171 |
+
50% { opacity: 0; }
|
172 |
+
}
|
173 |
+
|
174 |
+
.command-input {
|
175 |
+
flex-grow: 1;
|
176 |
+
background: transparent;
|
177 |
+
border: none;
|
178 |
+
color: var(--terminal-green);
|
179 |
+
font-family: 'Inconsolata', monospace;
|
180 |
+
font-size: 1.1rem;
|
181 |
+
outline: none;
|
182 |
+
caret-color: var(--terminal-green);
|
183 |
+
text-shadow: var(--text-shadow);
|
184 |
+
}
|
185 |
+
|
186 |
+
.command-input::selection {
|
187 |
+
background: var(--selection-color);
|
188 |
+
}
|
189 |
+
|
190 |
+
.glitch {
|
191 |
+
position: relative;
|
192 |
+
}
|
193 |
+
|
194 |
+
.glitch::before, .glitch::after {
|
195 |
+
content: attr(data-text);
|
196 |
+
position: absolute;
|
197 |
+
top: 0;
|
198 |
+
left: 0;
|
199 |
+
width: 100%;
|
200 |
+
height: 100%;
|
201 |
+
background: var(--terminal-bg);
|
202 |
+
}
|
203 |
+
|
204 |
+
.glitch::before {
|
205 |
+
left: 2px;
|
206 |
+
text-shadow: -2px 0 var(--terminal-red);
|
207 |
+
clip: rect(24px, 550px, 90px, 0);
|
208 |
+
animation: glitch-anim-1 2s infinite linear alternate-reverse;
|
209 |
+
}
|
210 |
+
|
211 |
+
.glitch::after {
|
212 |
+
left: -2px;
|
213 |
+
text-shadow: -2px 0 var(--terminal-cyan);
|
214 |
+
clip: rect(85px, 550px, 140px, 0);
|
215 |
+
animation: glitch-anim-2 2s infinite linear alternate-reverse;
|
216 |
+
}
|
217 |
+
|
218 |
+
@keyframes glitch-anim-1 {
|
219 |
+
0% { clip: rect(54px, 800px, 54px, 0); }
|
220 |
+
20% { clip: rect(27px, 800px, 86px, 0); }
|
221 |
+
40% { clip: rect(14px, 800px, 75px, 0); }
|
222 |
+
60% { clip: rect(39px, 800px, 104px, 0); }
|
223 |
+
80% { clip: rect(18px, 800px, 53px, 0); }
|
224 |
+
100% { clip: rect(73px, 800px, 112px, 0); }
|
225 |
+
}
|
226 |
+
|
227 |
+
@keyframes glitch-anim-2 {
|
228 |
+
0% { clip: rect(35px, 800px, 89px, 0); }
|
229 |
+
20% { clip: rect(56px, 800px, 103px, 0); }
|
230 |
+
40% { clip: rect(22px, 800px, 64px, 0); }
|
231 |
+
60% { clip: rect(88px, 800px, 120px, 0); }
|
232 |
+
80% { clip: rect(13px, 800px, 32px, 0); }
|
233 |
+
100% { clip: rect(42px, 800px, 99px, 0); }
|
234 |
+
}
|
235 |
+
|
236 |
+
.ascii-art {
|
237 |
+
color: var(--terminal-purple);
|
238 |
+
line-height: 1.3;
|
239 |
+
margin: 15px 0;
|
240 |
+
white-space: pre;
|
241 |
+
font-size: 0.6rem;
|
242 |
+
letter-spacing: 1px;
|
243 |
+
}
|
244 |
+
|
245 |
+
.highlight {
|
246 |
+
color: var(--terminal-cyan);
|
247 |
+
}
|
248 |
+
|
249 |
+
.skill-bar {
|
250 |
+
margin: 8px 0;
|
251 |
+
display: flex;
|
252 |
+
align-items: center;
|
253 |
+
}
|
254 |
+
|
255 |
+
.skill-name {
|
256 |
+
display: inline-block;
|
257 |
+
width: 150px;
|
258 |
+
color: var(--terminal-green);
|
259 |
+
}
|
260 |
+
|
261 |
+
.skill-level {
|
262 |
+
display: inline-block;
|
263 |
+
height: 15px;
|
264 |
+
background: linear-gradient(to right, var(--terminal-green), var(--terminal-cyan));
|
265 |
+
box-shadow: 0 0 5px var(--terminal-glow);
|
266 |
+
animation: expand 1s ease-out;
|
267 |
+
transform-origin: left;
|
268 |
+
border-radius: 3px;
|
269 |
+
position: relative;
|
270 |
+
overflow: hidden;
|
271 |
+
}
|
272 |
+
|
273 |
+
.skill-level::after {
|
274 |
+
content: '';
|
275 |
+
position: absolute;
|
276 |
+
top: 0;
|
277 |
+
left: 0;
|
278 |
+
right: 0;
|
279 |
+
bottom: 0;
|
280 |
+
background: linear-gradient(90deg,
|
281 |
+
rgba(255,255,255,0) 0%,
|
282 |
+
rgba(255,255,255,0.2) 50%,
|
283 |
+
rgba(255,255,255,0) 100%);
|
284 |
+
animation: shine 2s infinite;
|
285 |
+
}
|
286 |
+
|
287 |
+
@keyframes shine {
|
288 |
+
0% { transform: translateX(-100%); }
|
289 |
+
100% { transform: translateX(100%); }
|
290 |
+
}
|
291 |
+
|
292 |
+
@keyframes expand {
|
293 |
+
from { transform: scaleX(0); }
|
294 |
+
to { transform: scaleX(1); }
|
295 |
+
}
|
296 |
+
|
297 |
+
.contact-item {
|
298 |
+
margin: 8px 0;
|
299 |
+
display: flex;
|
300 |
+
align-items: center;
|
301 |
+
}
|
302 |
+
|
303 |
+
.contact-item a {
|
304 |
+
color: var(--terminal-purple);
|
305 |
+
text-decoration: none;
|
306 |
+
transition: all 0.3s;
|
307 |
+
margin-left: 10px;
|
308 |
+
}
|
309 |
+
|
310 |
+
.contact-item a:hover {
|
311 |
+
color: var(--terminal-cyan);
|
312 |
+
text-shadow: 0 0 10px var(--terminal-cyan);
|
313 |
+
}
|
314 |
+
|
315 |
+
.hidden {
|
316 |
+
display: none;
|
317 |
+
}
|
318 |
+
|
319 |
+
.command-history {
|
320 |
+
opacity: 0.8;
|
321 |
+
}
|
322 |
+
|
323 |
+
.system-alert {
|
324 |
+
color: var(--terminal-red);
|
325 |
+
animation: pulse 2s infinite;
|
326 |
+
}
|
327 |
+
|
328 |
+
@keyframes pulse {
|
329 |
+
0%, 100% { opacity: 1; }
|
330 |
+
50% { opacity: 0.6; }
|
331 |
+
}
|
332 |
+
|
333 |
+
.hacker-icon {
|
334 |
+
color: var(--terminal-green);
|
335 |
+
margin-right: 8px;
|
336 |
+
}
|
337 |
+
|
338 |
+
.secret-mode {
|
339 |
+
animation: secretGlow 0.5s infinite alternate;
|
340 |
+
}
|
341 |
+
|
342 |
+
@keyframes secretGlow {
|
343 |
+
from { text-shadow: 0 0 5px var(--terminal-green); }
|
344 |
+
to { text-shadow: 0 0 20px var(--terminal-cyan), 0 0 30px var(--terminal-purple); }
|
345 |
+
}
|
346 |
+
|
347 |
+
canvas {
|
348 |
+
display: block;
|
349 |
+
}
|
350 |
+
|
351 |
+
@media (max-width: 768px) {
|
352 |
+
.terminal-container {
|
353 |
+
width: 95%;
|
354 |
+
height: 85vh;
|
355 |
+
}
|
356 |
+
|
357 |
+
.skill-name {
|
358 |
+
width: 120px;
|
359 |
+
}
|
360 |
+
}
|
361 |
</style>
|
362 |
</head>
|
363 |
<body>
|
|
|
386 |
</div>
|
387 |
|
388 |
<script>
|
389 |
+
const canvas = document.getElementById('matrix');
|
390 |
+
const ctx = canvas.getContext('2d');
|
391 |
+
|
392 |
+
canvas.width = window.innerWidth;
|
393 |
+
canvas.height = window.innerHeight;
|
394 |
+
|
395 |
+
const katakana = 'アァカサタナハマヤャラワガザダバパイィキシチニヒミリヰギジヂビピウゥクスツヌフムユュルグズブヅプエェケセテネヘメレヱゲゼデベペオォコソトノホモヨョロヲゴゾドボポヴッン';
|
396 |
+
const latin = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
397 |
+
const nums = '0123456789';
|
398 |
+
const symbols = '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~';
|
399 |
+
const binary = '01';
|
400 |
+
|
401 |
+
const alphabet = katakana + latin + nums + symbols + binary;
|
402 |
+
|
403 |
+
const fontSize = 16;
|
404 |
+
const columns = canvas.width / fontSize;
|
405 |
+
|
406 |
+
const rainDrops = [];
|
407 |
+
|
408 |
+
for (let x = 0; x < columns; x++) {
|
409 |
+
rainDrops[x] = Math.floor(Math.random() * canvas.height / fontSize);
|
410 |
+
}
|
411 |
+
|
412 |
+
function draw() {
|
413 |
+
ctx.fillStyle = 'rgba(0, 0, 0, 0.05)';
|
414 |
+
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
415 |
+
|
416 |
+
ctx.fillStyle = '#0f0';
|
417 |
+
ctx.font = fontSize + 'px monospace';
|
418 |
+
|
419 |
+
for (let i = 0; i < rainDrops.length; i++) {
|
420 |
+
const text = alphabet.charAt(Math.floor(Math.random() * alphabet.length));
|
421 |
+
const y = rainDrops[i] * fontSize;
|
422 |
+
|
423 |
+
const opacity = Math.min(1, 1 - y / canvas.height);
|
424 |
+
ctx.fillStyle = `rgba(0, 255, 0, ${opacity})`;
|
425 |
+
|
426 |
+
ctx.fillText(text, i * fontSize, y);
|
427 |
+
|
428 |
+
if (y > canvas.height && Math.random() > 0.975) {
|
429 |
+
rainDrops[i] = 0;
|
430 |
+
}
|
431 |
+
rainDrops[i]++;
|
432 |
+
}
|
433 |
+
|
434 |
+
requestAnimationFrame(draw);
|
435 |
+
}
|
436 |
+
|
437 |
const terminalText = document.getElementById('typing-text');
|
438 |
const commandLine = document.getElementById('command-line');
|
439 |
const commandInput = document.getElementById('command-input');
|
440 |
const securityIcon = document.getElementById('security-icon');
|
441 |
+
|
442 |
const messages = [
|
443 |
{ text: "Booting CYBERNODE v2.0...", delay: 50 },
|
444 |
{ text: "Initializing secure Salesforce connection...", delay: 50 },
|
|
|
493 |
{ text: "> Type 'help' for available commands", delay: 30, style: "color: #0f0" },
|
494 |
{ text: "\n", delay: 50 },
|
495 |
];
|
496 |
+
|
497 |
let currentMessageIndex = 0;
|
498 |
let currentCharIndex = 0;
|
499 |
let isTyping = true;
|
500 |
let commandHistory = [];
|
501 |
let historyIndex = -1;
|
502 |
let secretMode = false;
|
503 |
+
|
504 |
function typeNextCharacter() {
|
505 |
if (currentMessageIndex >= messages.length) {
|
506 |
isTyping = false;
|
|
|
531 |
setTimeout(typeNextCharacter, 100);
|
532 |
}
|
533 |
}
|
534 |
+
|
535 |
function processCommand(command) {
|
536 |
if (command.trim() !== '') {
|
537 |
commandHistory.unshift(command);
|
|
|
563 |
<div class="command-history"><i class="fas fa-terminal hacker-icon"></i> <span class="highlight">skills</span>: List technical skills</div>
|
564 |
<div class="command-history"><i class="fas fa-terminal hacker-icon"></i> <span class="highlight">contact</span>: Show contact information</div>
|
565 |
<div class="command-history"><i class="fas fa-terminal hacker-icon"></i> <span class="highlight">projects</span>: List key projects</div>
|
566 |
+
<div class="command-history"><i class="fas fa-terminal hacker-icon"></i> <span class="highlight">certs</span>: List Salesforce certifications</div>
|
567 |
<div class="command-history"><i class="fas fa-terminal hacker-icon"></i> <span class="highlight">clear</span>: Clear the terminal</div>
|
568 |
<div class="command-history"><i class="fas fa-terminal hacker-icon"></i> <span class="highlight">secret</span>: Enable secret mode</div>
|
569 |
<div class="command-history"><i class="fas fa-terminal hacker-icon"></i> <span class="highlight">exit</span>: Close terminal (simulated)</div>`;
|
|
|
596 |
<div class="contact-item"><i class="fas fa-award hacker-icon"></i> <span class="highlight">Tea Tree Gully</span> - GOV Design Award 2017</div>
|
597 |
<div class="contact-item"><i class="fas fa-bolt hacker-icon"></i> <span class="highlight">Virtual Power Plant SA</span> - State government portal</div>`;
|
598 |
}
|
599 |
+
else if (command === 'certs') {
|
600 |
+
response.innerHTML = `>> SALESFORCE CERTIFICATIONS <<<br><br>
|
601 |
+
<div class="contact-item"><i class="fas fa-certificate hacker-icon"></i> Business Analyst</div>
|
602 |
+
<div class="contact-item"><i class="fas fa-certificate hacker-icon"></i> B2B Solution Architect</div>
|
603 |
+
<div class="contact-item"><i class="fas fa-certificate hacker-icon"></i> System Architect</div>
|
604 |
+
<div class="contact-item"><i class="fas fa-certificate hacker-icon"></i> Application Architect</div>
|
605 |
+
<div class="contact-item"><i class="fas fa-certificate hacker-icon"></i> Administrator</div>
|
606 |
+
<div class="contact-item"><i class="fas fa-certificate hacker-icon"></i> Sales Cloud Consultant</div>
|
607 |
+
<div class="contact-item"><i class="fas fa-certificate hacker-icon"></i> Service Cloud Consultant</div>
|
608 |
+
<div class="contact-item"><i class="fas fa-certificate hacker-icon"></i> Community Cloud Consultant</div>
|
609 |
+
<div class="contact-item"><i class="fas fa-certificate hacker-icon"></i> Advanced Administrator</div>
|
610 |
+
<div class="contact-item"><i class="fas fa-certificate hacker-icon"></i> Sharing and Visibility Architect</div>
|
611 |
+
<div class="contact-item"><i class="fas fa-certificate hacker-icon"></i> Data Architect</div>
|
612 |
+
<div class="contact-item"><i class="fas fa-certificate hacker-icon"></i> Platform App Builder</div>
|
613 |
+
<div class="contact-item"><i class="fas fa-certificate hacker-icon"></i> Platform Developer I</div>
|
614 |
+
<div class="contact-item"><i class="fas fa-certificate hacker-icon"></i> Identity and Access Management Architect</div>
|
615 |
+
<div class="contact-item"><i class="fas fa-certificate hacker-icon"></i> Development Lifecycle and Deployment Architect</div>
|
616 |
+
<div class="contact-item"><i class="fas fa-certificate hacker-icon"></i> Integration Architect</div>
|
617 |
+
<div class="contact-item"><i class="fas fa-certificate hacker-icon"></i> Security & Privacy Accredited Professional</div>`;
|
618 |
+
}
|
619 |
else if (command === 'clear') {
|
620 |
terminalText.innerHTML = '';
|
621 |
commandInput.value = '';
|
|
|
628 |
<i class="fas fa-user-secret hacker-icon"></i> AI Initiatives Unlocked:<br>
|
629 |
<i class="fas fa-brain hacker-icon"></i> MoodLens: Sentiment Analysis<br>
|
630 |
<i class="fas fa-shield-alt hacker-icon"></i> Abuse Detector: Content Filter<br>
|
631 |
+
<i class="fas fa-robot hacker-icon"></i> CouncilCaseClassifier: Case Routing<br>
|
632 |
+
<i class="fas fa-book hacker-icon"></i> CfSuiteKnowbler: GPT-4 Knowledge Generation<br>
|
633 |
+
<i class="fas fa-heartbeat hacker-icon"></i> MindMeter: Stress Detection`;
|
634 |
securityIcon.className = 'fas fa-lock hacker-icon';
|
635 |
document.body.style.background = '#000a0a';
|
636 |
} else {
|
637 |
+
response.innerHTML = `<span style="。本color: #0f0">SECRET MODE DEACTIVATED</span>`;
|
638 |
securityIcon.className = 'fas fa-lock-open hacker-icon';
|
639 |
document.body.style.background = '#000';
|
640 |
}
|
|
|
651 |
terminalText.appendChild(document.createElement('br'));
|
652 |
commandLine.scrollIntoView();
|
653 |
}
|
654 |
+
|
655 |
+
function minimizeTerminal() {
|
656 |
+
const terminal = document.querySelector('.terminal-container');
|
657 |
+
terminal.style.transform = 'translateY(100vh)';
|
658 |
+
setTimeout(() => {
|
659 |
+
alert('Terminal minimized. Refresh page to restore.');
|
660 |
+
}, 500);
|
661 |
+
}
|
662 |
+
|
663 |
+
function maximizeTerminal() {
|
664 |
+
const terminal = document.querySelector('.terminal-container');
|
665 |
+
if (terminal.style.width === '100%') {
|
666 |
+
terminal.style.width = '85%';
|
667 |
+
terminal.style.height = '75vh';
|
668 |
+
} else {
|
669 |
+
terminal.style.width = '100%';
|
670 |
+
terminal.style.height = '100vh';
|
671 |
+
}
|
672 |
+
}
|
673 |
+
|
674 |
+
function closeTerminal() {
|
675 |
+
const terminal = document.querySelector('.terminal-container');
|
676 |
+
terminal.style.animation = 'none';
|
677 |
+
terminal.style.transform = 'scale(0)';
|
678 |
+
terminal.style.opacity = '0';
|
679 |
+
setTimeout(() => {
|
680 |
+
document.body.innerHTML = '<div style="color: #0f0; font-family: monospace; text-align: center; margin-top: 40vh;">Connection terminated. Refresh to reconnect.</div>';
|
681 |
+
}, 500);
|
682 |
+
}
|
683 |
+
|
684 |
+
commandInput.addEventListener('keydown', function(e) {
|
685 |
+
if (e.key === 'Enter') {
|
686 |
+
const command = this.value;
|
687 |
+
this.value = '';
|
688 |
+
|
689 |
+
if (command.trim() !== '') {
|
690 |
+
processCommand(command);
|
691 |
+
}
|
692 |
+
}
|
693 |
+
else if (e.key === 'ArrowUp') {
|
694 |
+
if (commandHistory.length > 0 && historyIndex < commandHistory.length - 1) {
|
695 |
+
historyIndex++;
|
696 |
+
this.value = commandHistory[historyIndex];
|
697 |
+
e.preventDefault();
|
698 |
+
}
|
699 |
+
}
|
700 |
+
else if (e.key === 'ArrowDown') {
|
701 |
+
if (historyIndex > 0) {
|
702 |
+
historyIndex--;
|
703 |
+
this.value = commandHistory[historyIndex];
|
704 |
+
e.preventDefault();
|
705 |
+
} else if (historyIndex === 0) {
|
706 |
+
historyIndex = -1;
|
707 |
+
this.value = '';
|
708 |
+
e.preventDefault();
|
709 |
+
}
|
710 |
+
}
|
711 |
+
});
|
712 |
+
|
713 |
window.addEventListener('load', function() {
|
714 |
draw();
|
715 |
typeNextCharacter();
|
716 |
|
717 |
console.log('%c Try "secret" for hidden AI projects!', 'color: #0f0; font-family: monospace; font-size: 14px;');
|
718 |
});
|
719 |
+
|
720 |
window.addEventListener('resize', function() {
|
721 |
canvas.width = window.innerWidth;
|
722 |
canvas.height = window.innerHeight;
|
723 |
+
|
724 |
+
const newColumns = canvas.width / fontSize;
|
725 |
+
while (rainDrops.length < newColumns) {
|
726 |
+
rainDrops.push(Math.floor(Math.random() * canvas.height / fontSize));
|
727 |
+
}
|
728 |
+
while (rainDrops.length > newColumns) {
|
729 |
+
rainDrops.pop();
|
730 |
+
}
|
731 |
});
|
732 |
</script>
|
733 |
+
</body>
|
734 |
</html>
|