Skip to content

Instantly share code, notes, and snippets.

font-size: calc( 4rem + ((2 - 1) * 16) * (100vw - 320px) / (848 - 320) )
$(document).ready(function () {
$('input,textarea').focus(function(){
$(this).data('placeholder',$(this).attr('placeholder'))
$(this).attr('placeholder','');
});
$('input,textarea').blur(function(){
$(this).attr('placeholder',$(this).data('placeholder'));
});
});
$(".tabs").on("click", "li", function(){
$(".tabs li").removeClass("active"); //удаляем класс во всех вкладках
$(this).addClass("active"); //добавляем класс текущей (нажатой)
});
<link rel="shortcut icon" href="img/favicon/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" href="img/favicon/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="img/favicon/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="img/favicon/apple-touch-icon-114x114.png">
$('.btn_mnu').click(function(){
if($('.menu').is(':visible')){
$('.menu').fadeOut(500);
} else {
$('.menu').fadeIn(600);
};
});
$(".menu a, .logo").mPageScroll2id({
offset: 0,
scrollSpeed: 800
});
/*
* Replace all SVG images with inline SVG
*/
$('img.img-svg').each(function () {
var $img = jQuery(this);
var imgID = $img.attr('id');
var imgClass = $img.attr('class');
var imgURL = $img.attr('src');
$.get(imgURL, function (data) {
$(".top_nav a, .top").mPageScroll2id({
offset: 50,
scrollSpeed: 1000
});
/*Base style*/
*::-webkit-input-placeholder
color: #1e1e1e
opacity: 1
*:-moz-placeholder
color: #666
opacity: 1
*::-moz-placeholder
$(document).ready(function() {
//Таймер обратного отсчета
//Документация: http://keith-wood.name/countdown.html
//<div class="countdown" date-time="2015-01-07"></div>
var austDay = new Date($(".countdown").attr("date-time"));
$(".countdown").countdown({until: austDay, format: 'yowdHMS'});
//Попап менеджер FancyBox
//Документация: http://fancybox.net/howto