{"id":19465,"date":"2024-01-05T21:11:44","date_gmt":"2024-01-05T20:11:44","guid":{"rendered":"https:\/\/fenekrally.com\/video-di-gare-su-youtube\/"},"modified":"2026-01-30T22:17:04","modified_gmt":"2026-01-30T21:17:04","slug":"video-di-youtube","status":"publish","type":"page","link":"https:\/\/fenekrally.com\/it\/video-di-youtube\/","title":{"rendered":"Video di gare su Youtube"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"19465\" class=\"elementor elementor-19465 elementor-13187\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-afe8157 e-flex e-con-boxed e-con e-parent\" data-id=\"afe8157\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;slideshow&quot;,&quot;background_slideshow_gallery&quot;:[{&quot;id&quot;:21995,&quot;url&quot;:&quot;https:\\\/\\\/fenekrally.com\\\/wp-content\\\/uploads\\\/2025\\\/12\\\/251121_GOWMEDIA_FNKR_MS-15-4-scaled.jpg&quot;},{&quot;id&quot;:21861,&quot;url&quot;:&quot;https:\\\/\\\/fenekrally.com\\\/wp-content\\\/uploads\\\/2025\\\/12\\\/251121_GOWMEDIA_FNKR_E05_MS-109-scaled.jpg&quot;},{&quot;id&quot;:21178,&quot;url&quot;:&quot;https:\\\/\\\/fenekrally.com\\\/wp-content\\\/uploads\\\/2025\\\/12\\\/251120_GOWMEDIA_FNKR_E04_MS-1-scaled.jpg&quot;},{&quot;id&quot;:21141,&quot;url&quot;:&quot;https:\\\/\\\/fenekrally.com\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/251116_GOWMEDIA_FNKR_Prologo_DD-155-scaled.jpg&quot;},{&quot;id&quot;:21026,&quot;url&quot;:&quot;https:\\\/\\\/fenekrally.com\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/251121_GOWMEDIA_FNKR_E05_MS-22-scaled.jpg&quot;}],&quot;background_slideshow_slide_duration&quot;:3000,&quot;background_slideshow_transition_duration&quot;:1000,&quot;background_slideshow_lazyload&quot;:&quot;yes&quot;,&quot;background_slideshow_ken_burns&quot;:&quot;yes&quot;,&quot;background_slideshow_loop&quot;:&quot;yes&quot;,&quot;background_slideshow_slide_transition&quot;:&quot;fade&quot;,&quot;background_slideshow_ken_burns_zoom_direction&quot;:&quot;in&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-a641578 e-flex e-con-boxed e-con e-child\" data-id=\"a641578\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-c7d1819 e-con-full e-flex e-con e-child\" data-id=\"c7d1819\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-85e7bfc elementor-widget elementor-widget-heading\" data-id=\"85e7bfc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">Video di gare su Youtube<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e312de6 elementor-mobile-align-center elementor-align-center elementor-widget elementor-widget-button\" data-id=\"e312de6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm elementor-animation-shrink\" href=\"https:\/\/youtube.com\/@fenekrallysl\" target=\"_blank\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Iscriviti al canale<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-1588aff e-flex e-con-boxed e-con e-parent\" data-id=\"1588aff\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-791bb34 e-con-full e-flex e-con e-child\" data-id=\"791bb34\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-27b7c2b elementor-widget elementor-widget-heading\" data-id=\"27b7c2b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-heading-title elementor-size-default\">Archivio video<\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-01f06c5 elementor-widget-divider--separator-type-pattern elementor-widget-divider--no-spacing elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"01f06c5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\" style=\"--divider-pattern-url: url(&quot;data:image\/svg+xml,%3Csvg xmlns=&#039;http:\/\/www.w3.org\/2000\/svg&#039; preserveAspectRatio=&#039;xMidYMid meet&#039; overflow=&#039;visible&#039; height=&#039;100%&#039; viewBox=&#039;0 0 126 26&#039; fill=&#039;black&#039; stroke=&#039;none&#039;%3E%3Cpath d=&#039;M3,10.2c2.6,0,2.6,2,2.6,3.2S4.4,16.5,3,16.5s-3-1.4-3-3.2S0.4,10.2,3,10.2z M18.8,10.2c1.7,0,3.2,1.4,3.2,3.2s-1.4,3.2-3.2,3.2c-1.7,0-3.2-1.4-3.2-3.2S17,10.2,18.8,10.2z M34.6,10.2c1.5,0,2.6,1.4,2.6,3.2s-0.5,3.2-1.9,3.2c-1.5,0-3.4-1.4-3.4-3.2S33.1,10.2,34.6,10.2z M50.5,10.2c1.7,0,3.2,1.4,3.2,3.2s-1.4,3.2-3.2,3.2c-1.7,0-3.3-0.9-3.3-2.6S48.7,10.2,50.5,10.2z M66.2,10.2c1.5,0,3.4,1.4,3.4,3.2s-1.9,3.2-3.4,3.2c-1.5,0-2.6-0.4-2.6-2.1S64.8,10.2,66.2,10.2z M82.2,10.2c1.7,0.8,2.6,1.4,2.6,3.2s-0.1,3.2-1.6,3.2c-1.5,0-3.7-1.4-3.7-3.2S80.5,9.4,82.2,10.2zM98.6,10.2c1.5,0,2.6,0.4,2.6,2.1s-1.2,4.2-2.6,4.2c-1.5,0-3.7-0.4-3.7-2.1S97.1,10.2,98.6,10.2z M113.4,10.2c1.2,0,2.2,0.9,2.2,3.2s-0.1,3.2-1.3,3.2s-3.1-1.4-3.1-3.2S112.2,10.2,113.4,10.2z&#039;\/%3E%3C\/svg%3E&quot;);\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a23e092 elementor-widget elementor-widget-heading\" data-id=\"a23e092\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Video di gare<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-68e6fbd e-con-full e-flex e-con e-child\" data-id=\"68e6fbd\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-93257fd elementor-widget elementor-widget-shortcode\" data-id=\"93257fd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t    <style>\n    #youtube-video-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n        gap: 20px;\n    }\n    #youtube-video-grid img {\n        width: 100%;\n        border-radius: 8px;\n        cursor: pointer;\n        transition: transform 0.3s ease;\n    }\n    #youtube-video-grid img:hover {\n        transform: scale(1.05);\n    }\n    #youtube-video-grid p {\n        margin-top: 8px;\n        font-size: 14px;\n        text-align: center;\n    }\n    .yt-lightbox {\n        display: none;\n        position: fixed;\n        z-index: 9999;\n        top: 0;\n        left: 0;\n        width: 100%;\n        height: 100%;\n        background: rgba(0,0,0,0.85);\n        justify-content: center;\n        align-items: center;\n    }\n    .yt-lightbox iframe {\n        width: 80%;\n        height: 70%;\n        border: none;\n        border-radius: 10px;\n    }\n    .yt-close {\n        position: absolute;\n        top: 20px;\n        right: 40px;\n        font-size: 40px;\n        color: #fff;\n        cursor: pointer;\n    }\n    @media (max-width: 768px) {\n        .yt-lightbox iframe { width: 95%; height: 55%; }\n    }\n    <\/style>\n\n    <div id=\"youtube-video-grid\"><\/div>\n    <div class=\"yt-lightbox\" id=\"yt-lightbox\">\n        <span class=\"yt-close\" id=\"yt-close\">&times;<\/span>\n        <iframe id=\"yt-player\" src=\"\" allowfullscreen><\/iframe>\n    <\/div>\n\n    <script>\n    document.addEventListener('DOMContentLoaded', function() {\n        const apiKey = \"AIzaSyAjrEeFgxNWd-HJ4NzzIhJwIFxWnhTixFI\";\n        const channelId = \"UCuKeklZYUhkyLN4zNx4rE-Q\";\n        const maxResults = 99;\n        const container = document.getElementById(\"youtube-video-grid\");\n        const lightbox = document.getElementById(\"yt-lightbox\");\n        const player = document.getElementById(\"yt-player\");\n        const closeBtn = document.getElementById(\"yt-close\");\n\n        async function fetchVideos() {\n            try {\n                const response = await fetch(`https:\/\/www.googleapis.com\/youtube\/v3\/search?key=${apiKey}&channelId=${channelId}&part=snippet,id&order=date&maxResults=${maxResults}`);\n                const data = await response.json();\n                if (!data.items) {\n                    container.innerHTML = \"<p style='text-align:center;color:red;'>No videos found or quota exceeded.<\/p>\";\n                    return;\n                }\n                data.items.forEach(video => {\n                    if (video.id.kind === \"youtube#video\") {\n                        const videoId = video.id.videoId;\n                        const title = video.snippet.title;\n                        const thumbnail = video.snippet.thumbnails.medium.url;\n                        const div = document.createElement(\"div\");\n                        div.innerHTML = `\n                            <div style=\"cursor:pointer;\">\n                                <img decoding=\"async\" src=\"${thumbnail}\" alt=\"${title}\" data-video=\"${videoId}\">\n                                <p>${title}<\/p>\n                            <\/div>`;\n                        container.appendChild(div);\n                    }\n                });\n\n                \/\/ Open video popup\n                container.addEventListener(\"click\", e => {\n                    const img = e.target.closest(\"img[data-video]\");\n                    if (img) {\n                        const videoId = img.getAttribute(\"data-video\");\n                        player.src = `https:\/\/www.youtube.com\/embed\/${videoId}?autoplay=1`;\n                        lightbox.style.display = \"flex\";\n                    }\n                });\n            } catch (err) {\n                container.innerHTML = \"<p style='text-align:center;color:red;'>Error loading videos.<\/p>\";\n                console.error(err);\n            }\n        }\n\n        \/\/ Close popup\n        closeBtn.addEventListener(\"click\", () => {\n            lightbox.style.display = \"none\";\n            player.src = \"\";\n        });\n        lightbox.addEventListener(\"click\", e => {\n            if (e.target === lightbox) {\n                lightbox.style.display = \"none\";\n                player.src = \"\";\n            }\n        });\n\n        fetchVideos();\n    });\n    <\/script>\n    \t\t<div class=\"elementor-shortcode\">\n<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-1024fbc e-flex e-con-boxed e-con e-parent\" data-id=\"1024fbc\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Iscriviti al canale Archivio video Video di gare<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-19465","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Video di gare su Youtube - FenekRally<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fenekrally.com\/it\/video-di-youtube\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Video di gare su Youtube - FenekRally\" \/>\n<meta property=\"og:description\" content=\"Iscriviti al canale Archivio video Video di gare\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fenekrally.com\/it\/video-di-youtube\/\" \/>\n<meta property=\"og:site_name\" content=\"FenekRally\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-30T21:17:04+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/fenekrally.com\\\/it\\\/video-di-youtube\\\/\",\"url\":\"https:\\\/\\\/fenekrally.com\\\/it\\\/video-di-youtube\\\/\",\"name\":\"Video di gare su Youtube - FenekRally\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/fenekrally.com\\\/it\\\/#website\"},\"datePublished\":\"2024-01-05T20:11:44+00:00\",\"dateModified\":\"2026-01-30T21:17:04+00:00\",\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/fenekrally.com\\\/it\\\/video-di-youtube\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/fenekrally.com\\\/it\\\/#website\",\"url\":\"https:\\\/\\\/fenekrally.com\\\/it\\\/\",\"name\":\"FenekRally\",\"description\":\"Rally Raid in Morocco\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/fenekrally.com\\\/it\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"it-IT\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Video di gare su Youtube - FenekRally","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fenekrally.com\/it\/video-di-youtube\/","og_locale":"it_IT","og_type":"article","og_title":"Video di gare su Youtube - FenekRally","og_description":"Iscriviti al canale Archivio video Video di gare","og_url":"https:\/\/fenekrally.com\/it\/video-di-youtube\/","og_site_name":"FenekRally","article_modified_time":"2026-01-30T21:17:04+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/fenekrally.com\/it\/video-di-youtube\/","url":"https:\/\/fenekrally.com\/it\/video-di-youtube\/","name":"Video di gare su Youtube - FenekRally","isPartOf":{"@id":"https:\/\/fenekrally.com\/it\/#website"},"datePublished":"2024-01-05T20:11:44+00:00","dateModified":"2026-01-30T21:17:04+00:00","inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fenekrally.com\/it\/video-di-youtube\/"]}]},{"@type":"WebSite","@id":"https:\/\/fenekrally.com\/it\/#website","url":"https:\/\/fenekrally.com\/it\/","name":"FenekRally","description":"Rally Raid in Morocco","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fenekrally.com\/it\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"it-IT"}]}},"_links":{"self":[{"href":"https:\/\/fenekrally.com\/it\/wp-json\/wp\/v2\/pages\/19465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fenekrally.com\/it\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/fenekrally.com\/it\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/fenekrally.com\/it\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/fenekrally.com\/it\/wp-json\/wp\/v2\/comments?post=19465"}],"version-history":[{"count":3,"href":"https:\/\/fenekrally.com\/it\/wp-json\/wp\/v2\/pages\/19465\/revisions"}],"predecessor-version":[{"id":22479,"href":"https:\/\/fenekrally.com\/it\/wp-json\/wp\/v2\/pages\/19465\/revisions\/22479"}],"wp:attachment":[{"href":"https:\/\/fenekrally.com\/it\/wp-json\/wp\/v2\/media?parent=19465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}