// checkbox
{
"type": "checkbox",
"name": "checkbox-name",
"id": "checkbox-1",
"checked": true
}
// select
{
"type": "select",
"name": "select-name",
"id": "select-1",
"options": [
{
"value": 0,
"label": "Option 1"
},
{
"value": 1,
"label": "Option 2"
}
]
}
.lessons-item
position relative
&__content
position relative
z-index 1
&__popup
position absolute
z-index 2
$('button').click(function(event){
event.preventDefault();
alert($('.form').serialize());
// ajax код $('.form').serialize() суем в дата
$.ajax({
type: "POST",
data: $('.form').serialize(),
url: $('.form').attr('action'),
success: function(data) {
...
}
});
});
gulp.src('src/img/')
на return gulp.src('src/img/**/*.{jpg,png}'))
var changed = require("gulp-changed");
gulp.task('imgresize', function () {
return gulp.src('src/img/')
.pipe(changed("build"))
.pipe(imageresize({
width : 100,
height : 100,
crop : true,
upscale : false
}))
.pipe(gulp.dest('build/img/'));
});