-My favorite code quote, "Code for Everyone".
+code@nerve:~$ cd CodeNerve/About_Us
-Hey There! This is the portflio website in the skin of a terminal.
You can see that, this is how your portfolio would look like.
-
You can introduce yourself here.
-
You can also tell what you've worked and known and what skills you have, you can also give link to your professional portfolio here portfolio.
-
Tell more about yourself.
Give your project links or something like that. Here you go.
-
You can give links to other professional profiles you have on Internet, here: Profile1 Profile2 and Profile3.
+coder@nerve:~$ cat codenerve.txt
+My favorite code quote, "Code for Everyone".
-You can also give your email ID for contacting you, feel free to send me an email atEmail.
+Hey there! This is the portfolio website in the skin of a terminal.
+
+
You can see that this is how your portfolio would look like.
+
You can introduce yourself here.
+
+
You can also share your work experience and skills. You can provide a link to your professional portfolio here.
+
+
Tell more about yourself.
Share your project links or anything you'd like to highlight. Here you go.
+
+
You can also provide links to your other professional profiles on the internet, such as:
+Profile1
+Profile2
+Profile3
+
+You can also share your email ID for contacting you. Feel free to send me an email at Email.
Cheers!
diff --git a/README.md b/README.md
index 5b1d7a9..3180034 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,44 @@
-# CodeNerve.github.io
-Terminal based portfolio website for CodeNerve
+# CodeNerve Portfolio Website
+
+Welcome to the CodeNerve Portfolio Website project! This project aims to create a unique and interactive portfolio website in the form of a terminal interface.
+
+## Project Overview
+
+The CodeNerve Portfolio Website is designed to showcase your skills, projects, and professional information in a creative and engaging manner. The website mimics a terminal environment, providing a unique user experience for visitors.
+
+## Features
+
+- Terminal Interface: The portfolio website resembles a terminal, giving it a distinctive look and feel.
+- Introduction: Introduce yourself and provide a brief overview of your background and expertise.
+- Professional Portfolio: Share your work experience, skills, and accomplishments by providing a link to your professional portfolio.
+- Project Showcase: Highlight your projects by including descriptions and links for visitors to explore.
+- External Profile Links: Provide links to your other professional profiles on the internet, such as LinkedIn, GitHub, or other relevant platforms.
+- Contact Information: Include your email ID for visitors to contact you.
+
+## Usage
+
+To view the portfolio website locally, follow these steps:
+
+1. Clone the project repository.
+2. Open the `index.html` file in your preferred web browser.
+3. Explore the different sections of the website by navigating through the terminal interface.
+4. Click on links to access additional information or external profiles.
+5. Enjoy the interactive experience and get to know the portfolio owner better.
+
+## Contributions
+
+Contributions to the CodeNerve Portfolio Website project are welcome. If you would like to contribute new features, enhancements, or bug fixes, please follow these steps:
+
+1. Fork the repository.
+2. Create a new branch for your contribution.
+3. Make your changes and ensure that the website is functioning correctly.
+4. Commit and push your changes to your forked repository.
+5. Submit a pull request detailing your changes and their purpose.
+
+Please ensure that your contributions align with the project's goals and adhere to the existing code style and structure.
+
+## License
+
+This project is licensed under the [MIT License](LICENSE). Feel free to modify and use the code for personal or commercial projects.
+
+## Thank you for your interest and support in this project!
diff --git a/index.css b/index.css
index 7c24ccc..e7c4e00 100644
--- a/index.css
+++ b/index.css
@@ -1,19 +1,17 @@
:root {
- background-color: #000 !important;
+ background-color: #000;
}
body {
- background-color: #000
+ background-color: #000;
}
#console {
- font-family: courier, monospace;
+ font-family: Courier, monospace;
color: #fff;
- width:750px;
- margin-left:auto;
- margin-right:auto;
- margin-top:100px;
- font-size:14px;
+ width: 750px;
+ margin: 100px auto 0;
+ font-size: 14px;
}
a {
@@ -34,15 +32,15 @@ a {
}
#k {
- animation: change 1s;
+ animation: change 1s;
}
-#op{
- color: #888888
+#op {
+ color: #888888;
}
@keyframes change {
- 0% { color: #0f0; }
- 50% { color: #0f0; }
- 99% { color: black; }
+ 0% { color: #0f0; }
+ 50% { color: #0f0; }
+ 99% { color: #000; }
}
diff --git a/index.html b/index.html
index 88c12ab..155a491 100644
--- a/index.html
+++ b/index.html
@@ -1,15 +1,12 @@
-
-
-
- CodeNerve
-
-
-
-
-
-
-
-
-
-
+
+
+
+ CodeNerve
+
+
+
+
+
+
+
+
diff --git a/index.js b/index.js
index c8b0597..0dd1975 100644
--- a/index.js
+++ b/index.js
@@ -1,121 +1,123 @@
-var Typer = {
- text: '',
- accessCountimer: null,
- index: 0,
- speed: 2,
- file: '',
- accessCount: 0,
- deniedCount: 0,
- init: function () {
- accessCountimer = setInterval(function () {
- Typer.updLstChr();
- }, 500);
- $.get(Typer.file, function (data) {
- Typer.text = data;
- Typer.text = Typer.text.slice(0, Typer.text.length - 1);
- });
- },
-
- content: function () {
- return $('#console').html();
- },
-
- write: function (str) {
- $('#console').append(str);
- return false;
- },
-
- addText: function (key) {
- if (key.keyCode == 18) {
- Typer.accessCount++;
-
- if (Typer.accessCount >= 3) {
- Typer.makeAccess();
- }
- } else if (key.keyCode == 20) {
- Typer.deniedCount++;
-
- if (Typer.deniedCount >= 3) {
- Typer.makeDenied();
- }
- } else if (key.keyCode == 27) {
- Typer.hidepop();
- } else if (Typer.text) {
- var cont = Typer.content();
- if (cont.substring(cont.length - 1, cont.length) == '|')
- $('#console').html(
- $('#console')
- .html()
- .substring(0, cont.length - 1),
- );
- if (key.keyCode != 8) {
- Typer.index += Typer.speed;
- } else {
- if (Typer.index > 0) Typer.index -= Typer.speed;
- }
- var text = Typer.text.substring(0, Typer.index);
- var rtn = new RegExp('\n', 'g');
-
- $('#console').html(text.replace(rtn, ' '));
- window.scrollBy(0, 50);
- }
-
- if (key.preventDefault && key.keyCode != 122) {
- key.preventDefault();
+const Typer = {
+ text: '',
+ accessCountimer: null,
+ index: 0,
+ speed: 2,
+ file: '',
+ accessCount: 0,
+ deniedCount: 0,
+
+ init: function () {
+ this.accessCountimer = setInterval(() => {
+ this.updLstChr();
+ }, 500);
+ fetch(this.file)
+ .then(response => response.text())
+ .then(data => {
+ this.text = data.slice(0, -1);
+ });
+ },
+
+ content: function () {
+ return $('#console').html();
+ },
+
+ write: function (str) {
+ $('#console').append(str);
+ return false;
+ },
+
+ addText: function (key) {
+ if (key.keyCode === 18) {
+ this.accessCount++;
+ if (this.accessCount >= 3) {
+ this.makeAccess();
+ }
+ } else if (key.keyCode === 20) {
+ this.deniedCount++;
+ if (this.deniedCount >= 3) {
+ this.makeDenied();
+ }
+ } else if (key.keyCode === 27) {
+ this.hidepop();
+ } else if (this.text) {
+ const cont = this.content();
+ if (cont.endsWith('|')) {
+ $('#console').html(cont.slice(0, -1));
+ }
+ if (key.keyCode !== 8) {
+ this.index += this.speed;
+ } else {
+ if (this.index > 0) {
+ this.index -= this.speed;
}
+ }
+ const text = this.text.substring(0, this.index);
+ const rtn = /\n/g;
+ $('#console').html(text.replace(rtn, ' '));
+ window.scrollBy(0, 50);
+ }
- if (key.keyCode != 122) {
- // otherway prevent keys default behavior
- key.returnValue = false;
- }
- },
-
- updLstChr: function () {
- var cont = this.content();
-
- if (cont.substring(cont.length - 1, cont.length) == '|')
- $('#console').html(
- $('#console')
- .html()
- .substring(0, cont.length - 1),
- );
- else this.write('|'); // else write it
- },
-};
+ if (key.preventDefault && key.keyCode !== 122) {
+ key.preventDefault();
+ }
-function replaceUrls(text) {
- var http = text.indexOf('http://');
- var space = text.indexOf('.me ', http);
+ if (key.keyCode !== 122) {
+ // prevent default behavior for other keys
+ key.returnValue = false;
+ }
+ },
- if (space != -1) {
- var url = text.slice(http, space - 1);
- return text.replace(url, '' + url + '');
+ updLstChr: function () {
+ const cont = this.content();
+ if (cont.endsWith('|')) {
+ $('#console').html(cont.slice(0, -1));
} else {
- return text;
+ this.write('|');
}
+ },
+
+ makeAccess: function () {
+ // Implement the makeAccess function as needed
+ },
+
+ makeDenied: function () {
+ // Implement the makeDenied function as needed
+ },
+
+ hidepop: function () {
+ // Implement the hidepop function as needed
+ }
+};
+
+function replaceUrls(text) {
+ const http = text.indexOf('http://');
+ const space = text.indexOf('.me ', http);
+
+ if (space !== -1) {
+ const url = text.slice(http, space - 1);
+ return text.replace(url, `${url}`);
+ } else {
+ return text;
+ }
}
Typer.speed = 3;
Typer.file = 'CodeNerve.txt';
Typer.init();
-var timer = setInterval('t();', 30);
+const timer = setInterval(t, 30);
function t() {
- Typer.addText({keyCode: 123748});
-
- if (Typer.index > Typer.text.length) {
- clearInterval(timer);
- }
+ Typer.addText({ keyCode: 123748 });
+if (Typer.index > Typer.text.length) {
+clearInterval(timer);
}
-
-document.onkeydown = function (e) {
- if (e.keyCode == 27) {
- // fastforward text
- Typer.index = Typer.text.length;
- }
}
-
-
-
+document.addEventListener('keydown', function (e) {
+if (e.keyCode === 27) {
+// fast forward text
+Typer.index = Typer.text.length;
+}
+});
\ No newline at end of file