{"id":941,"date":"2019-06-06T10:09:07","date_gmt":"2019-06-06T10:09:07","guid":{"rendered":"http:\/\/zimwonders.co.zw\/?page_id=941"},"modified":"2019-06-06T13:35:49","modified_gmt":"2019-06-06T13:35:49","slug":"book-flight","status":"publish","type":"page","link":"https:\/\/zimwonders.co.zw\/index.php\/book-flight\/","title":{"rendered":"BOOK FLIGHT"},"content":{"rendered":"\n<div id='logs' ><\/div> \n<iframe id='travelstartIframe-7d8460bc-0565-49b6-b947-b0a6e5f0d9eb' \n    frameBorder='0' \n    scrolling='no' \n    style='margin: 0px; padding: 0px; border: 0px; height: 0px; background-color: #fafafa;'>\n<\/iframe> \n<script src='\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.8.0\/jquery.min.js' type='text\/javascript'><\/script> \n<script type='text\/javascript' src='https:\/\/go.travelstart.com\/resources\/js\/jquery.ba-postmessage.min.js'><\/script> \n<script type='text\/javascript'> \n\t\/\/ these variables can be configured \n\tvar travelstartIframeId = 'travelstartIframe-7d8460bc-0565-49b6-b947-b0a6e5f0d9eb'; \n\tvar iframeUrl = 'https:\/\/go.travelstart.com'; \n\tvar logMessages = false; \n\tvar showBanners = false; \n\tvar affId = '1428617'; \n\tvar affCampaign = ''; \n\tvar affCurrency = 'USD'; \/\/ ZAR \/ USD \/ NAD \/ ... \n\tvar height = '0px'; \n\tvar width = '100%'; \n\tvar language = ''; \/\/ ar \/ en \/ leave empty for user preference\n \n\t\/\/ do not change these \n\tvar iframe = $('#' + travelstartIframeId); \n\tvar iframeVersion = '11'; \n\tvar autoSearch = false; \n\tvar affiliateIdExist = false;\n\tvar urlParams = {}; \n\tvar alreadyExist = []; \n\tvar iframeParams = []; \n\tvar cpySource = ''; \n\tvar match,\n\t\tpl = \/\\+\/g,  \n\t\tsearch = \/([^&=]+)=?([^&]*)\/g,\n\t\tdecode = function (s) { return decodeURIComponent(s.replace(pl, \" \")); },\n\t\tquery  = window.location.search.substring(1);\n\twhile (match = search.exec(query)){ \n\t\turlParams[decode(match[1])] = decode(match[2]); \n\t}\t\t\t\t \n\tfor (var key in urlParams){ \n\t\tif (urlParams.hasOwnProperty(key)){ \n\t\t\tif (key == 'search' && urlParams[key] == 'true'){ \n\t\t\t\tautoSearch = true; \n\t\t\t} \n\t\t\tif(\tkey == 'affId' || key == 'affid' || key == 'aff_id'){ \n\t\t\t\taffiliateIdExist = true ; \n\t\t\t} \n\t\t\tiframeParams.push(key + '=' + urlParams[key]); \n\t\t\talreadyExist.push(key); \n\t\t}\t \n\t}\t\t \n  \tif(!('show_banners' in alreadyExist)){ \n\t\tiframeParams.push('show_banners=' + showBanners); \n\t}\t\t \n\tif(!('log' in alreadyExist)){ \n\t\tiframeParams.push('log='  + logMessages); \n\t}\t\t \n\tif(! affiliateIdExist){ \n\t\tiframeParams.push('affId='  + affId); \n\t}\t\t \n\tif(! affiliateIdExist){ \n\t\tiframeParams.push('language='  + language); \n\t}\t\t \n\tif(!('affCampaign' in alreadyExist)){ \n\t\tiframeParams.push('affCampaign='  + affCampaign); \n\t}\t\t \n\tif(cpySource !== '' && !('cpySource' in alreadyExist)){ \n\t\tiframeParams.push('cpy_source='  + cpySource); \n\t}\t\t \n\tif(!('utm_source' in alreadyExist)){ \n\t\tiframeParams.push('utm_source=affiliate'); \n\t}\t\t \n\tif(!('utm_medium' in alreadyExist)){ \n\t\tiframeParams.push('utm_medium='  + affId); \n\t}\t\t \n\tif(!('isiframe' in alreadyExist)){ \n\t\tiframeParams.push('isiframe=true'); \n\t}\t\t \n\tif(!('landing_page' in alreadyExist)){ \n\t\tiframeParams.push('landing_page=false'); \n\t}\t\t \n\tif (affCurrency.length == 3){ \n\t\tiframeParams.push('currency=' + affCurrency); \n\t} \n\tif(!('iframeVersion' in alreadyExist)){ \n   \tiframeParams.push('iframeVersion='  + iframeVersion);\n\t}\t\t \n\tif(!('host' in alreadyExist)){ \n\t\tiframeParams.push('host=' + window.location.href.split('?')[0]); \n\t}\t\t \n\tvar newIframeUrl = iframeUrl + (autoSearch ? '\/search-on-index?search=true' : '\/search-on-index?search=false') + '&' + iframeParams.join('&'); \n\tiframe.attr('src', newIframeUrl); \n\tfunction setIframeSize(newWidth, newHeight){ \n\t\tiframe.css('width', newWidth); \n\t\tiframe.width(newWidth); \n\t\tiframe.css('height', newHeight); \n\t\tiframe.height(newHeight); \n\t} \n\tsetIframeSize(width, height); \n   jQuery.receiveMessage(function(e, host) { \n     try { \n        if (typeof e.data !== 'undefined') { \n            var dataElements = e.data.split('&'); \n            if (dataElements) { \n                if (dataElements.length === 1) { \n                    \/\/Resize \n                     setIframeSize(width, e.data + 'px'); \n                 } else { \n                     \/\/ Set iframe Size \n                     var height = dataElements[1].split('='); \n                     setIframeSize(width, height[1]+'px'); \n                     \/\/ Scroll to position \n                     if (dataElements.length > 2) { \n                         var scrollTo = dataElements[2].split('='); \n                         if (scrollTo[1] !== 'none') { \n                             var iframeTop = iframe.position().top; \n                             if (scrollTo[1] == 'to-top') { \n                                 window.scrollTo(0, iframeTop); \n                             } else { \n                                 window.scrollTo(0, iframeTop+parseInt(scrollTo[1])); \n                             } \n                         } \n                     } \n                 } \n             } \n         } \n     } catch (err) { \n         window.console && console.log(err); \n     } \n }, iframeUrl); \n <\/script>\n\n<div id=\"emojics-root\"><\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ngg_post_thumbnail":0,"spay_email":"","footnotes":""},"class_list":["post-941","page","type-page","status-publish","hentry"],"jetpack_shortlink":"https:\/\/wp.me\/PaVs5M-fb","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/zimwonders.co.zw\/index.php\/wp-json\/wp\/v2\/pages\/941","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zimwonders.co.zw\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/zimwonders.co.zw\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/zimwonders.co.zw\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zimwonders.co.zw\/index.php\/wp-json\/wp\/v2\/comments?post=941"}],"version-history":[{"count":4,"href":"https:\/\/zimwonders.co.zw\/index.php\/wp-json\/wp\/v2\/pages\/941\/revisions"}],"predecessor-version":[{"id":947,"href":"https:\/\/zimwonders.co.zw\/index.php\/wp-json\/wp\/v2\/pages\/941\/revisions\/947"}],"wp:attachment":[{"href":"https:\/\/zimwonders.co.zw\/index.php\/wp-json\/wp\/v2\/media?parent=941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}