Commit 40e06695a518720373df1faccaa2de4865fd89bc
1 parent
b2b017e5
first
Showing
1 changed file
with
15 additions
and
17 deletions
Show diff stats
frontend/views/site/vacancies.php
... | ... | @@ -33,14 +33,11 @@ $(function () { |
33 | 33 | event.preventDefault(); |
34 | 34 | $('#overlay').fadeIn(400, |
35 | 35 | function(){ |
36 | - $('#modal_form') | |
37 | - .css('display', 'block') | |
38 | - .animate({opacity: 1, top: '50%'}, 200); | |
36 | + $('#modal_form').css('display', 'block').animate({opacity: 1, top: '50%'}, 200); | |
39 | 37 | }); |
40 | 38 | }); |
41 | - $('#modal_close, #overlay').click( function(){ | |
42 | - $('#modal_form') | |
43 | - .animate({opacity: 0, top: '45%'}, 200, // плавно меняем прозрачность на 0 и одновременно двигаем окно вверх | |
39 | + $('#overlay').click( function(){ | |
40 | + $('#modal_form').animate({opacity: 0, top: '45%'}, 200, | |
44 | 41 | function(){ |
45 | 42 | $(this).css('display', 'none'); |
46 | 43 | $('#overlay').fadeOut(400); |
... | ... | @@ -457,17 +454,18 @@ $(function () { |
457 | 454 | </div> |
458 | 455 | |
459 | 456 | <div id="modal_form"> |
460 | - <span id="modal_close">X</span> | |
461 | - <form action="" method="post"> | |
462 | - <h3>Простое модальное окно</h3> | |
463 | - <p>Тут может быть рандомная обычная форма например.</p> | |
464 | - <p>Ваше имя<br> | |
465 | - <input type="text" name="your-name" value="" size="40"> | |
466 | - </p> | |
467 | - <p>Ваш телефон<br> | |
468 | - <input type="text" name="your-name" value="" size="40"> | |
469 | - </p> | |
470 | - <p style="text-align: center; padding-bottom: 10px;"> | |
457 | + <form class="vacancies_form" action="" method="post"> | |
458 | + | |
459 | + <input type="text" name="" value="" placeholder="Имя"> | |
460 | + | |
461 | + <input type="text" name="" value="" placeholder="E-mail"> | |
462 | + | |
463 | + <input type="text" name="" value="" placeholder="Телефон"> | |
464 | + | |
465 | + <textarea name="" placeholder="Сообщение"></textarea> | |
466 | + | |
467 | + <input type="file" /> | |
468 | + | |
471 | 469 | <input type="submit" value="Отправить"> |
472 | 470 | </p> |
473 | 471 | </form> | ... | ... |