{"id":7,"date":"2025-08-19T12:43:19","date_gmt":"2025-08-19T10:43:19","guid":{"rendered":"http:\/\/hoydak.pl\/?page_id=7"},"modified":"2025-08-19T13:21:04","modified_gmt":"2025-08-19T11:21:04","slug":"elementor-7","status":"publish","type":"page","link":"https:\/\/hoydak.pl\/?page_id=7","title":{"rendered":"Elementor #7"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"7\" class=\"elementor elementor-7\">\n\t\t\t\t<div class=\"elementor-element elementor-element-796f720 e-con-full sticky-col e-flex e-con e-parent\" data-id=\"796f720\" data-element_type=\"container\" id=\"sticky-col\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f4c0147 elementor-widget elementor-widget-video\" data-id=\"f4c0147\" data-element_type=\"widget\" data-settings=\"{&quot;video_type&quot;:&quot;hosted&quot;,&quot;mute&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t\t\t\t<div class=\"e-hosted-video elementor-wrapper elementor-open-inline\">\n\t\t\t\t\t<video class=\"elementor-video\" src=\"http:\/\/hoydak.pl\/wp-content\/uploads\/2025\/08\/9364e3a5-9178-432b-8eff-bf6b88496a8a.mov\" preload=\"metadata\" muted=\"muted\" controlsList=\"nodownload\"><\/video>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-08d2c64 elementor-widget elementor-widget-html\" data-id=\"08d2c64\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<script src=\"https:\/\/cdn-script.com\/ajax\/libs\/jquery\/3.7.1\/jquery.js\"><\/script>\r\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/gsap\/3.4.0\/gsap.min.js\"><\/script>\r\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/gsap\/3.3.3\/ScrollTrigger.min.js\"><\/script>\r\n\r\n<script>\r\n$( document ).ready(function() {\r\n    console.clear();\r\n    $('video').addClass('video-background');\r\n\r\n\r\n\r\nconst video = document.querySelector(\".video-background\");\r\nlet src = video.currentSrc || video.src;\r\nconsole.log(video, src);\r\n\r\n\/* Make sure the video is 'activated' on iOS *\/\r\nfunction once(el, event, fn, opts) {\r\n  var onceFn = function (e) {\r\n    el.removeEventListener(event, onceFn);\r\n    fn.apply(this, arguments);\r\n  };\r\n  el.addEventListener(event, onceFn, opts);\r\n  return onceFn;\r\n}\r\n\r\nonce(document.documentElement, \"touchstart\", function (e) {\r\n  video.play();\r\n  video.pause();\r\n});\r\n\r\ngsap.registerPlugin(ScrollTrigger);\r\n\r\nlet tl = gsap.timeline({\r\n  defaults: { duration: 1 },\r\n  scrollTrigger: {\r\n    trigger: \"#container\",\r\n    start: \"top top\",\r\n    end: \"bottom bottom\",\r\n    scrub: true\r\n  }\r\n});\r\n\r\nonce(video, \"loadedmetadata\", () => {\r\n  tl.fromTo(\r\n    video,\r\n    {\r\n      currentTime: 0\r\n    },\r\n    {\r\n      currentTime: video.duration || 1\r\n    }\r\n  );\r\n});\r\n\r\n\/*!\r\n     * \u00a9 This code was written by Nicolai Palmkvist.\r\n     * For more information, visit my Elementor Youtube channel: https:\/\/www.youtube.com\/@nicopalmkvist\r\n     *\/\r\n\r\nsetTimeout(function () {\r\n  if (window[\"fetch\"]) {\r\n    fetch(src)\r\n      .then((response) => response.blob())\r\n      .then((response) => {\r\n        var blobURL = URL.createObjectURL(response);\r\n\r\n        var t = video.currentTime;\r\n        once(document.documentElement, \"touchstart\", function (e) {\r\n          video.play();\r\n          video.pause();\r\n        });\r\n\r\n        video.setAttribute(\"src\", blobURL);\r\n        video.currentTime = t + 0.01;\r\n      });\r\n  }\r\n}, 1000);\r\n});\r\n\r\n<\/script>\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>http:\/\/hoydak.pl\/wp-content\/uploads\/2025\/08\/9364e3a5-9178-432b-8eff-bf6b88496a8a.mov<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-7","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/hoydak.pl\/index.php?rest_route=\/wp\/v2\/pages\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hoydak.pl\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hoydak.pl\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hoydak.pl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hoydak.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"}],"version-history":[{"count":22,"href":"https:\/\/hoydak.pl\/index.php?rest_route=\/wp\/v2\/pages\/7\/revisions"}],"predecessor-version":[{"id":36,"href":"https:\/\/hoydak.pl\/index.php?rest_route=\/wp\/v2\/pages\/7\/revisions\/36"}],"wp:attachment":[{"href":"https:\/\/hoydak.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}