<iframe
src="https://live.vkvideo.ru/app/embed/denzito?autoplay=true"
width="800"
height="450"
frameborder="0"
allowfullscreen
></iframe><script>
const stream = document.querySelector('iframe');
window.addEventListener(
'message',
(m) => {
if (m.source !== stream.contentWindow) {
return;
}
console.log(m.data);
},
);
</script>"embed-play"
{ event: "started", duration: 0, time: 0 }
{ event: "volumechange", volume: 1, mute: false }
"embed-pause"
{ event: "paused", time: 0 }stream.contentWindow.postMessage</stream>; Note: httpOnly cookies are supported at the BETA versions of Tampermonkey only for nowТак что попробуйте перейти на бету.
Applications should read a PDF File from its end.
const orders = document.querySelectorAll('.item-order');
orders.forEach((el) => el.classList.toggle('order-active'));const type_input = document.getElementById("type_input").value;
const type_name = ['фильм', 'сериал', 'мультсериал', 'мультфильм', 'аниме'];
const type_idx = type_name.indexOf(type_input);
let type = 0;
if (type_idx === -1) {
alert('Добавьте или исправьте тип');
} else {
type = type_idx + 1;
}If the element which supports keyboard input (such as an input element, or any other element that would triggers a virtual keyboard to be shown on focus if a physical keyboard were not present), indicate focus.
$(document).on("touchmove", carditem_s3, function(e) { ... });
$(document).bind('touchend', function() { ... }); То есть, привязка обработчика touchend выполняется ко всему документу, без каких либо ограничений. - let text = `{"content":"<svg width=\"133\" height=\"510\" viewBox=\"0 0 133 510\">"}`
+ let text = '{"content":"<svg width=\\"133\\" height=\\"510\\" viewBox=\\"0 0 133 510\\">"}'console.log(JSON.stringify({content: '<svg width="133" height="510" viewBox="0 0 133 510">'}))
// '{"content":"<svg width=\\"133\\" height=\\"510\\" viewBox=\\"0 0 133 510\\">"}'