-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
app.js
Outdated
function loadPageContent(content) { | ||
document.getElementById('content').innerHTML = content; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Элегантно! Есть ли минусы у такого подхода?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да, минусы есть. Вставка HTML напрямую может сделать приложение уязвимым к атакам XSS.
index.html
Outdated
</section> | ||
|
||
<footer> | ||
<p>© 2024 Nazirjonov Nekruz</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Предлагаю добавить динамику.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Добавил
На защиту, давайте добавим линтеры и гитхаб экшены. Так же прогу разобраться с вопросом по функции loadPageContent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments
Здравствуйте! Если несложно, можете, пожалуйста, выставить балл за эту работу на лабораторную, а вторую визитку которую написал за Работы на паре. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR не готов к ревью, в PR содержится папка node_modules
img/.DS_Store
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
файл не содержит никакого кода
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
удалил
main.js
Outdated
|
||
|
||
function applyNightMode(nightMode) { | ||
document.body.classList.toggle('night-mode', nightMode === 'true'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
обратите внимание, что у вас nightMode может содержать только 2 значение true/false, при этом вы работаете со строками, вам приходится постоянно сравнивать строку с 'true', 'false'.
При этом, причина, по которой вам пришлось так сделать - кроется в в том, что высмешиваете в коде то, как данные хранятся и как они обрабатываются.
Попробуйте разделить это явно. Тогда логика у вас сильно упростится.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
упростил
</section> | ||
|
||
<footer> | ||
<p>© 2024 Nazirjonov Nekruz</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
добавим динамики?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added dynamics
package.json
Outdated
"node": ">=16.17.0" | ||
}, | ||
"scripts": { | ||
"lint": "eslint .", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
часто команды объединяют в одну - в которой и eslint линтинг html и css
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
объединил
styles.css
Outdated
.developer-info { | ||
text-align: center; | ||
margin-top: 10px; | ||
} | ||
|
||
.developer-info p{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Код форматирован вручную
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prettier added
index.html
Outdated
<h2>Contact Information</h2> | ||
<div class="contact-details"> | ||
<div class="contact-text"> | ||
<p>Phone: +7 911 287 82 03</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
давайте сделаем открытие стандартного диалого при нажатии
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
добавил
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
сделал
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Оставил замечания
No description provided.