Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

creat branch dev #2

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions README.md
nekruz03 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://stepancar-web-programming.github.io/3-Web/
13 changes: 13 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function loadPageContent(content) {
document.getElementById('content').innerHTML = content;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Элегантно! Есть ли минусы у такого подхода?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да, минусы есть. Вставка HTML напрямую может сделать приложение уязвимым к атакам XSS.

}

page('/', function () {
loadPageContent('<h2>Education</h2><p>ITMO University</p><p>Bachelors in Computer Science</p>');
});

page('/projects', function () {
loadPageContent('<h2>Projects</h2><div class="project"><p>Coordinate Plane Analysis Web App | Java, Servlets, JSP, JavaScript</p><p>St. Petersburg, Russia</p><p>Sep. 2021 – Present</p><ul><li>Implemented an MVC architecture for point analysis on a coordinate plane using Java Servlets and JavaServer Pages (JSP)</li><li>Developed a dynamic JSP page with a user-friendly web form and real-time results visualization</li><li>Integrated JavaScript for client-side validation and interactive features</li><li>Deployed the application on WildFly, ensuring optimal configuration</li><li>Enabled dynamic updates to the coordinate plane image based on user input</li><li>Utilized HttpSession for tracking and displaying previous analysis results</li></ul></div>');
});

page();
Binary file added img/.DS_Store

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

файл не содержит никакого кода

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

удалил

Binary file not shown.
Binary file added img/itmo1.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/itmo2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/person.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/v_project.mp4
Binary file not shown.
Binary file not shown.
57 changes: 57 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nazirjonov Nekruz - About Me</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>

<header>
<h1>Nazirjonov Nekruz</h1>
</header>

<nav>
<ul>
<li><a href="index.html">About Me</a></li>
<li><a href="projects.html">Projects</a></li>
</ul>
</nav>

<section id="contact-info">
<h2>Contact Information</h2>
<div class="contact-details">
<div class="contact-text">
<p>Phone: +7 911 287 82 03</p>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

давайте сделаем открытие стандартного диалого при нажатии

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

добавил

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

сделал

<p>Telegram: <a href="https://t.me/Nekruznnn">@Nekruznnn</a></p>
<p>GitHub: <a href="https://github.com/nekruz03">github.com/nekruz</a></p>
<p>Email: <a href="mailto:[email protected]">[email protected]</a></p>
</div>
</div>
<div class="developer-info">
<img src="img/person.png" alt="Nazirjonov Nekruz" id="profile-image">
<p>Java Developer</p>
</div>
</section>
<section id="education">
<h2>Education</h2>
<p>ITMO University - Bachelors in Computer Science</p>
</section>


<section id="skills">
<h2>Technical Skills</h2>
<p>Languages: Java, C/C++, PHP, HTML, CSS, JavaScript, SQL</p>
<p>Developer Tools: IntelliJ-based IDEs, Geany, Sublime Text, Code::Blocks</p>
<p>Operating Systems: Windows, Ubuntu, Mac OS</p>
</section>

<footer>
<p>&copy; 2024 Nazirjonov Nekruz</p>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Предлагаю добавить динамику.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавил

<section id="current-date-time"></section>
<button id="night-mode-toggle" onclick="toggleNightMode()">🌙 Toggle Night Mode</button>
</footer>
<script src="main.js"></script>
</body>
</html>
47 changes: 47 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@

console.log("Hello from main.js!");

document.addEventListener("DOMContentLoaded", function () {
const urlParams = new URLSearchParams(window.location.search);
const page = urlParams.get('page');

if (page === 'projects') {
const projectDetailsSection = document.getElementById('project-details');
projectDetailsSection.innerHTML += "<p>Additional content for projects page.</p>";
}
});
document.addEventListener('DOMContentLoaded', () => {
let nightMode = localStorage.getItem('nightMode');

if (nightMode === null) {
nightMode = 'false';
}

applyNightMode(nightMode);

document.getElementById('night-mode-toggle').addEventListener('click', () => {
nightMode = (nightMode === 'true') ? 'false' : 'true';
applyNightMode(nightMode);
localStorage.setItem('nightMode', nightMode);
});
});

function applyNightMode(nightMode) {
document.body.classList.toggle("night-mode", nightMode === 'true');
}

document.addEventListener('DOMContentLoaded', () => {

displayCurrentDateTime();

setInterval(displayCurrentDateTime, 1000);
});

function displayCurrentDateTime() {
const dateTimeContainer = document.getElementById('current-date-time');
const now = new Date();
const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric', hour: 'numeric', minute: 'numeric', second: 'numeric', timeZoneName: 'short' };
const formattedDateTime = now.toLocaleDateString('en-US', options);

dateTimeContainer.innerHTML = `<p>${formattedDateTime}</p>`;
}
65 changes: 65 additions & 0 deletions projects.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nazirjonov Nekruz - Projects</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>My Projects</h1>
</header>

<nav>
<ul>
<li><a href="index.html">About Me</a></li>
<li><a href="projects.html">Projects</a></li>
</ul>
</nav>

<section id="project-details">
<h2>Coordinate Plane Analysis Web App</h2>
<div id="time">
nekruz03 marked this conversation as resolved.
Show resolved Hide resolved
<p>September 2022 – November 2022</p>
<video controls width="400" height="200">
<source src="img/v_project.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>

</div>
<p id="first">Java, Servlets, JSP, JavaScript</p>
<h3>Project Description</h3>
<p>Implemented an MVC architecture for point analysis on a coordinate plane using Java Servlets and JavaServer Pages (JSP).</p>
<ul>
<li>Developed a dynamic JSP page with a user-friendly web form and real-time results visualization.</li>
<li>Integrated JavaScript for client-side validation and interactive features.</li>
<li>Deployed the application on WildFly, ensuring optimal configuration.</li>
<li>Enabled dynamic updates to the coordinate plane image based on user input.</li>
<li>Utilized HttpSession for tracking and displaying previous analysis results.</li>
</ul>

<h3>Database Developmen</h3>
<p>Multi-tier Architecture: Designed high-performance information systems, optimizing functionality.</p>
<ul>
<li>Database Fundamentals: Explored and leveraged databases’ pivotal role in contemporary applications</li>
<li> SQL Mastery: Developed advanced skills for precise and effective data manipulation</li>
<li>Data Modeling: Engineered streamlined infological and datalogical models for efficient database design</li>
<li>DDL Implementation: Executed precise scripts for creating and maintaining database objects.</li>
<li>Scripting Expertise: Developed efficient scripts for creating, deleting, and managing database objects</li>
</ul>


<h3>Skills Used </h3>
<p> Java, Servlets, JSP, JavaScript, PostgreSQL, SQL </p>
</section>

<footer>
<p>&copy; 2024 Nazirjonov Nekruz</p>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

добавим динамики?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added dynamics

<p> <section id="visit-info"></section></p>
<section id="current-date-time"></section>
<button id="night-mode-toggle" onclick="toggleNightMode()">🌙 Toggle Night Mode</button>
</footer>
<script src="main.js"></script>
</body>
</html>
Loading