{"id":1931,"date":"2026-02-06T19:06:36","date_gmt":"2026-02-06T19:06:36","guid":{"rendered":"https:\/\/marketingshake.lv\/?page_id=1931"},"modified":"2026-02-12T16:15:15","modified_gmt":"2026-02-12T16:15:15","slug":"meistarklase","status":"publish","type":"page","link":"https:\/\/marketingshake.lv\/en\/meistarklase\/","title":{"rendered":"Masterclass"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"1931\" class=\"elementor elementor-1931\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7a436229 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7a436229\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ced72b3\" data-id=\"ced72b3\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-17500ace elementor-widget elementor-widget-heading\" data-id=\"17500ace\" 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\">Masterclass<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7e32a018 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7e32a018\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-74badde4\" data-id=\"74badde4\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-320c3eed elementor-widget elementor-widget-html\" data-id=\"320c3eed\" 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<div id=\"nifcontainer\" \"class=\"if-container\" style=\"height: 1300px; max-height: 15000px; min-height: 500px;\">\r\n\t<iframe style=\"max-height: 15000px; min-height: 500px;\" id=\"newiframe\" class=\"responsive-iframe\" src=\"https:\/\/ms3.raditstev.lv\/pieteikums\"><\/iframe>\r\n<\/div>\r\n\r\n<script>\r\n\t\r\nvar link = window.location.href;\r\nvar position = link.search(\"\\\/en\\\/\");\r\n\r\nif(position > 1){\r\n\tconsole.log(true);\r\n\tvar iframe = document.getElementById('newiframe');\r\n    iframe.src = iframe.src + \"?l=en\";\r\n}\r\n\r\nvar iframe = document.getElementById(\"newiframe\");\r\nvar ifcontainter = document.getElementById(\"nifcontainer\");\r\niframe.style.height = '1000px';\r\nifcontainter.style.height = '1000px';\r\n\r\n\/\/Sa\u0146emt info no iframe\r\nwindow.addEventListener('message', event => {\r\n\tvar iframe = document.getElementById(\"newiframe\");\r\n\tvar ifcontainter = document.getElementById(\"nifcontainer\");\r\n\t\/\/ IMPORTANT: check the origin of the data! \r\n\tif (event.origin.startsWith('https:\/\/ms3.raditstev.lv')) { \r\n\t\t\/\/ The data was sent from your site.\r\n\t\t\/\/ Data sent with postMessage is stored in event.data:\r\n\t\tdddta = event.data;\r\n\t\tif(dddta == \"scrool\"){\r\n\t\t\twindow.scroll({\r\n\t\t\t  top: 0,\r\n\t\t\t  left: 0,\r\n\t\t\t  behavior: 'auto'\r\n\t\t\t});\r\n\t\t}else{\r\n\t\t\tconsole.log(\"Direct\"+dddta);\r\n\t\t\tvar hei = dddta;\r\n\t\t\tif(hei > 15000){\r\n\t\t\thei = 15000;\r\n\t\t\t}\r\n\t\t\tiframe.style.height = hei + 'px';\r\n\t\t\tifcontainter.style.height = hei + 'px';\r\n\t\t\t\/\/console.log(hei);\r\n\t\t}\r\n\t}\r\n});\r\n\r\n\r\ndocument.getElementById('newiframe').onload= function() {\r\n\t\/\/Nos\u016bt\u012bt info par parametriem\r\n\tvar urlParams = new URLSearchParams(window.location.search);\r\n\tvar wn = document.getElementById('newiframe').contentWindow;\r\n\twn.postMessage('test ms', 'https:\/\/ms3.raditstev.lv');\r\n\tif(urlParams.has('opt')){\r\n\t\twn.postMessage(urlParams.get('opt'), 'https:\/\/ms3.raditstev.lv');\r\n\t\tconsole.log(\"opt param: \"+urlParams.get('opt'));\r\n\t\t\r\n\t}\r\n};\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Masterclass<\/p>","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-1931","page","type-page","status-publish","hentry"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/marketingshake.lv\/en\/wp-json\/wp\/v2\/pages\/1931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marketingshake.lv\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/marketingshake.lv\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/marketingshake.lv\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/marketingshake.lv\/en\/wp-json\/wp\/v2\/comments?post=1931"}],"version-history":[{"count":0,"href":"https:\/\/marketingshake.lv\/en\/wp-json\/wp\/v2\/pages\/1931\/revisions"}],"wp:attachment":[{"href":"https:\/\/marketingshake.lv\/en\/wp-json\/wp\/v2\/media?parent=1931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}