{"id":1623,"date":"2024-01-22T11:36:20","date_gmt":"2024-01-22T09:36:20","guid":{"rendered":"https:\/\/www.ev-now.org\/index.php\/2024\/01\/22\/le-live-di-oggi\/"},"modified":"2024-04-22T23:10:47","modified_gmt":"2024-04-22T21:10:47","slug":"le-live-di-oggi","status":"publish","type":"post","link":"https:\/\/www.ev-now.org\/index.php\/2024\/01\/22\/le-live-di-oggi\/","title":{"rendered":"Le live di oggi"},"content":{"rendered":"\n<p>Puoi seguire le live del Presidente eV-Now! Daniele Invernizzi direttamente da questa pagina o cliccando sul link YouTube:<\/p>\n\n\n\n<p>Live alle ore 18.00 con <strong>FlashBattery<\/strong><\/p>\n\n\n\n<p>Inserisci tra qui <\/p>\n\n<p>const requestOptions = {<br \/>\n    method: &#8216;GET&#8217;,<br \/>\n    redirect: &#8216;follow&#8217;<br \/>\n};<\/p>\n<p>const loadVideo = (iframe) => {<br \/>\n    const cid = iframe.getAttribute(&#8216;cid&#8217;);<br \/>\n    const channelURL = UC_nacXEuVGnY_Yexhtr7ETQ encodeURIComponent(`https:\/\/www.youtube.com\/feeds\/videos.xml?channel_id=${cid}`)<br \/>\n    const reqURL = `https:\/\/api.rss2json.com\/v1\/api.json?rss_url=${channelURL}`;<br \/>\n    fetch(reqURL, requestOptions)<br \/>\n        .then(response => response.json())<br \/>\n        .then(result => {<br \/>\n            const videoNumber = (iframe.getAttribute(&#8216;vnum&#8217;) ? Number(iframe.getAttribute(&#8216;vnum&#8217;)) : 0);<br \/>\n            const link = result.items[videoNumber].link;<br \/>\n            const id = link.substr(link.indexOf(&#8220;=&#8221;) + 1);<br \/>\n            iframe.setAttribute(&#8220;src&#8221;, `https:\/\/youtube.com\/embed\/${id}?controls=0&#038;autoplay=1`);<br \/>\n        })<br \/>\n        .catch(error => console.log(&#8216;error&#8217;, error));<br \/>\n}<br \/>\nvar iframes = document.getElementsByClassName(&#8216;latestVideoEmbed&#8217;);<br \/>\nfor (var i = 0, len = iframes.length; i < len; i++) {\n    loadVideo(iframes[i]);\n}\n<\/p>\n\n\n<p>results<\/p>\n\n\n<p>E qui <\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Batteria atomica a lunga durata, Mercedes: dubbi sullo stato solido, AI per ridurre la materia prima\" width=\"1032\" height=\"581\" src=\"https:\/\/www.youtube.com\/embed\/3iJ7OgT-E2o?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Live ore 19.00 con <strong>Tesla Owners Italia<\/strong> <\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Tesla ghiacciate: tutta una bufala!\" width=\"1032\" height=\"581\" src=\"https:\/\/www.youtube.com\/embed\/41dEzvaH2eI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Puoi seguire le live del Presidente eV-Now! Daniele Invernizzi direttamente da questa pagina o cliccando sul link YouTube: Live alle ore 18.00 con FlashBattery Inserisci &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1622,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[29,27,28],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.ev-now.org\/wp-content\/uploads\/2024\/01\/img_4215-1.jpg?fit=1284%2C729&ssl=1","_links":{"self":[{"href":"https:\/\/www.ev-now.org\/index.php\/wp-json\/wp\/v2\/posts\/1623"}],"collection":[{"href":"https:\/\/www.ev-now.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ev-now.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ev-now.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ev-now.org\/index.php\/wp-json\/wp\/v2\/comments?post=1623"}],"version-history":[{"count":21,"href":"https:\/\/www.ev-now.org\/index.php\/wp-json\/wp\/v2\/posts\/1623\/revisions"}],"predecessor-version":[{"id":1648,"href":"https:\/\/www.ev-now.org\/index.php\/wp-json\/wp\/v2\/posts\/1623\/revisions\/1648"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ev-now.org\/index.php\/wp-json\/wp\/v2\/media\/1622"}],"wp:attachment":[{"href":"https:\/\/www.ev-now.org\/index.php\/wp-json\/wp\/v2\/media?parent=1623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ev-now.org\/index.php\/wp-json\/wp\/v2\/categories?post=1623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ev-now.org\/index.php\/wp-json\/wp\/v2\/tags?post=1623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}