"button"
Bootstrap 3.0.0 Snippet by Vadim1124

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div class="title">
<a href="#callback" class="button">Подробнее</a>
</div>
<div class="hidden">
<form class="popup-form callback zoom-anim-dialog" id="callback">
<div class="success">Спасибо за заявку! <br>
Наши менеджеры свяжутся с вами в ближайшее время.</div>
<!-- Hidden Required Fields -->
<input type="hidden" name="project_name" value="Site Name">
<input type="hidden" name="admin_email" value="vadimtsarenko777@gmail.com">
<input type="hidden" name="form_subject" value="Новая заявка">
<h3>Заказать звонок</h3>
<label>
<span>Ваше имя :</span>
<input type="text" name="Имя" placeholder="Введите ваше имя...">
</label>
<label>
<span>Ваш телефон :</span>
<input type="text" name="Телефон" placeholder="Введите ваш телефон..." required>
</label>
<div class="text-center">
<button class="button">Отправить</button>
</div>
<input class="formname" type="hidden" name="Форма" >
</form>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.button {
display: inline-block;
border: none;
color: #fff;
text-decoration: none;
background-color: #f9c869;
padding: 15px 45px;
font-size: 13px;
text-transform: uppercase;
font-weight: 600;
margin-top: 60px; /*delete*/
letter-spacing: 3px;
-webkit-border-radius: 2px;
border-radius: 2px;
text-align: center;
position: relative;
outline: none;
-webkit-transition: background-color .1s ease;
-o-transition: background-color .1s ease;
transition: background-color .1s ease; }
.button::after {
-webkit-transition: background-color .2s ease;
-o-transition: background-color .2s ease;
transition: background-color .2s ease;
position: absolute;
content: '';
height: 4px;
bottom: 0;
width: 100%;
background-color: #5f4004;
opacity: .18;
-webkit-border-bottom-left-radius: 2px;
border-bottom-left-radius: 2px;
-webkit-border-bottom-right-radius: 2px;
border-bottom-right-radius: 2px;
left: 0; }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
$(function() {
$('.popup-with-move-anim').magnificPopup({
type: 'inline',
fixedContentPos: false,
fixedBgPos: true,
overflowY: 'auto',
closeBtnInside: true,
preloader: false,
midClick: true,
removalDelay: 300,
mainClass: 'my-mfp-slide-bottom'
});
$(".callback").submit(function() { //Change
var th = $(this);
$.ajax({
type: "POST",
url: "mail.php", //Change
data: th.serialize()
}).done(function() {
$(".success").addClass("visible");
setTimeout(function() {
// Done Functions
th.trigger("reset");
$(".success").removeClass("visible");
$.magnificPopup.close();
}, 3000);
});
return false;
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: