<video/>
атрибут autoplay
, но к нему в паре обязательно ещё указывать muted
. Ну а можно воспользоваться специальным API для проигрывания видео. outsideClick: function(e) {
var target = $(e.target);
// if the page is clicked anywhere except within the daterangerpicker/button
// itself then call this.hide()
if (
// ie modal dialog fix
e.type == "focusin" ||
target.closest(this.element).length ||
target.closest(this.container).length ||
target.closest('.calendar-table').length
) return;
this.hide();
this.element.trigger('outsideClick.daterangepicker', this);
},
https://github.com/dangrossman/daterangepicker/blo...// Bind global datepicker mousedown for hiding and
$(document)
.on('mousedown.daterangepicker', this._outsideClickProxy)
// also support mobile devices
.on('touchend.daterangepicker', this._outsideClickProxy)
// also explicitly play nice with Bootstrap dropdowns, which stopPropagation when clicking them
.on('click.daterangepicker', '[data-toggle=dropdown]', this._outsideClickProxy)
// and also close when focus changes to outside the picker (eg. tabbing between controls)
.on('focusin.daterangepicker', this._outsideClickProxy);
https://github.com/dangrossman/daterangepicker/blo...move: function () {
var parentOffset = {
top: this.parentEl.offset().top - (this.parentEl.is('body') ? 0 : this.parentEl.scrollTop()),
left: this.parentEl.offset().left - (this.parentEl.is('body') ? 0 : this.parentEl.scrollLeft())
};
if (this.opens == 'left') {
this.container.css({
top: this.element.offset().top + this.element.outerHeight() - parentOffset.top,
right: $(window).width() - this.element.offset().left - this.element.outerWidth() - parentOffset.left,
left: 'auto'
});
if (this.container.offset().left < 0) {
this.container.css({
right: 'auto',
left: 9
});
}
} else {
this.container.css({
top: this.element.offset().top + this.element.outerHeight() - parentOffset.top,
left: this.element.offset().left - parentOffset.left,
right: 'auto'
});
if (this.container.offset().left + this.container.outerWidth() > $(window).width()) {
this.container.css({
left: 'auto',
right: 0
});
}
}
},
_
и элемент не находится.projectPath[projectName].url
- .replace(new RegExp(`\\b${ lastTime }\\b`)
+ .replaceAll(new RegExp(`\\b${ lastTime }\\b`, `g`)
function dataDebug($data, $flag = false)
{
echo '<div class="debug-entry">';
echo '<pre>';
if (!$flag) {
print_r($data);
} else {
var_dump($data);
}
echo '</pre>';
echo '</div>';
echo <<<JS
<script>
if (!window.debug_entries_moved) {
window.debug_entries_moved = true;
const $container = document.createElement(`div`);
$container.classList.add(`mc__debugger`);
[...document.querySelectorAll(`.debug-entry`)].forEach(($entry) => {
$container.appendChild($entry);
});
document.body.appendChild($container);
}
</script>
JS;
}
span
один раз при запуске скрипта и туда попадает первый span
первого div
.div.addEventListener('click', function(e) {
let span = this.querySelector('span');
set.add(this.textContent);
let arr = [...set];
el1.textContent = arr.join(', ');
sum += +span.textContent;
console.log(span.textContent);
el2.textContent = sum;
})