@font-face {
font-family: 'Web font';
src: url('webfont.woff2') format('woff2'),
url('webfont.ttf') format('truetype'), /* Только если нужна поддержка старых Android, иначе закомментировать */
url('webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
<ifModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript application/font-woff2 image/svg+xml
</ifModule>
.aki {
position: relative;
}
.aki::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1;
background: rgb(0, 0, 0, 0.5);
background: -webkit-gradient(linear, left bottom, left top, from(rgb(0, 0, 0, 0.5)), color-stop(30%, rgb(255, 255, 250, 0)));
background: linear-gradient(0deg, rgb(0, 0, 0, 0.5) 0%, rgb(255, 255, 250, 0) 30%);
}
.aki {
position: relative;
}
.aki::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1;
background: rgb(0, 0, 0, 0.5);
background: -webkit-gradient(linear, left bottom, left top, from(rgb(0, 0, 0, 0.5)), color-stop(30%, rgb(255, 255, 250, 0)));
background: linear-gradient(0deg, rgb(0, 0, 0, 0.5) 0%, rgb(255, 255, 250, 0) 30%);
}
<script>
jQuery('a[href*="#"]')
// Remove links that don't actually link to anything
.not('[href="#"]')
.not('[href="#0"]')
.on('click', function(event) {
event.preventDefault();
// On-page links
var _this = jQuery(this), id = _this.attr('href').substring(_this.attr('href').indexOf('#'));
if(jQuery(id).length > 0) {
// Figure out element to scroll to
var target = jQuery(this.hash);
target = target.length ? target : jQuery('[name=' + this.hash.slice(1) + ']');
// Does a scroll target exist?
if (target.length) {
// Only prevent default if animation is actually gonna happen
event.preventDefault();
jQuery('html, body').animate({
scrollTop: target.offset().top
}, 1000, function() {
});
}
} else {
window.location.href = _this.attr('href');
}
});
var target = window.location.hash;
// delete hash so the page won't scroll to it
window.location.hash = "";
// now whenever you are ready do whatever you want
// (in this case I use jQuery to scroll to the tag after the page has loaded)
$(window).on('load', function() {
if (jQuery(target).length) {
$('html, body').animate({
scrollTop: jQuery(target).offset().top
}, 700, 'swing', function () {});
}
});
jQuery(function(){
if(jQuery(target).length > 0) {
jQuery('html, body').animate({
scrollTop: jQuery(target).offset().top
}, 1000, function() {
history.pushState(null,null, target);
});
}
return false;
});
</script>
<script>
function myFunction() {
document.getElementById("myDropdown").classList.toggle("show");
}
function filterFunction() {
var input, filter, ul, li, a, i;
input = document.getElementById("myInput");
filter = input.value.toUpperCase();
div = document.getElementById("myDropdown");
a = div.getElementsByTagName("a");
for (i = 0; i < a.length; i++) {
if (a[i].innerHTML.toUpperCase().indexOf(filter) > -1) {
a[i].style.display = "";
} else {
a[i].style.display = "none";
}
}
}
jQuery(document).on('ready', function() {
var filter = jQuery('#myDropdown'), links = filter.find('a'), btn = jQuery('.dropbtn')
links.each(function(index, el) {
var _this = jQuery(el), attr_href = _this.attr('href'), re = new RegExp(attr_href.replace(/\\/g, ''),'ig');
if(re.test(window.location.pathname)) {
_this.addClass('selected');
btn.text(_this.text());
}
});
});
</script>
.drt a.selected {
background: #F48951;
color: #fff;
}
<script src="https://e-timer.ru/js/etimer.js"></script>
.eTimer, .etUnit, .etNumber, .etSep {
font-size: 60px;
}
.etSign {
font-size: 18px;
}
@media only screen and (max-width:860px) {
.eTimer, .etUnit, .etNumber, .etSep {
font-size: 40px;
}
.etSign {
font-size: 16px;
}
}