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
<button onclick="showPopup();">Нажми на меня, чтобы показать форму обратной связи</button> | |
<div class="popup"> | |
<div class="popup_bg"></div> | |
<div class="form"> | |
<form> | |
<input type="text" name="name" placeholder="Ваше имя"> | |
<input type="text" name="email" placeholder="Ваша почта"> | |
<textarea name="message" id="message" cols="30" rows="10" placeholder="Ваше сообщение"></textarea> | |
<input type="submit" value="Отправить"> | |
</form> |
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
//Detect Closest Edge | |
function closestEdge(x,y,w,h) { | |
var topEdgeDist = distMetric(x,y,w/2,0); | |
var bottomEdgeDist = distMetric(x,y,w/2,h); | |
var leftEdgeDist = distMetric(x,y,0,h/2); | |
var rightEdgeDist = distMetric(x,y,w,h/2); | |
var min = Math.min(topEdgeDist,bottomEdgeDist,leftEdgeDist,rightEdgeDist); | |
switch (min) { | |
case leftEdgeDist: |
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
/* start of DIVIDER*/ | |
.divider { | |
display: block; | |
max-width: 50px; | |
height: 2px; | |
background-color: #00e0d0; | |
border: none; | |
box-sizing: content-box; | |
overflow: hidden; | |
margin: 27px auto; |
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
<hr class="divider"> |
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
/* start of SWIPER PAGINATION*/ | |
.swiper_pagination { | |
display: block; | |
position: absolute; | |
z-index: 2; | |
transition: 300ms; | |
transform: translateX(-50%); | |
left: 50%; | |
bottom: 70px; | |
text-align: center; |
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
<!--start of SWIPER PAGINATION--> | |
<div class="swiper_pagination"> | |
<span class="swiper_pagination_bullet swiper_pagination_bullet_active"></span> | |
<span class="swiper_pagination_bullet"></span> | |
<span class="swiper_pagination_bullet"></span> | |
<span class="swiper_pagination_bullet"></span> | |
</div> | |
<!--end of SWIPER PAGINATION--> |