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
// Для корректной разметки рекомендуется использовать таб равный 2 пробелам. | |
const | |
// Подключаем таким образом пакеты для работы с ними. | |
gulp = require('gulp'), // Gulp | |
sass = require('gulp-sass'), // Sass | |
browserSync = require('browser-sync'), // Browser Sync | |
jshint = require('gulp-jshint'), // Для обнаружения ошибок в JS | |
concat = require('gulp-concat'), // Для конкатенации файлов | |
uglify = require('gulp-uglify'), // Для сжатия JS | |
cleancss = require('gulp-clean-css'), // Для минификации CSS |
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
.gallery-wall | |
- function rndplaceholder() { | |
- function getRnd(min, max) {return Math.floor(Math.random() * (max - min) + min);} | |
- rndW = getRnd(400, 600) | |
- rndH = getRnd(300, 700) | |
//- return ("http://placehold.it/" + rndW + "x" + rndH); | |
//- return ("http://lorempixel.com/" + rndW + "/" + rndH + "/abstract"); | |
- return ("https://unsplash.it/" + rndW + "/" + rndH); | |
- } |
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
// Stack scroll by flag | |
function ScrollControll(flag) | |
{ | |
if (flag) | |
{ | |
scrollTop = $(window).scrollTop(); | |
scrollLeft = $(window).scrollLeft(); | |
$(window).on('scroll mousewheel', function(event) | |
{ | |
event.preventDefault(); |
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
/** | |
* @returns {number} Возвращает количество пикселей ширины полосы прокрутки браузера. | |
*/ | |
static getScrollWidth() | |
{ | |
let div = document.createElement('div'); | |
div.style.display = 'inline-block'; | |
div.style.visability = 'hidden'; | |
div.style.width = '50px'; | |
div.style.height = '50px'; |
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
curl -fsSL https://get.docker.com | sh |