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
/************************************** | |
1. sudo gedit /opt/lampp/etc/httpd.conf | |
uncomment line: | |
**************************************/ | |
Include etc/extra/httpd-vhosts.conf | |
/*************************************************** | |
2. sudo gedit /opt/lampp/etc/extra/httpd-vhosts.conf | |
add this code to the end file: | |
***************************************************/ |
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
@font-face { | |
font-family: 'Proxima Nova'; | |
src: url('../fonts/proximanova-bold-webfont.eot'); | |
src: url('../fonts/proximanova-bold-webfont.eot?#iefix') | |
format('embedded-opentype'), | |
url('../fonts/proximanova-bold-webfont.woff2') format('woff2'), | |
url('../fonts/proximanova-bold-webfont.woff') format('woff'), | |
url('../fonts/proximanova-bold-webfont.ttf') format('truetype'), | |
url('../fonts/proximanova-bold-webfont.svg#proxima_novabold') | |
format('svg'); |
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
Осуществляется по данному адресу: | |
https://vk.com/dev/pages.clearCache | |
В инпут нужно вставить ссылку и нажать выполнить. | |
После этого кэш ссылки в вконтакте очистится и можно будет получить новый контент например: | |
<meta property="og:image" content="image.jpg" /> |
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
<meta property="og:title" content="Name of copany" /> | |
<meta property="og:site_name" content="Name of copany" /> | |
<meta property="og:locale" content="ru_RU" /> | |
<meta property="og:description" content="Desc of company" /> | |
<meta property="og:type" content="website" /> | |
<meta property="og:url" content="test.com" /> | |
<meta property="og:image" content="/path/to/the/img.jpg" /> | |
<meta property="vk:image" content="/path/to/the/img.jpg" /> |
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
<div class="question__main"> | |
<div class="question__icon"></div> | |
<div class="question__content"> | |
<div class="question__title"> | |
ВОПРОС:<br> | |
Можно ли выписать такого человека без его согласия? | |
</div> | |
<div class="question__answer"> |
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
<div id="up-arrow"></div> | |
</footer> |
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
var windowScroll = null; | |
var headerMenuNodePosition = headerMenuNode.offset().top; | |
var headerMenuNode = $('.js-header-menu'); | |
$(window).on('scroll load', function () { | |
windowScroll = $(window).scrollTop(); | |
if (windowScroll > headerMenuNodePosition) { | |
headerMenuNode.addClass(fixedClass); | |
} else { |
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
$(document).ready(function() { | |
$('.services__header-item-btn').click(function() { | |
$(this).addClass('go-to-the-service'); | |
$('.go-to-the-service').click(function() { | |
var link = $(this).attr('link'); | |
window.location.href = link; | |
}); | |
}); | |
}); |
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
jQuery(function() { | |
lazyLoad($('body')); | |
}); | |
function lazyLoad($content) { | |
$content.find('img[data-src], source[data-src], audio[data-src], iframe[data-src]').each(function(){ | |
$(this).attr('src', $(this).data('src')); | |
$(this).removeAttr('data-src'); | |
if($(this).is('source')){ |
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
<li class="header__menu-item"> | |
<a class="header__menu-link" href="#">Пункт меню</a> | |
<ul class="header__menu-sub"> | |
<li class="header__menu-sub-item">Подпункт меню</li> | |
<li class="header__menu-sub-item">Подпункт меню</li> | |
<li class="header__menu-sub-item">Подпункт меню</li> | |
<li class="header__menu-sub-item">Подпункт меню</li> | |
<li class="header__menu-sub-item">Подпункт меню</li> | |
<li class="header__menu-sub-item">Подпункт меню</li> | |
</ul> |