RewriteEngine On
RewriteCond %{HTTP_HOST} ^site.com [OR]
RewriteCond %{HTTP_HOST} ^www.site.com [OR]
RewriteCond %{HTTP_HOST} ^www.site.net
RewriteCond %{THE_REQUEST} !^\S+\s/sub/
RewriteRule ^(.*)$ https://site.net/$1 [L,R=301]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^site.com [OR]
RewriteCond %{HTTP_HOST} ^www.site.com [OR]
RewriteCond %{HTTP_HOST} ^www.site.net
RewriteCond %{REQUEST_URI} !^/sub/
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^(.*)$ https://site.net/$1 [L,R=301]
if(!localStorage.popupLastView) localStorage.popupLastView = new Date()
if(localStorage.popupLastView && new Date() - localStorage.popupLastView > *тут сравнение*) {
тут ваша функция
}
jQuery(document).ready(function($) {
$(window).scroll(function(){
if (Cookies.get('hideDialog') === undefined) {
if ($(window).scrollTop() > 400)
$('#banner').animate({'top':'0px'},500);
else
$('#banner').stop(true).animate({'top':'-260px'},500);
});
}
$('#banner .close').bind('click',function(){
Cookies.set('hideDialog', '1', { expires: 1 });
$(this).parent().remove();
});
});
.menu ul li a {
display: flex;
align-items: center;
}
.menu ul li a img {
flex-shrink: 0;
margin-right: 10px;
}
.menu ul li a img {
align-self: stretch;
}
.menu ul li a {
display: flex;
align-items: baseline;
}