{"id":18675,"date":"2025-06-26T06:28:45","date_gmt":"2025-06-26T06:28:45","guid":{"rendered":"https:\/\/www.gotap.id\/?page_id=18675"},"modified":"2025-06-27T06:11:18","modified_gmt":"2025-06-27T06:11:18","slug":"test-hero","status":"publish","type":"page","link":"https:\/\/www.gotap.id\/en\/test-hero\/","title":{"rendered":"test hero"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"18675\" class=\"elementor elementor-18675\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-49f43b1 e-con-full e-flex e-con e-parent\" data-id=\"49f43b1\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-1474aea elementor-widget elementor-widget-html\" data-id=\"1474aea\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<script src=\"https:\/\/cdn-script.com\/ajax\/libs\/jquery\/3.7.1\/jquery.js\"><\/script>\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/gsap\/3.4.0\/gsap.min.js\"><\/script>\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/gsap\/3.3.3\/ScrollTrigger.min.js\"><\/script>\n\n<script>\n$( document ).ready(function() {\n    console.clear();\n    $('video').addClass('video-background');\n\n\n\nconst video = document.querySelector(\".video-background\");\nlet src = video.currentSrc || video.src;\nconsole.log(video, src);\n\n\/* Make sure the video is 'activated' on iOS *\/\nfunction once(el, event, fn, opts) {\n  var onceFn = function (e) {\n    el.removeEventListener(event, onceFn);\n    fn.apply(this, arguments);\n  };\n  el.addEventListener(event, onceFn, opts);\n  return onceFn;\n}\n\nonce(document.documentElement, \"touchstart\", function (e) {\n  video.play();\n  video.pause();\n});\n\ngsap.registerPlugin(ScrollTrigger);\n\nlet tl = gsap.timeline({\n  defaults: { duration: 1 },\n  scrollTrigger: {\n    trigger: \"#container\",\n    start: \"top top\",\n    end: \"bottom bottom\",\n    scrub: true\n  }\n});\n\nonce(video, \"loadedmetadata\", () => {\n  tl.fromTo(\n    video,\n    {\n      currentTime: 0\n    },\n    {\n      currentTime: video.duration || 1\n    }\n  );\n});\n\n\/*!\n     * \u00a9 This code was written by Nicolai Palmkvist.\n     * For more information, visit my Elementor Youtube channel: https:\/\/www.youtube.com\/@nicopalmkvist\n     *\/\n\nsetTimeout(function () {\n  if (window[\"fetch\"]) {\n    fetch(src)\n      .then((response) => response.blob())\n      .then((response) => {\n        var blobURL = URL.createObjectURL(response);\n\n        var t = video.currentTime;\n        once(document.documentElement, \"touchstart\", function (e) {\n          video.play();\n          video.pause();\n        });\n\n        video.setAttribute(\"src\", blobURL);\n        video.currentTime = t + 0.001;\n      });\n  }\n}, 1000);\n});\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-60e129f elementor-widget elementor-widget-video\" data-id=\"60e129f\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;video_type&quot;:&quot;hosted&quot;,&quot;mute&quot;:&quot;yes&quot;,&quot;sticky&quot;:&quot;top&quot;,&quot;sticky_offset_tablet&quot;:80,&quot;sticky_effects_offset_tablet&quot;:80,&quot;sticky_anchor_link_offset_tablet&quot;:80,&quot;sticky_on&quot;:[&quot;desktop&quot;,&quot;tablet&quot;,&quot;mobile&quot;],&quot;sticky_offset&quot;:0,&quot;sticky_effects_offset&quot;:0,&quot;sticky_anchor_link_offset&quot;:0}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\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=\"https:\/\/www.gotap.id\/wp-content\/uploads\/2025\/06\/gotap-video-animation-smooth.mp4\" 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>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>https:\/\/www.gotap.id\/wp-content\/uploads\/2025\/06\/gotap-video-animation-smooth.mp4<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-18675","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.gotap.id\/en\/wp-json\/wp\/v2\/pages\/18675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gotap.id\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.gotap.id\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.gotap.id\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gotap.id\/en\/wp-json\/wp\/v2\/comments?post=18675"}],"version-history":[{"count":130,"href":"https:\/\/www.gotap.id\/en\/wp-json\/wp\/v2\/pages\/18675\/revisions"}],"predecessor-version":[{"id":18833,"href":"https:\/\/www.gotap.id\/en\/wp-json\/wp\/v2\/pages\/18675\/revisions\/18833"}],"wp:attachment":[{"href":"https:\/\/www.gotap.id\/en\/wp-json\/wp\/v2\/media?parent=18675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}