Skip to content

Instantly share code, notes, and snippets.

/*html*/
<div class="loader">
<div class="loaderInner">
</div>
</div>
/*sass*/
.loader
background: none repeat scroll 0 0 #ffffff
/*Disable Animation on Mobile Devices*/
.wow
/*CSS transitions*/
-o-transition-property: none !important
-moz-transition-property: none !important
-ms-transition-property: none !important
-webkit-transition-property: none !important
transition-property: none !important
/*CSS transforms*/
-o-transform: none !important
/*phone enter mask*/
$(function(){
$("#phone").mask("+38 (999) 999-99-99");
});
/*elements autoheight*/
function autoHeight(){
var minHeight = 0;
$(".slider-price .inner-wrap").each(function () {
var height = parseInt($(this).height());
if(height > minHeight) {
minHeight = height;
};
});
$(".slider-price .inner-wrap").height(minHeight + 45 );
/*scroll navigation*/
$('.scroll').on('click', function(e) {
e.preventDefault();
var section = $(this).attr('href').substr($(this).attr('href').indexOf('#'));
var $section = $(section);
$('html, body').animate({
scrollTop: $section.offset().top-90
}, 1000);
/*button scroll-to-top*/
var amountScrolled = 200;
$(window).scroll(function() {
if ( $(window).scrollTop() > amountScrolled ) {
$('.to-top').fadeIn('slow');
} else {
$('.to-top').fadeOut('slow');
}
});
//GOOGLE MAPS API
//js
if (document.getElementById('map-canvas')){
var myLatlng = new google.maps.LatLng(49.5282699, 29.9455942);
var mapOptions = {
zoom: 15,
center: myLatlng
}
//js
/*form validate*/
$(function(){
$('.form-feedback').validate({
rules: {
name: {
required: true,
minlength: 2
},
phone: {
<script> new WOW().init(); </script>
/*placeholder sass*/
input::-webkit-input-placeholder
color: #c0392b
input::-moz-placeholder
color: #c0392b
input:-ms-input-placeholder
color: #c0392b