function gfapiCalculateSig(stringToSign, privateKey) { var hash = CryptoJS.HmacSHA1(stringToSign, privateKey); var base64 = hash.toString(CryptoJS.enc.Base64); return encodeURIComponent(base64); } jQuery(document).ready(function () { jQuery("#gfwebapi-qrbutton").click(function () { jQuery("#gfwebapi-qrcode-container").toggle(); var $img = jQuery('#gfwebapi-qrcode'); if ($img.length > 0) $img.attr('src', ajaxurl + '?action=gfwebapi_qrcode&rnd=' + Date.now()); return false; }); jQuery("#public_key, #private_key").on("keyup", function () { jQuery("#gfwebapi-qrcode-container").html("The keys have changes. Please save the changes and try again.") }); jQuery("#gfapi-url-builder-button").click(function (e) { e.preventDefault(); var publicKey, privateKey, expiration, method, route, stringToSign, url, sig; publicKey = jQuery("#public_key").val(); privateKey = jQuery("#private_key").val(); expiration = parseInt(jQuery("#gfapi-url-builder-expiration").val()); method = jQuery("#gfapi-url-builder-method").val(); route = jQuery("#gfapi-url-builder-route").val(); route = route.replace(/\/$/, ""); // remove trailing slash var d = new Date; var unixtime = parseInt(d.getTime() / 1000); var future_unixtime = unixtime + expiration; stringToSign = publicKey + ":" + method + ":" + route + ":" + future_unixtime; sig = gfapiCalculateSig(stringToSign, privateKey); url = gfapiBaseUrl + "/" + route + "/?api_key=" + publicKey + "&signature=" + sig + "&expires=" + future_unixtime; jQuery('#gfapi-url-builder-generated-url').val(url); return false; }); var gfapiTesterAjaxRequest; jQuery("#gfapi-url-tester-button").click(function (e) { var $button = jQuery(this); var $loading = jQuery("#gfapi-url-tester-loading"); var $results = jQuery("#gfapi-url-tester-results"); var url = jQuery('#gfapi-url-tester-url').val(); var method = jQuery('#gfapi-url-tester-method').val(); gfapiTesterAjaxRequest = jQuery.ajax({ url : url + "&test=1", type : method, dataType : 'json', data : {}, beforeSend: function (xhr, opts) { $button.attr('disabled', 'disabled'); $loading.show(); } }) .done(function (data, textStatus, xhr) { $button.removeAttr('disabled'); $loading.hide(); $results.html(xhr.status); $results.fadeTo("fast", 1); }) .fail(function (jqXHR) { $button.removeAttr('disabled'); $loading.hide(); $results.fadeTo("fast", 1); var msg; $loading.hide(); if (msg == "abort") { msg = "Request cancelled"; } else { msg = jqXHR.status + ": " + jqXHR.statusText; } $results.html(msg); }); return false; }); }); 1.0Jardines de Bellavista II - Inmobiliaria | Proyectos Inmobiliarios | Civiliahttps://jardinesdebellavista.clpejeadminhttps://jardinesdebellavista.cl/author/pejeadmin/Steroid: Description of the Drugrich600338<blockquote class="wp-embedded-content"><a href="https://jardinesdebellavista.cl/steroid-description-of-the-drug-18/">Steroid: Description of the Drug</a></blockquote> <script type='text/javascript'> <!--//--><![CDATA[//><!-- /*! This file is auto-generated */ !function(d,l){"use strict";var e=!1,n=!1;if(l.querySelector)if(d.addEventListener)e=!0;if(d.wp=d.wp||{},!d.wp.receiveEmbedMessage)if(d.wp.receiveEmbedMessage=function(e){var t=e.data;if(t)if(t.secret||t.message||t.value)if(!/[^a-zA-Z0-9]/.test(t.secret)){for(var r,i,a,s=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),n=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),o=new RegExp("^https?:$","i"),c=0;c<n.length;c++)n[c].style.display="none";for(c=0;c<s.length;c++)if(r=s[c],e.source===r.contentWindow){if(r.removeAttribute("style"),"height"===t.message){if(1e3<(a=parseInt(t.value,10)))a=1e3;else if(~~a<200)a=200;r.height=a}if("link"===t.message)if(i=l.createElement("a"),a=l.createElement("a"),i.href=r.getAttribute("src"),a.href=t.value,o.test(a.protocol))if(a.host===i.host)if(l.activeElement===r)d.top.location.href=t.value}}},e)d.addEventListener("message",d.wp.receiveEmbedMessage,!1),l.addEventListener("DOMContentLoaded",t,!1),d.addEventListener("load",t,!1);function t(){if(!n){n=!0;for(var e,t,r=-1!==navigator.appVersion.indexOf("MSIE 10"),i=!!navigator.userAgent.match(/Trident.*rv:11\./),a=l.querySelectorAll("iframe.wp-embedded-content"),s=0;s<a.length;s++){if(!(e=a[s]).getAttribute("data-secret"))t=Math.random().toString(36).substr(2,10),e.src+="#?secret="+t,e.setAttribute("data-secret",t);if(r||i)(t=e.cloneNode(!0)).removeAttribute("security"),e.parentNode.replaceChild(t,e)}}}}(window,document); //--><!]]> </script><iframe sandbox="allow-scripts" security="restricted" src="https://jardinesdebellavista.cl/steroid-description-of-the-drug-18/embed/" width="600" height="338" title="«Steroid: Description of the Drug» — Jardines de Bellavista II - Inmobiliaria | Proyectos Inmobiliarios | Civilia" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe>