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 ScrollSpy = (function () { | |
var | |
screen = '[data-element="screen"]', | |
list = '[data-toggle="scroll-spy"]', | |
section = '[data-element="section"]', | |
active = 'active', | |
offset = $(window).height() / 1.4; | |
return { | |
init: function () { |
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
/* setEqualHeight */ | |
function setEqualHeight(columns) { | |
var | |
tallestcolumn = 0; | |
columns.each( function () { | |
currentHeight = $(this).outerHeight(true); | |
if (currentHeight > tallestcolumn) { |
rsync /folder_from/ --progress -r -e "ssh -p 3333" user@host:/folder_to/
Остановите сервер MySQL перед проверкой таблиц:
1 /etc/init.d/mysql stop Для старта проверки и восстановления таблиц MySQL выполняем такую команду:
1 myisamchk -r -q /var/lib/mysql/dataBase/table где dataBase – имя базы данных, table – файл данных таблицы
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
<noscript id="styles"> | |
<link rel="stylesheet" href="style1.css"> | |
<link rel="stylesheet" href="style2.css"> | |
</noscript> | |
<script> | |
var head = document.getElementsByTagName('head')[0], | |
stylesString = document.getElementById('styles').childNodes[0].textContent, | |
stylesRegex = /[^"]+\.css/g, | |
stylesResult = stylesString.match(stylesRegex); |
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
if ($(window).width() < 992) { | |
var _overlay = document.getElementsByClassName('no-scrolling'); | |
var _clientY = null; | |
for (var i = 0; i < _overlay.length; i++) { | |
_overlay[i].addEventListener('touchstart', function (event) { | |
if (event.targetTouches.length === 1) { | |
_clientY = event.targetTouches[0].clientY; | |
} | |
}, false); | |
_overlay[i].addEventListener('touchmove', function (event) { |
OlderNewer