let blocks = document.querySelectorAll('.parent span'),
result = document.querySelector('#result'),
multiplier = 0;
addPlus(block,whereToAdd){
block.forEach(function(el){
multiplier +=el.innerHTML;
})
result.innerHTML = multiplier;
}
addPlus(blocks,result);
Dropzone.options.myAwesomeDropzone = {
maxFiles: 1,
accept: function(file, done) {
console.log("uploaded");
done();
},
init: function() {
this.on("maxfilesexceeded", function(file){
alert("No more files please!");
});
}
};
Dropzone.options.myAwesomeDropzone = {
maxFiles: 3,
accept: function(file, done) {
console.log("uploaded");
done();
},
init: function() {
this.on("maxfilesexceeded", function(file){
alert("No more files please!");
});
}
};
let sh = $('#show');
$('.popup-promotion').on('load',function(){
if( scrollValue > sh.offset().top+sh.heigth()){
$('.popup-promotion.user-ads-filter .container').css({top: scrollValue + "px", marginTop: "2%"})
} else {
$('.popup-promotion.user-ads-filter .container').css({marginTop: "2%"})
}
})
Код хотелось бы:)
$1$2 -> <div class="other-class">$1</div>$2
If the user agent is configured not to allow automatic or script-initiated playback of media, calling play() will cause the returned promise to be immediately rejected with a "NotAllowedError". Web sites should be prepared to handle this situation.