HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<!-- Form Configuration Code -->
<script>
window.funraise.push('create', { form: 271 });
window.funraise.push('config', { form: 271 }, {
i18n: {
locale: window.navigator.language,
phrases: {
// Header
form_header_text: {
'en': 'Make a Donation',
'es': 'Haga una donación',
},
general_donate_securely: {
'en': 'Donate Securely',
'es': 'Donar de forma segura',
},
// General phrases
general_next_button_aria: {
'en': 'Continue',
'es': 'Continuar',
},
general_next_button: {
'en': 'Next',
'es': 'Siguente',
},
customize_accept_button_label: {
'en': 'Done',
'es': 'Finalizada',
},
general_secured_by: {
'en': 'Secured by',
'es': 'asegurada por',
},
general_email_invalid: {
'en': 'You must enter a valid email address',
'es': 'Debe entrar un correo electrónico válido',
},
general_dates_day_label: {
'en': 'Day',
'es': 'Día',
},
general_dates_year_label: {
'en': 'Year',
'es': 'Año',
},
general_dates_month_label: {
'en': 'Month',
'es': 'Més',
},
general_dates_day_invalid: {
'en': 'Invalid Day',
'es': 'Día Inválido',
},
general_dates_month_invalid: {
'en': 'Invalid Month',
'es': 'Més Inválido',
},
general_dates_year_invalid: {
'en': 'Invalid Year',
'es': 'Año Inválido',
},
general_group_complete_fields: {
'en': 'Please complete the required fields',
'es': 'Por favor complete los informacion requeridos',
},
general_recaptcha_invalid: {
'en': 'reCAPTCHA is not solved',
'es': 'reCAPTCHA no es resolvado',
},
validation_default: {
'en': 'Something is not correct, please recheck the inputs.',
'es': 'Algo es incorrecto, por favor reconfirmar las entradas.',
},
validation_missing: {
'en': '%{label} is missing',
'es': '%{label} es despovisto',
},
validation_required: {
'en': '%{label} is required',
'es': '%{label} es obligatorio',
},
donation_your: {
'en': 'Your donation',
'es': 'Su donativo',
},
order_your: {
'en': 'Your order',
'es': 'Su orden',
},
// First screen (Donation customization)
donation_frequency_name: {
'en': 'Frequency',
'es': 'Frecuencia',
},
donation_give: {
'en': 'Give',
'es': 'Dar',
},
donation_frequency_once: {
'en': 'Once',
'es': 'Una Vez',
},
donation_frequency_weekly: {
'en': 'Weekly',
'es': 'Semanal',
},
donation_frequency_monthly: {
'en': 'Monthly',
'es': 'Mensual',
},
donation_frequency_quarterly: {
'en': 'Quarterly',
'es': 'Trimestral',
},
donation_frequency_yearly: {
'en': 'Yearly',
'es': 'Anualmente',
},
donation_ask_amount: {
'en': 'Choose an amount to give',
'es': 'Elige una cantidad para regalar',
},
donation_optional_donation: {
'en': 'Add an optional donation',
'es': 'Añadir un donativo opcional ',
},
donation_or_enter_amount: {
'en': 'or enter amount',
'es': 'o rellenar con el importe',
},
donation_min_validation: {
'en': 'Amount must be at least %{currency_symbol}%{amount}',
'es': 'Cantidad debe ser al menos %{currency_symbol}%{amount}',
},
donation_max_validation: {
'en': 'Amount must be at most %{currency_symbol}%{amount}',
'es': 'Cantidad debe ser al máximo %{currency_symbol}%{amount}',
},
donation_remove_amount: {
'en': 'REMOVE',
'es': 'Quitar',
},
donation_allocation_donate_to: {
'en': 'Donate To',
'es': 'Donar a',
},
donation_options: {
'en': 'Donation Options',
'es': 'Opciones de donación',
},
// Donation options — Dedication
customize_dedication_name: {
'en': 'Dedicate this donation',
'es': 'Dedicar este donativo',
},
customize_dedication_in_honor_label: {
'en': 'In Honor of',
'es': 'En honor a',
},
customize_dedication_in_memory_label: {
'en': 'In Memory of',
'es': 'En memoria de',
},
customize_dedication_inspired_by_label: {
'en': 'Inspired by',
'es': 'Inspirado por',
},
customize_dedication_type_hint: {
'en': 'Select a dedication type',
'es': 'Seleccione un tipo de dedicación',
},
customize_dedication_type_label: {
'en': 'Dedication Type',
'es': 'Tipo de dedicación',
},
customize_dedication_person_name_label: {
'en': 'Dedication Name',
'es': 'Nombre del dedicado',
},
customize_dedication_person_name_hint: {
'en': 'Name of this person',
'es': 'Nombre de la persona',
},
customize_dedication_person_email_label: {
'en': 'Dedication Email',
'es': 'Mensage por la dedicación',
},
customize_dedication_person_message_label: {
'en': 'Dedication Message',
'es': 'Mensage de dedicación',
},
// Donation options — Company match
customize_company_match_name: {
'en': 'Company match',
'es': 'Mi empresa cuenta con un programa de donativos',
},
customize_company_match_company_name: {
'en': 'Company Name',
'es': 'Nombre de la empresa',
},
customize_company_match_company_email: {
'en': 'Company Email',
'es': 'Empresa correo electrónico',
},
customize_company_match_company_email_placeholder: {
'en': 'example@example.com',
'es': 'ejemplo@ejemplo.com',
},
customize_company_match_search_companies: {
'en': 'Search Companies',
'es': 'Buscar empresas',
},
customize_company_match_min_match_error: {
'en': 'Amount is less than the specified company match amount of USD $',
'es': 'Importe es menos que la donacion igualada por la empresa. USD $',
},
// Donation options — Comment
customize_comment_name_alt: {
'en': 'Add a comment',
'es': 'Dejar un comentario'
},
customize_comment_value_in_textarea: {
'en': 'Comment',
'es': 'Comentar',
},
// Custom questions
customize_question_this: {
'en': 'This question',
'es': 'Este pregunta',
},
customize_question_select_an_option: {
'en': 'Select an option',
'es': 'Seleccionar una opción',
},
// Payments — Pay sheet & general
donation_amount_text: {
'en': 'Donation amount',
'es': 'Monto de donación',
},
payments_total_payment_amount: {
'en': 'Total payment amount',
'es': 'Monto total del pago',
},
customize_anonymous_name: {
'en': 'Donate anonymously',
'es': 'Donar anónimamente',
},
donor_information_email_opt_in: {
'en': 'Keep me updated with email and SMS',
'es': 'Quiero recibir noticias por correo electrónico y SMS',
},
donation_donate_with: {
'en': 'Donate with',
'es': 'Dona con',
},
payments_currency: {
'en': 'Currency',
'es': 'Moneda',
},
payments_methods_name: {
'en': 'Payment Method',
'es': 'Forma de pago',
},
payments_methods_apple_pay: {
'en': 'Apple Pay',
'es': 'Apple Pay',
},
payments_methods_card: {
'en': 'Card',
'es': 'Tarjeta de crédito',
},
payments_methods_paypal: {
'en': 'PayPal',
'es': 'PayPal',
},
payments_methods_check: {
'en': 'E-Check',
'es': 'Cheque electrónico',
},
payments_methods_bitcoin: {
'en': 'Bitcoin',
'es': 'Bitcoin',
},
payments_credit_card_submit: {
'en': 'Submit payment',
'es': 'Entregar el pago',
},
payments_credit_card_progress: {
'en': 'Submitting payment',
'es': 'Entregando el pago',
},
payments_pay_total: {
'en': 'Pay',
'es': 'Paga',
},
payments_check_progress: {
'en': 'Submitting payment',
'es': 'Entregando el pago',
},
payments_bitcoin_submit: {
'en': 'Finish with BitPay',
'es': 'Completar con BitPay',
},
payments_bitcoin_progress: {
'en': 'Talking with BitPay',
'es': 'Communicando con BitPay',
},
payments_paypal_submit: {
'en': 'Finish with PayPal',
'es': 'Completar con PayPal',
},
payments_paypal_progress: {
'en': 'Talking with PayPal',
'es': 'Communicando con PayPal',
},
payments_paypal_success: {
'en': 'Please finish your transaction with PayPal.',
'es': 'Por favor completar su transacción con PayPal.',
},
payments_bitcoin_success: {
'en': 'Please finish your transaction with BitPay.',
'es': 'Por favor completar su transacción con BitPay.',
},
payments_apple_pay_progress: {
'en': 'Completing transaction with Apple Pay®',
'es': 'Completando su transacción con Apple Pay®',
},
payments_failed_try_again: {
'en': 'Try Again',
'es': 'Intentar de nuevo',
},
payments_thank_you_supporter: {
'en': 'Thank you, %{name}',
'es': 'Gracias, %{name}',
},
payments_thank_you_message_1: {
'en': 'Your payment was processed successfully.',
'es': 'Su pago fue procesado con éxito.'
},
payments_thank_you_message_2: {
'en': "You''ll receive a receipt by email shortly.",
'es': 'En breve recibirá un recibo por correo electrónico.'
},
// Payments — Donors Cover Fees
// The Donors Cover Fees feature translation is not customizable.
// The Donors Cover Fees feature automatically provides translations for en, es, fr, and pt
// Payments — eCheck
payments_check_bank_name: {
'en': 'Bank Name',
'es': 'Nombre del Banco',
},
payments_check_bank_account_number: {
'en': 'Bank Account Number',
'es': 'Número de cuenta bancaria',
},
payments_check_bank_routing_number: {
'en': 'Bank Routing Number',
'es': 'Número de identificación',
},
payments_check_bank_account_type: {
'en': 'Account Type',
'es': 'Tipo de Cuenta',
},
payments_check_checking: {
'en': 'Checking',
'es': 'Cuenta corriente',
},
payments_check_savings: {
'en': 'Savings',
'es': 'Cuenta de ahorro',
},
payments_check_bank_account_holder_type: {
'en': 'Account Holder',
'es': 'Titular de la Cuenta',
},
payments_check_personal: {
'en': 'Personal',
'es': 'Personal',
},
payments_check_business: {
'en': 'Business',
'es': 'Negocio',
},
// Payments — Card
payments_credit_card_information_title: {
'en': 'Card Information',
'es': 'Informacion de tarjeta',
},
payments_credit_card_number_placeholder: {
'en': 'Credit Card #',
'es': 'Número de tarjeta',
},
payments_credit_card_number_label: {
'en': 'Card Number',
'es': 'Número de tarjeta',
},
payments_cvv_placeholder: {
'en': 'cvv',
'es': 'cvv',
},
payments_credit_card_cvv_label: {
'en': 'Card CVV',
'es': 'Código de verificación de la tarjeta',
},
payments_credit_card_cvv_hint: {
'en': 'CVV codes are located on the back of Visa, Mastercard, and Discover cards. American Express CVV codes are located on the front.',
'es': 'CVV (o código de verificación) son en el reverso de tarjetas Visa, Mastercard, y Discover. American Express CVV códigos son en el frente.',
},
payments_credit_card_number_error: {
'en': 'Card number is not valid',
'es': 'El número de tarjeta no es válido',
},
payments_credit_card_cvv_error: {
'en': 'Card CVV is not valid',
'es': 'Tarjeta CVV no es válida',
},
payments_credit_card_expired_error: {
'en': 'Expiration date is not valid',
'es': 'La fecha de caducidad no es válida',
},
// Tickets
order_items_heading: {
'en': 'Select number of tickets',
'es': 'Seleccionar el número de boletos',
},
order_items_submit: {
'en': 'Submit order',
'es': 'Entregar el orden',
},
order_items_errors_empty: {
'en': 'At least one ticket is required',
'es': 'Al menos un boleto es obligatorio',
},
order_registrations_heading: {
'en': 'Customize ticket %{position} of %{total}',
'es': 'Personalizar boleto %{position} de %{total}',
},
order_registrations_for_me: {
'en': 'This ticket is for me',
'es': 'Este boleto es para mi',
},
multi_ticket_type_purchaser_one: {
'en': 'This ticket is for me',
'es': 'Este boleto es para mi',
},
multi_ticket_type_purchaser_many: {
'en': 'One of these tickets is for me',
'es': 'Uno de estos boletos es para mi',
},
order_registrations_guest_heading: {
'en': 'Guest Information',
'es': 'Información del invitado',
},
free_order_thank_you_message_1: {
'en': 'Your order was processed successfully.',
'es': 'Su pedido fue procesado exitosamente.',
},
free_order_thank_you_message_2: {
'en': 'You’ll receive a summary of your order by email shortly.',
'es': 'Recibirás un resumen de tu pedido por correo electrónico en breve.',
},
// Donor contact information
donor_information_heading: {
'en': 'Your Information',
'es': 'Su información',
},
institution_checkbox_label: {
'en': 'This donation is from an institution',
'es': 'Este donativo es en nombre de una institución',
},
institution_name: {
'en': 'Institution Name',
'es': 'Nombre de la institución',
},
institution_type: {
'en': 'Institution Type',
'es': 'Tipo de institución',
},
institution_name_place_holder: {
'en': 'enter institution name',
'es': 'entrar el nombre de la institución',
},
institution_categories_corporation: {
'en': 'Corporation',
'es': 'Corporación',
},
institution_categories_foundation: {
'en': 'Foundation',
'es': 'Fundación',
},
institution_categories_place_of_worship: {
'en': 'Place of Worship',
'es': 'Lugar de culto',
},
institution_categories_government: {
'en': 'Government',
'es': 'Gobierno',
},
institution_categories_school: {
'en': 'School',
'es': 'Escuela',
},
institution_categories_donor_advised_fund: {
'en': 'Donor Advised Fund',
'es': 'Fondos Designados por Donantes',
},
institution_categories_other: {
'en': 'Other',
'es': 'Otro',
},
donor_information_title: {
'en': 'Title',
'es': 'Título',
},
donor_information_first_name: {
'en': 'First Name',
'es': 'Nombre',
},
donor_information_last_name: {
'en': 'Last Name',
'es': 'Apellido',
},
donor_information_suffix: {
'en': 'Suffix',
'es': 'Sufijo'
},
donor_information_email: {
'en': 'Email',
'es': 'Correo electrónico',
},
donor_information_phone: {
'en': 'Phone',
'es': 'Teléfono',
},
donor_information_birthday_month: {
'en': 'Month',
'es': 'Mes',
},
donor_information_birthday_day: {
'en': 'Day',
'en': 'Día',
},
donor_information_birthday_year: {
'en': 'Year',
'es': 'Año',
},
donor_information_gender_women: {
'en': 'Woman',
'es': 'Mujer',
},
donor_information_gender_man: {
'en': 'Man',
'es': 'Hombre',
},
donor_information_gender_prefer_not_to_say: {
'en': 'Prefer not to say',
'es': 'No quiero decir',
},
donor_information_gender_non_binary_other: {
'en': 'Non-Binary/Other',
'es': 'No-Binario/Otro',
},
donor_information_billing: {
'en': 'Billing Address',
'es': 'Domicilio fiscal',
},
general_manually_enter_address: {
'en': 'Manually enter address',
'es': 'Introducir dirección manualmente',
},
donor_information_auto_address_server_error: {
'en': 'An error occurred retrieving address details. Please enter the address manually.',
'es': 'Había un error recuperarando los datos de la dirreción. Por favor entrar la dirreción manualmente.',
},
donor_information_auto_address_label: {
'en': 'Search Address',
'es': 'Buscar la Dirreción',
},
donor_information_auto_address_place_holder: {
'en': 'Enter Address',
'es': 'Entrar la Dirreción',
},
donor_information_address: {
'en': 'Address',
'es': 'Dirección',
},
donor_information_address_line_2: {
'en': 'Address line 2',
'es': 'Linea 2',
},
donor_information_city: {
'en': 'City',
'es': 'Ciudad',
},
donor_information_state: {
'en': 'State',
'es': 'Estado',
},
donor_information_postal_code: {
'en': 'Postal Code',
'es': 'Código postal',
},
donor_information_postal_code_error: {
'en': 'Error with the postal code',
'es': 'Error con el código postal',
},
donor_information_country: {
'en': 'Country',
'es': 'País',
},
donor_information_or_enter_postal_code: {
'en': 'or enter postal code',
'es': 'o entrar el código postal',
},
// Recurring Upgrade
become_supporter_heading: {
'en': 'Would you like to donate monthly?',
},
become_supporter_text: {
'en': 'When you convert your $%{amount} one-time donation into a monthly donation you will sustain our work year-round.',
},
become_supporter_text_cancel_anytime: {
'en': 'You can cancel anytime.',
},
become_supporter: {
'en': 'Donate $%{amount}/month',
},
become_supporter_max_aria: {
'en': 'Donate $%{amount} per month',
},
become_supporter_min: {
'en': 'Donate $%{amount}/month',
},
become_supporter_min_aria: {
'en': 'Donate $%{amount} per month',
},
become_supporter_decline: {
'en': 'Not today',
},
become_supporter_decline_aria: {
'en': 'Not today',
},
},
},
});
</script>
<!-- Button Code -->
<button type="button" data-formId="271">Donate</button>
button {
background-color: #2979FF;
color: #ffffff;
padding: 10px 25px;
border: none;
border-radius: 3px;
letter-spacing: .5px;
font-size: 16px;
cursor: pointer;
margin: 10px auto;
display: block;
}
Also see: Tab Triggers