File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,10 @@ function formatPhone(e: Event) {
103103 let digits = input .replace (/ \D / g , ' ' );
104104
105105
106- if (digits .startsWith (' 8' ) || digits .startsWith (' 9' )) {
107- digits = ' 7' + digits .slice (1 );
106+ if (digits .startsWith (' 8' )) {
107+ digits = ' 78' + digits .slice (1 );
108+ } else if (digits .startsWith (' 9' )) {
109+ digits = ' 79' + digits .slice (1 );
108110 } else if (digits .startsWith (' 7' )) {
109111 } else if (! digits .startsWith (' 7' )) {
110112 digits = ' 7' + digits ;
@@ -165,7 +167,6 @@ function submitForm() {
165167 return ;
166168 }
167169 if (hcaptchaRef .value ) {
168- console .log (' here' )
169170 hcaptchaRef .value .execute ();
170171 }
171172}
Original file line number Diff line number Diff line change 2121 <li class =" nav__item link-remote" >
2222 <button class =" popup-trigger" aria-label =" Оставить заявку" >Получить карту в подарок</button >
2323 </li >
24- <li class =" nav__item" >
24+ <li class =" nav__item nav__item--tg " >
2525 <a href =" https://t.me/MultiAgent_io" class =" home-page__link--tg" target =" _blank" aria-label =" Запланировать замер для вашего умного дома" ></a >
2626 </li >
2727 </ul >
@@ -148,6 +148,10 @@ const mainUrl = withBase('/')
148148 color : #191919 ;
149149 }
150150
151+ .nav__item--tg {
152+ line-height : 0 ;
153+ }
154+
151155 .home-page__link--tg {
152156 display : block ;
153157 width : 40px ;
You can’t perform that action at this time.
0 commit comments