$("#myform input:text").each(function(index, formField) {
data[formField.name] = $(formField).val();
})
$("#myform input[name=abc]")[0].value;
describe("selectChannel method", function () {
const tv = new TV();
tv.power();
it("does not allow selecting channel above 98", function () {
assert.isFalse(tv.selectChannel(100));
});
it("selects provided channel number if it matches requirements", function () {
tv.selectChannel(88)
assert.isEqual(tv._channel, 88);
});
});
const paymentIframe = new PaymentIframe({
...
customCssLink: 'http://mycoolpage.ru/public/payment-custom-stylesheet.css',
...
});
:nth-child
function connect(
mapStateToProps,
mapDispatchToProps,
mergeProps,
{
pure = true,
areStatesEqual = strictEqual,
areOwnPropsEqual = shallowEqual,
areStatePropsEqual = shallowEqual,
areMergedPropsEqual = shallowEqual,
...extraOptions
} = {}
) {
...
}
.inside .item-wrap.portfolio-popup {
cursor: pointer;
}
function pixflow_portfolioPopup() {
'use strict';
$('body').on('click',".inside .item-wrap.portfolio-popup",function(e){
var element= e.target || e.srcElement;
if ((e.which != 2) ) { // <-- убрал проверку ширины экрана здесь.
if (element.attributes.class.nodeValue.indexOf('icon') < 0) {
$.magnificPopup.open({
items: {
src: $(this).find(".item-image").attr('data-src')
},
overflowY:'scroll',
type: 'image',
closeOnContentClick: false,
closeBtnInside: false,
mainClass: 'mfp-with-zoom mfp-img-mobile',
callbacks: {
beforeOpen: function () {
},
afterClose: function () {
$("html").css({'overflow-y': 'auto'});
},
}
}, 0);
}
}
});
$('body').on('click', ".outside .item-image.portfolio-popup", function () {
//убрал проверку ширины экрана здесь.
$.magnificPopup.open({
items: {
src: $(this).attr('data-src')
},
overflowY:'scroll',
type: 'image',
closeOnContentClick: false,
closeBtnInside: false,
mainClass: 'mfp-with-zoom mfp-img-mobile',
callbacks: {
beforeOpen: function () {
},
afterClose: function () {
$("html").css({'overflow-y': 'auto'});
},
}
}, 0);
});
}