var gulpif = require('gulp-if');
var uglify = require('gulp-uglify');
var notMinified = function (file) {
return !/\.min\.js/.test(file.path);
};
gulp.task('task', function() {
gulp.src('./src/*.js')
.pipe(gulpif(notMinified , uglify()))
.pipe(gulp.dest('./dist/'));
});
#menu { font-size: 0; }
.menu {
line-height: 50px;
font-size: 0;
}
.menu span {
vertical-align:middle;
}
#posts {
+ flex-wrap: wrap;
}
+ #posts .post::after {
+ content: "";
+ display: block;
+ padding-bottom: 100%;
+ }
#posts .post {
- height: 0;
- padding-bottom: 25%;
}
function sortFunction1(a, b) {
if (a[0] === b[0]) {
return 0;
}
else {
return (+a[0] < +b[0]) ? -1 : 1;
}
}
a.sort(sortFunction1);
function sortFunction2(a, b) {
if (a[0] === b[0]) {
return 0;
}
else {
return (a[0] - 0 < b[0] - 0) ? -1 : 1;
}
}
a.sort(sortFunction2);
function sortFunction3(a, b) {
return a[0] - b[0];
}
a.sort(sortFunction3);
<button onclick="doPoll('vote'); return false;"
function doPoll(a, b) {
var c = document.getElementById("dlepollform_" + b)
#video_background {
-webkit-backface-visibility: hidden !important;
}
<a href="images/img3.jpg"> <--- big-img3.jpg
<img width="100%" height="100%" src="images/img3.jpg"> <-- thumb-img3.jpg
</a>
.easyzoom-flyout img {
max-width: none;
}
for (var i = 0; i < title.length; i++) {
(function(i){
title[i].addEventListener('click', function (event) {
event.preventDefault();
text[i].classList.toggle('main_item--open');
});
})(i);
}
$(document).on('click', '.modal .back', function(e) {
$(this).closest('modal').fadeOut(400);
});
$('#counter-minus').click(this.Down);
$('#counter-minus').on('click', this.Down.bind(this));