xxxxxxxxxx
1
<div class="container z-depth-1 my-5 pt-5 pb-3 px-5">
2
3
<!-- Section -->
4
<section>
5
6
<style>
7
.fa-play:before {
8
margin-left: .3rem;
9
}
10
11
/* Steps */
12
.step {
13
list-style: none;
14
margin: 0;
15
}
16
17
.step-element {
18
display: flex;
19
padding: 1rem 0;
20
}
21
22
.step-number {
23
position: relative;
24
width: 7rem;
25
flex-shrink: 0;
26
text-align: center;
27
}
28
29
.step-number .number {
30
color: #bfc5ca;
31
background-color: #eaeff4;
32
font-size: 1.5rem;
33
}
34
35
.step-number .number {
36
width: 48px;
37
height: 48px;
38
line-height: 48px;
39
}
40
41
.number {
42
display: inline-flex;
43
justify-content: center;
44
align-items: center;
45
width: 38px;
46
border-radius: 10rem;
47
}
48
49
.step-number::before {
50
content: '';
51
position: absolute;
52
left: 50%;
53
top: 48px;
54
bottom: -2rem;
55
margin-left: -1px;
56
border-left: 2px dashed #eaeff4;
57
}
58
59
.step .step-element:last-child .step-number::before {
60
bottom: 1rem;
61
}
62
</style>
63
64
<!-- Modal -->
65
<div class="modal fade" id="modal1" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
66
aria-hidden="true">
67
<div class="modal-dialog modal-lg modal-dialog-centered" role="document">
68
<div class="modal-content">
69
<div class="embed-responsive embed-responsive-16by9 z-depth-1-half">
70
<iframe id="player" class="embed-responsive-item" src="https://www.youtube.com/embed/7MUISDJ5ZZ4" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
71
</div>
72
</div>
73
</div>
74
</div>
75
76
<h3 class="font-weight-bold text-center dark-grey-text pb-2">Three Easy Steps</h3>
77
<hr class="w-header my-4">
78
<p class="lead text-center text-muted pt-2 mb-5">Explore the best MDB template in the market in a short 1-minute video.</p>
79
80
<div class="row align-items-center">
81
82
<div class="col-lg-6 mb-4">
83
<div class="view z-depth-1-half rounded">
84
<img class="rounded img-fluid" src="https://mdbootstrap.com/img/Photos/Horizontal/Work/12-col/img%20(6).jpg" alt="Video title">
85
<div class="mask flex-center rgba-black-light">
86
<a id="play" class="btn-floating btn-primary btn-lg" data-toggle="modal" data-target="#modal1"><i class="fas fa-play"></i></a>
87
</div>
88
</div>
89
</div>
90
91
<div class="col-lg-6 mb-4">
92
93
<ol class="step pl-0">
94
<li class="step-element pb-0">
95
<div class="step-number">
96
<span class="number">1</span>
97
</div>
98
<div class="step-excerpt">
99
<h6 class="font-weight-bold dark-grey-text mb-3">Write your requirements</h6>
100
<p class="text-muted">Think the or organization same proposal to affected heard reclined in be it reassuring.</p>
101
</div>
102
</li>
103
<li class="step-element pb-0">
104
<div class="step-number">
105
<span class="number">2</span>
106
</div>
107
<div class="step-excerpt">
108
<h6 class="font-weight-bold dark-grey-text mb-3">Sign the contract</h6>
109
<p class="text-muted">Think the or organization same proposal to affected heard reclined in be it reassuring.</p>
110
</div>
111
</li>
112
<li class="step-element pb-0">
113
<div class="step-number">
114
<span class="number">3</span>
115
</div>
116
<div class="step-excerpt">
117
<h6 class="font-weight-bold dark-grey-text mb-3">We start developing</h6>
118
<p class="text-muted">Think the or organization same proposal to affected heard reclined in be it reassuring.</p>
119
</div>
120
</li>
121
</ol>
122
123
</div>
124
125
</div>
126
127
</section>
128
<!-- Section -->
129
130
</div>
1
1
xxxxxxxxxx
1
$('#play').on('click', function (e) {
2
e.preventDefault();
3
$("#player")[0].src += "?autoplay=1";
4
$('#player').show();
5
$('#video-cover').hide();
6
})
7
$('#modal1').on('hidden.bs.modal', function (e) {
8
$('#modal1 iframe').attr("src", $("#modal1 iframe").attr("src"));
9
});
Console errors: 0