var swiper = new Swiper(".mySwiper", {
pagination: {
el: ".swiper-pagination",
dynamicBullets: true,
dynamicMainBullets: 4
}
});
checkEmail: function () {
const _this = this
axios.post('/api/checkEmail', {
email: _this.email
}).then(res => {
if(res.data === false){
_this.requestForm();
} else {
_this.emailError = true;
}
}).catch(err => {
console.log(err);
})
},
.freeze{
overflow: hidden;
}
document.addEventListener("DOMContentLoaded", function(){
//if IsRefresh cookie exists
var IsRefresh = getCookie("IsRefresh");
if (IsRefresh != null && IsRefresh != "") {
//cookie exists then you refreshed this page(F5, reload button or right click and reload)
//SOME CODE
DeleteCookie("IsRefresh");
}
else {
//cookie doesnt exists then you landed on this page
//SOME CODE
setCookie("IsRefresh", "true", 1);
}
})
Applies to: all elements except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column
.section {
position: relative;
max-width: 1140px;
margin: 0 auto;
}
@media all and (max-width: 500px){
#nav-home {
height: 500px;
overflow: auto;
}
}
<button type="submit">Кнопка</button>
<input type="submit" value="Кнопка" />
transform: translateY(100px); -> transform: translateY(0);
opacity: 0 -> opacity: 1;
transform: translate(-50%, 0); -> transform: translate(-50%, -50%);
top: auto; -> top: 50%;
opacity: 1; -> opacity: 1;