{"id":134,"date":"2021-08-02T04:27:29","date_gmt":"2021-08-02T04:27:29","guid":{"rendered":"http:\/\/asiimages.com\/wordpress\/?page_id=134"},"modified":"2021-08-02T04:27:31","modified_gmt":"2021-08-02T04:27:31","slug":"get-sublimation-design","status":"publish","type":"page","link":"http:\/\/asiimages.com\/wordpress\/ca\/prod\/get-sublimation-design\/","title":{"rendered":"Get Sublimation Design"},"content":{"rendered":"\n<div id=\"iframediv\" style=\"height: 2905px;min-height: 600px;\">\n\t<iframe loading=\"lazy\" id=\"myIframe\" scrolling=\"no\" height=\"100%\" width=\"100%\" onload=\"sendParentHeightToChild();\" src=\"https:\/\/www.augustasportswear.ca\/get-sublimation-design\"><\/iframe>\n<\/div>\n    \n<script type=\"text\/javascript\">\n\tlet pageUrl = location.href;\n\tlet domainUrl = document.domain;\n\tlet pageQuery = null;\n\tvar iframeHasSameDomainUrl = true;\n\n\n\twindow.onmessage = (e) => {\n\t\tlet data = e.data.toString();\n\t\tif(e.data.domainUrl){\n\t\t\tiframeHasSameDomainUrl = false;\n\t\t\tpageUrl = e.data.pageUrl;\n\t\t\tpageQuery = e.data.pageQuery;\n\t\t\tlet domain = e.data.domainUrl;\n\t\t\tdomainUrl = domain.replace(\/^https?:\\\/\\\/\/,'');\n\t\t\tsetIframeSrc();\n\t\t\tvar iframeSrc =  getIframeSrc();\n\t\t}\n\t\tif (data.indexOf('asgIframeHeight') > -1) {\n\t\t\tvar iframeHeight = e.data.split(\":\");\n\t\t\tdocument.getElementById('iframediv').style.height = iframeHeight[1] + 'px';\n\t\t}\n\t\tif (data.indexOf('scrollToTop') > -1) {\n\t\t\twindow.scrollTo({ top: 0, left: 0, behavior: 'smooth' });\n\t\t}\n\t\tif (data.indexOf('asgPageName') > -1) {\n\t\t\tvar pageName = e.data.split(\":\");\n\t\t\tif (pageName[1] == 'configurator')\n\t\t\t\tdocument.getElementById(\"myIframe\").setAttribute(\"scrolling\", \"yes\");\n\t\t\telse {\n\t\t\t\tdocument.getElementById(\"myIframe\").setAttribute(\"scrolling\", \"no\");\n\t\t\t}\n\t\t}\n\t};\n\n\tfunction sendParentHeightToChild() {\n\t\tvar child = document.getElementById(\"myIframe\").contentWindow;\n\t\tvar elemTop = document.getElementById(\"iframediv\").offsetTop;\n\t\tvar windowHeight =  document.documentElement.clientHeight || document.body.clientHeight || window.innerHeight;\n\t\tvar calcHeight = windowHeight - elemTop;\n\t\tif (child.postMessage) {\n\t\t\tchild.postMessage(\"parentHeight:\" + calcHeight, '*');\n\t\t\tchild.postMessage(\"parentDomain:\" + domainUrl, '*');\n\t\t}\n\t}\n\n\tfunction sendDataToChild() {\n\t\tvar child = document.getElementById(\"myIframe\").contentWindow;\n\t\tif (child.postMessage) {\n\t\t\tchild.postMessage(\"loadNextPageIframe\", '*');\n\t\t}\n\t}\n\n\n\tdocument.onreadystatechange = function () {\n\t\tif (document.readyState == \"complete\") {\n\t\t\twindow.onscroll = function() {\n\t\t\t\tif (isScrolledIntoView()) {\n\t\t\t\t\tsendDataToChild();\n\t\t\t\t}\n\t\t\t};\n\t\t\tfunction isScrolledIntoView() {\n\t\t\t\tvar elem = document.getElementById(\"iframediv\");\n\t\t\t\tvar docViewTop = (document.documentElement && document.documentElement.scrollTop) ||  document.body.scrollTop;\n\t\t\t\tvar windowHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;\n\t\t\t\tvar docViewBottom = docViewTop + windowHeight;\n\t\t\t\tvar elemTop = elem.offsetTop;\n\t\t\t\tvar elemBottom = elemTop + elem.offsetHeight;\n\t\t\t\treturn ((elemBottom <= docViewBottom));\n\t\t\t}\n\t\t}\n\t}\n\n<\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":58,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-templates\/template-pagebuilder-full-width.php","meta":{"footnotes":""},"class_list":["post-134","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/asiimages.com\/wordpress\/wp-json\/wp\/v2\/pages\/134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/asiimages.com\/wordpress\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/asiimages.com\/wordpress\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/asiimages.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/asiimages.com\/wordpress\/wp-json\/wp\/v2\/comments?post=134"}],"version-history":[{"count":1,"href":"http:\/\/asiimages.com\/wordpress\/wp-json\/wp\/v2\/pages\/134\/revisions"}],"predecessor-version":[{"id":138,"href":"http:\/\/asiimages.com\/wordpress\/wp-json\/wp\/v2\/pages\/134\/revisions\/138"}],"up":[{"embeddable":true,"href":"http:\/\/asiimages.com\/wordpress\/wp-json\/wp\/v2\/pages\/58"}],"wp:attachment":[{"href":"http:\/\/asiimages.com\/wordpress\/wp-json\/wp\/v2\/media?parent=134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}