The Philippines Special Resident Retiree’s Visa
Residency in 3-6 months
Minimum requirement ';
btnDownload += 'Download File';
if (location.pathname === '/thank-you-page/') {
$('#thank-you-page-text p').remove();
var content = '
You can click on the following button to obtain the project introduction file:
' + btnDownload; $('#thank-you-page-text .elementor-widget-container').html(content); } else { var btnHubspot = $('div.elementor-widget-button.elementor-global-9915.hs-cta-trigger-button'); btnHubspot.hide(); btnHubspot.after(btnDownload); } } var getSlug = function () { if (location.pathname === '/thank-you-page/') { var ref = document.referrer; if (ref && ref != location.origin + '/') { return ref.split('?')[0].split('/').slice(-2, -1)[0]; } else { return ''; } } else { return location.href.split('?')[0].split('#')[0].split('/').slice(-2, -1)[0]; } } if (typeof hqcajx_config !== 'object') { return; } var ajax_data = { action: 'projectdoc', hqcajx_time: hqcajx_config.ajax_time, hqcajx_nonce: hqcajx_config.projectdoc_nonce, hqcajx_sign: hqcajx_config.projectdoc_sign, slug: getSlug() }; if (location.pathname === '/thank-you-page/') { if (!document.referrer) {return;} ajax_data['submit'] = 1; } else if ($('div.elementor-widget-button.elementor-global-9915.hs-cta-trigger-button').length===0) { return; } if (typeof localStorage === 'object' && localStorage.getItem('EN_ProjectDoc_FormSubmitFlag') === '1') { var docList = JSON.parse(sessionStorage.getItem('EN_ProjectDoc_list')) || {}; if (docList[ajax_data.slug]) { btnDownloadInit(docList[ajax_data.slug]); if ((Date.now() - docList[ajax_data.slug].time) > 43200000) { delete docList[ajax_data.slug]; sessionStorage.setItem('EN_ProjectDoc_list', JSON.stringify(docList)); } return; } ajax_data['submitted'] = 1; } //获取折页数据 $.ajax({ url: hqcajx_config.ajax_url, type: 'POST', dataType: 'json', data: ajax_data, success: function (res) { if (res.success && res.file && res.submitted === '1') { btnDownloadInit(res); if (typeof localStorage === 'object') { if (localStorage.getItem('EN_ProjectDoc_FormSubmitFlag') !== '1') { localStorage.setItem('EN_ProjectDoc_FormSubmitFlag', '1'); } res.time = Date.now(); var docList = JSON.parse(sessionStorage.getItem('EN_ProjectDoc_list')) || {}; docList[ajax_data.slug]=res; sessionStorage.setItem('EN_ProjectDoc_list', JSON.stringify(docList)); } } else { console.log('projectdoc', res); } } }); });