Last active
August 15, 2023 06:27
-
-
Save alex-boom/b295fe5b998aa6fc43808604e7efd382 to your computer and use it in GitHub Desktop.
Popup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//JS | |
$(".modal").magnificPopup(); | |
//html | |
/* | |
<a href="#modal" class="modal">обратный звонок</a> | |
<!-- MODAL START --> | |
<div class="modal-window hidden"> | |
<div class="modal-container"> | |
<div class="modal-wrapp" id="modal"> | |
<div class="modal-form-wrap"> | |
<h3>Оставьте свой номер телефона</h3> | |
<form method="post" class="modal-form"> | |
<input class="modal-tel" class="modal-phone" id="modal-phone" type="tel" name="phone" pattern="(\+?\d[- .]*){7,13}" title="Не менее 7 цифр" required > | |
<button class="modal-btn" type="submit">Заказать звонок</button> | |
</form> | |
</div> | |
</div> | |
</div> | |
</div> | |
<!-- MODAL END --> | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment