File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,13 @@ <h2>Размеры, не относящиеся к отверстиям и ва
3434 </ div >
3535 < div class ="input-section ">
3636 < label > Введите размер с чертежа:</ label >
37- < select id ="partType ">
37+ < select id ="detail_type ">
3838 < option value ="hole "> Отверстие</ option >
3939 < option value ="shaft "> Вал</ option >
4040 < option value ="quasi_shaft "> Условный вал</ option >
4141 < option value ="undef "> Ни отверстие, ни вал</ option >
4242 </ select >
43- < input type ="text " id ="input " placeholder ="Например: 45,55 ">
43+ < input type ="text " id ="nominal_dimension " placeholder ="Например: 45,55 ">
4444 < button id ="calculate-btn "> Рассчитать</ button >
4545 </ div >
4646 < div class ="result-section ">
Original file line number Diff line number Diff line change @@ -69,8 +69,8 @@ import { postData } from '../common/api.js';
6969document . getElementById ( 'calculate-btn' ) . addEventListener ( 'click' , async ( ) => {
7070 try {
7171 // 1. Получаем данные из формы
72- const type = document . getElementById ( 'partType ' ) . value . trim ( ) ; // Значение из выпадающего списка
73- const size = document . getElementById ( 'input ' ) . value . trim ( ) ;
72+ const type = document . getElementById ( 'detail_type ' ) . value . trim ( ) ; // Значение из выпадающего списка
73+ const size = document . getElementById ( 'nominal_dimension ' ) . value . trim ( ) ;
7474
7575 // 2. Валидация
7676 if ( ! type ) {
You can’t perform that action at this time.
0 commit comments