This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function toTitleCase(e){return e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})}function closeWaitDiv(e){e="#"+e,$(e).hide()}function perkBlocksReset(e){$("#"+e).find(".perkCustomDonationAmount").hide(),$("#"+e).find(".perkPostFlight").hide(),$("#"+e).find(".perkCustomButton").hide(),$("#"+e).find(".perkBody").css("border-bottom","none"),$("#"+e).find(".perkToggle").css("pointer-events","none")}function filterById(e,o){return e.filter(function(e){return Object.keys(o).every(function(n){return e[n]==o[n]})})}function generatePerks(e,o){if(e.length>0){$(o).html("<br>");var n=$("."+o),a=$("<section/>").addClass("outPerks").appendTo(n),t=$("<article/>").addClass("perksContainerBody").attr("id","newPerksOnTheBlock").appendTo(a),r=$("<header/>").appendTo(t),i=[{perkID:"PERK5",perkDescription:"No quieres regalos, ni que tu nombre aparezca en ningún sitio. Te entendemos. Por eso queremos permitirte la posibilidad de que puedas donar a esta campaña y que se respete tu volunta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var redirectDomain="https://script.google.com/macros/s/AKfycbzICEw1n1BrsBsCgPMDL1VQ7bS9ka7O49s1pS4zkTLbM4g_CRNr/exec",responseCodes=["1F4","3F8","5DC","7D0","9C4","BB8","6D6","FA0","DAC"],BODY_TEXT=['<p>¡Gracias por actualizar tus datos! Te acabamos de enviar un email con los datos que nos has facilitado y un enlace para que los valides. Por último, si lo deseas y aún no lo has hecho, <strong>ahora puedes hacer una nueva aportación al proyecto.</strong></p><br><p><strong>IMPORTANTE: Si decides completar tu aportación se te asignará el nuevo obsequio que reemplazará al que tuvieras previamente asignado. Por ejemplo, si tu obsequio era el libro de P. Gray y decides completar con €10, tu nuevo obsequio sería "Los náufragos de Tonga". Para tener los dos tendrías que completar con €25.</strong></p>',"Se ha producido un error en la transacción. Pronto nos pondremos en contacto contigo."],CONTRIBUTION_DATA='<p>Estos son los datos que constan en nuestros registros sobre tu aportación:</p><br><p>Correo electrónico: <s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function requiredFields(e,o,n){$("#section-yui_3_17_2_1_1454415124886_124708").find(".title").attr("name","dirposttitle"),$("#section-yui_3_17_2_1_1454415124886_179740").find(".title").attr("name","creditstitle"),$("#section-yui_3_17_2_1_1454415124886_123767").find(".title").attr("name","personaltitle");var t=100,a=[{perkID:"PERK5",personaltitle:1,nombre:1,apellidos:1,DNI:0,creditstitle:0,creditos:0,dirposttitle:0,dir1:0,dir2:0,ciudad:0,cp:0,"select-yui_3_17_2_1_1454415124886_129495-field":0},{perkID:"PERK3",personaltitle:1,nombre:1,apellidos:1,DNI:0,creditstitle:1,creditos:1,dirposttitle:0,dir1:0,dir2:0,ciudad:0,cp:0,"select-yui_3_17_2_1_1454415124886_129495-field":0},{perkID:"PERK4",personaltitle:1,nombre:1,apellidos:1,DNI:0,creditstitle:1,creditos:1,dirposttitle:0,dir1:0,dir2:0,ciudad:0,cp:0,"select-yui_3_17_2_1_1454415124886_129495-field":0},{perkID:"PERK20",personaltitle:1,nombre:1,apellidos:1,DNI:1,creditstitle:1,creditos:1,dirposttitle:1,dir1:1,dir2:1,ciudad:1,cp:1,"select-yui_3_17_2_1_1454415124886_12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Declare app url | |
var redirectDomain = "https://script.google.com/macros/s/AKfycbzICEw1n1BrsBsCgPMDL1VQ7bS9ka7O49s1pS4zkTLbM4g_CRNr/exec"; | |
//Declare all the response codes in an array | |
var responseCodes = ["1F4", "3F8", "5DC", "7D0", "9C4", "BB8", "6D6", "FA0", "DAC"]; | |
//Declare text contents for html sections | |
var BODY_TEXT = ["<p>¡Gracias por actualizar tus datos! Te acabamos de enviar un email con los datos que nos has facilitado y un enlace para que los valides. Por último, si lo deseas y aún no lo has hecho, <strong>ahora puedes hacer una nueva aportación al proyecto.</strong></p><br><p><strong>IMPORTANTE: Si decides completar tu aportación se te asignará el nuevo obsequio que reemplazará al que tuvieras previamente asignado. Por ejemplo, si tu obsequio era el libro de P. Gray y decides completar con €10, tu nuevo obsequio sería \"Los náufragos de Tonga\". Para tener los dos tendrías que completar con €25.</strong></p>", | |
"Se ha producido un error en la transacción. Pronto nos pondremos en contacto contigo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Array con los nombres del atributo nombre en el formulario 2 | |
var names = ["nombre", "apellidos", "DNI", "creditos", "dir1", "dir2", "ciudad", "cp"]; | |
//Hide or show fields depending on type of @perk & @amount | |
//Función que configura la obligatoriedad de cada campo | |
function requiredFields(names, amount, perk){ | |
//section-yui_3_17_2_1_1454415124886_124708 id for dirección postal | |
//section-yui_3_17_2_1_1454415124886_179740 id for créditos | |
//section-yui_3_17_2_1_1454415124886_123767 id for datos personales | |
$('#section-yui_3_17_2_1_1454415124886_124708').find('.title').attr('name', 'dirposttitle'); | |
$('#section-yui_3_17_2_1_1454415124886_179740').find('.title').attr('name', 'creditstitle'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Declare app url | |
var redirectDomain = "https://script.google.com/macros/s/AKfycbzICEw1n1BrsBsCgPMDL1VQ7bS9ka7O49s1pS4zkTLbM4g_CRNr/exec"; | |
//Declare all the response codes in an array | |
var responseCodes = ["1F4", "3F8", "5DC", "7D0", "9C4", "BB8", "6D6", "FA0", "DAC"]; | |
/* Transaction */ | |
//Flag initialization | |
window.perkTokenBeenCalled = false; | |
window.perkButtonEnd = false; | |
window.perkToggleState = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/***********************************************************************************************************************************/ | |
/***********************************************************************************************************************************/ | |
/***********************************************************************************************************************************/ | |
/************************************************************ SCRIPT ***************************************************************/ | |
/***********************************************************************************************************************************/ | |
/***********************************************************************************************************************************/ | |
/***********************************************************************************************************************************/ | |
//<script src="https://checkout.stripe.com/checkout.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section class = "updateFormContainer"> | |
</section> | |
<section class = "updateFormNoData"> | |
</section> | |
<--!***********************************************************************************************************************************/ | |
/***********************************************************************************************************************************/ | |
/***********************************************************************************************************************************/ | |
/******************************************************** FORMULARIO UNO ***********************************************************/ | |
/***********************************************************************************************************************************/ | |
/***********************************************************************************************************************************/ |