99 < link rel ="icon " href ="./images/favicon/favicon.svg " type ="image/svg+xml " sizes ="any ">
1010 < link rel ="shortcut icon " href ="./images/favicon/favicon.ico " type ="image/x-icon ">
1111 < link rel ="apple-touch-icon " href ="./images/favicon/apple-touch-icon.png " sizes ="180x180 ">
12- < meta name ="apple-mobile-web-app-title " content ="HabitTracker ">
12+ < meta name ="apple-mobile-web-app-title " content ="HabbitTracker ">
1313 <!-- <link rel="manifest" href="./site.webmanifest"> -->
1414 < link rel ="stylesheet " href ="./css/normalize.css ">
1515 < link rel ="stylesheet " href ="./css/style.css ">
@@ -65,20 +65,22 @@ <h2 class="pop-up__title">Новая привычка</h2>
6565 < span class ="pop-up__icons-label "> Иконка</ span >
6666 < ul class ="pop-up__icons-list ">
6767 < li class ="pop-up__icons-item ">
68- < button class ="pop-up__icons-btn " type ="button " aria-label ="Выбрать иконку " title ="Спорт ">
68+ < button class ="pop-up__icons-btn " type ="button " aria-label ="Выбрать иконку " title ="Спорт "
69+ onclick ="setHabbitIcon(this, 'gantel-icon') ">
6970 < img class ="pop-up__icons-icon " src ="./images/gantel-icon.svg " width ="23 " height ="23 "
7071 alt ="Иконка: Гантеля ">
7172 </ button >
7273 </ li >
7374 < li class ="pop-up__icons-item ">
7475 < button class ="pop-up__icons-btn pop-up__icons-btn_active " type ="button " aria-label ="Выбрать иконку "
75- title ="Жидкости ">
76+ title ="Жидкости " onclick =" setHabbitIcon(this, 'water-icon') " >
7677 < img class ="pop-up__icons-icon " src ="./images/water-icon.svg " width ="25 " height ="25 "
7778 alt ="Иконка: Бутылка с водой ">
7879 </ button >
7980 </ li >
8081 < li class ="pop-up__icons-item ">
81- < button class ="pop-up__icons-btn " type ="button " aria-label ="Выбрать иконку " title ="Питание ">
82+ < button class ="pop-up__icons-btn " type ="button " aria-label ="Выбрать иконку " title ="Питание "
83+ onclick ="setHabbitIcon(this, 'food-icon') ">
8284 < img class ="pop-up__icons-icon " src ="./images/food-icon.svg " width ="23 " height ="24 "
8385 alt ="Иконка: Тарелка с едой ">
8486 </ button >
@@ -89,6 +91,8 @@ <h2 class="pop-up__title">Новая привычка</h2>
8991 < form class ="pop-up__form " id ="pop-up-form ">
9092 < input class ="pop-up__form-input " id ="title-input " type ="text " name ="title-habbit " placeholder ="Название "
9193 autocomplete ="off ">
94+ < input class ="pop-up__form-input " id ="hidden-input " type ="text " name ="icon-habbit " placeholder ="Иконка "
95+ autocomplete ="off " value ="water-icon " hidden >
9296 < input class ="pop-up__form-input " id ="target-input " type ="number " name ="target-habbit "
9397 placeholder ="Цель/дней " autocomplete ="off ">
9498 < button class ="pop-up__form-btn " type ="submit "> Добавить</ button >
0 commit comments