$('.rectCoords').on('mouseover', function(e) {
$(window).load(function() {
$("#container1").twentytwenty({
before_label: 'До',
after_label: 'После'
});
});
$(this.$el).find('.jplus-setting-vue').mousedown(function(event) {
if (event.which != 1) return;
theInterval = setInterval(function() {
vm.crowdfunding.goal =
(parseFloat(vm.crowdfunding.goal) ?parseFloat(vm.crowdfunding.goal):0) + addVelocity;
counter++;
if (addVelocity < 25) {
addVelocity++;
}
}, 400);
});
$(this.$el).find('.jplus-setting-vue').mouseup(function() {
window.clearInterval(theInterval);
if (counter === 0) {
vm.crowdfunding.goal++;
}
counter = 0;
addVelocity = 1;
});
$( function() {
var frutsEl = $('.b-fruts');
var discountsEl = $('.b-discounts');
frutsEl.on('change', function(item) {
var frut = $(this)
.find('option[value="' + $(this).val() + '"]').attr('data');
discountsEl
.find('option')
.hide()
.filter('[data="' + frut + '"]')
.show();
discountsEl
.val(
discountsEl
.find('option[data="' + frut + '"]:first')
.attr('value')
);
});
frutsEl.change();
} );
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/index.html$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.(css|gif|ico|jpg|js|png|swf|txt|svg|woff|ttf|eot)$
RewriteRule . index.html [L]
var input = [{
enabled: true,
categories: [{
enabled: false,
}, {
enabled: false,
}, {
enabled: true,
}],
}];
const walkCategory = entry => {
return Object.assign({}, entry, { enabled: true });
};
input[0].categories = R.map(walkCategory, input[0].categories);
console.log(input);
.child div {
height: 0em;
opacity: 0;
transition: 0.5s;
}
.child.animate div {
height: 2em;
opacity: 1;
}