This file contains 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
//smooth scroll function | |
$('a[href^="#"]').click(function () { | |
elementClick = $(this).attr("href"); | |
destination = $(elementClick).offset().top; | |
$('html,body').animate( { scrollTop: destination }, 1000 ); | |
return false; | |
}); |
This file contains 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
//Аякс отправка форм | |
//Документация: http://api.jquery.com/jquery.ajax/ | |
$("#form").submit(function(e) { | |
e.preventDefault; | |
$.ajax({ | |
type: "POST", | |
url: "mail.php", | |
data: $(this).serialize() | |
}).done(function() { | |
alert("Спасибо за заявку!"); |
This file contains 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
//make jumbotron adjust to full size of user's viewport on load and after resize | |
function adjustJumbo(){ | |
$('.jumbotron').outerHeight($(window).height()-120); | |
} | |
adjustJumbo(); | |
$(window).resize(function() {adjustJumbo();}); | |
//make a red arrow under the jumbotron move with the scrolling and disappear | |
$(window).scroll(function() { | |
var coords = ($(window).scrollTop() / 6 ).toFixed(1); |
This file contains 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
$(".item").magnificPopup({ | |
type : 'image', | |
gallery : { | |
enabled : true | |
}, | |
removalDelay: 300, | |
mainClass: 'mfp-fade' | |
}); |
This file contains 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
.mfp-content | |
width: 100% | |
.mfp-container | |
padding: 0 | |
img.mfp-img | |
display: block | |
max-width: 100% | |
height: auto |
This file contains 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
@mixin font-size-em($size) | |
font-size: $size / $font-size-base * 1em | |
@mixin line-height-em($size) | |
line-height: $size / $font-size-base * 1em | |
@mixin display-flex | |
display: -webkit-flex | |
display: -moz-flex | |
display: -ms-flex |
This file contains 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
<body onload="initialize()"> | |
<!-- | |
HTML-code | |
--> | |
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyDUkdtaBd_1FBRCG5BMOdHILr-paQ7aTUQ&sensor=false"> // | |
</script> | |
<script type="text/javascript"> |
This file contains 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
// You can use data-attribute | |
[data-icon]:before | |
font-family:qlean-icons!important | |
content:attr(data-icon) | |
font-style:normal!important | |
font-weight:400!important | |
font-variant:normal!important | |
text-transform:none!important | |
speak:none |
OlderNewer