CINXE.COM
Support the Free Software Foundation | Free Software Foundation
<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <script type="text/javascript"> <!--//--><![CDATA[//><!-- /** * @licstart The following is the entire license notice for the JavaScript * code in this page. * * Copyright (C) 2020 Free Software Foundation. * * The JavaScript code in this page is free software: you can redistribute * it and/or modify it under the terms of the GNU General Public License * (GNU GPL) as published by the Free Software Foundation, either version 3 * of the License, or (at your option) any later version. The code is * distributed WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU GPL * for more details. * * As additional permission under GNU GPL version 3 section 7, you may * distribute non-source (e.g., minimized or compacted) forms of that code * without the copy of the GNU GPL normally required by section 4, provided * you include this license notice and a URL through which recipients can * access the Corresponding Source. * * @licend The above is the entire license notice for the JavaScript code * in this page. */ //--><!]]> </script> <meta charset="utf-8" /> <meta name="Generator" content="Drupal 7 (http://drupal.org)" /> <script type="text/javascript"> // @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3 (function(vars) { if (window.CRM) CRM.$.extend(true, CRM, vars); else window.CRM = vars; })({"config":{"isFrontend":false,"entityRef":{"contactCreate":false}},"billing":{"billingProfileIsHideable":false}}) // @license-end </script> <meta name="viewport" content="width=device-width; initial-scale=0.6666; maximum-scale=1.0; minimum-scale=0.6666" /> <link rel="shortcut icon" href="https://my.fsf.org/sites/default/files/favicon_0.png" type="image/png" /> <title>Support the Free Software Foundation | Free Software Foundation</title> <link type="text/css" rel="stylesheet" href="https://my.fsf.org/sites/default/files/css/css_xE-rWrJf-fncB6ztZfd2huxqgxu4WO-qwma6Xer30m4.css" media="all" /> <link type="text/css" rel="stylesheet" href="https://my.fsf.org/sites/default/files/css/css_NdVgz6YKifxQUEsW5xls_zI7Pn2F7E5U5Wb29zcu3vo.css" media="all" /> <link type="text/css" rel="stylesheet" href="https://my.fsf.org/sites/default/files/css/css_vkaQvmsbNO5RUBUEhE1aLA9NbdUQK9x3CmTrzZA25Fk.css" media="all" /> <link type="text/css" rel="stylesheet" href="https://static.fsf.org/nosvn/plone4/css/testing.css?r=lp7Di" media="all" /> <link type="text/css" rel="stylesheet" href="https://my.fsf.org/sites/default/files/css/css_ka9UN6Em-DwJtiHYkvervNsKtjHjavpVDwmo5yroPr8.css" media="all" /> <script type="text/javascript" src="https://my.fsf.org/misc/jquery.js?v=1.4.4"></script> <script type="text/javascript" src="https://my.fsf.org/misc/jquery-extend-3.4.0.js?v=1.4.4"></script> <script type="text/javascript" src="https://my.fsf.org/misc/jquery-html-prefilter-3.5.0-backport.js?v=1.4.4"></script> <script type="text/javascript" src="https://my.fsf.org/misc/jquery.once.js?v=1.2"></script> <script type="text/javascript" src="https://my.fsf.org/misc/drupal.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/modules/civicrm/bower_components/jquery-ui/jquery-ui.min.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/modules/civicrm/bower_components/lodash-compat/lodash.min.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/modules/civicrm/packages/jquery/plugins/jquery.mousewheel.min.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/modules/civicrm/bower_components/select2/select2.min.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/modules/civicrm/packages/jquery/plugins/jquery.form.min.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/modules/civicrm/packages/jquery/plugins/jquery.timeentry.min.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/modules/civicrm/packages/jquery/plugins/jquery.blockUI.min.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/modules/civicrm/bower_components/datatables/media/js/jquery.dataTables.min.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/modules/civicrm/bower_components/jquery-validation/dist/jquery.validate.min.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/modules/civicrm/bower_components/jquery-validation/dist/additional-methods.min.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/modules/civicrm/packages/jquery/plugins/jquery.ui.datepicker.validation.min.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/modules/civicrm/js/Common.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/modules/civicrm/js/crm.datepicker.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/modules/civicrm/js/crm.ajax.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/modules/civicrm/js/wysiwyg/crm.wysiwyg.js?snlqkd"></script> <script type="text/javascript" src="/civicrm/ajax/l10n-js/en_US?cid=&r=lp7Di"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/modules/civicrm/js/noconflict.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/themes/fsf_venture/js/global.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/themes/fsf_venture/js/jquery.superfish.min.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/themes/fsf_venture/js/jquery.sidr.min.js?snlqkd"></script> <script type="text/javascript" src="https://my.fsf.org/sites/all/themes/fsf_venture/js/jquery.flexslider.min.js?snlqkd"></script> <script type="text/javascript"> <!--//--><![CDATA[//><!-- jQuery.extend(Drupal.settings, {"basePath":"\/","pathPrefix":"","setHasJsCookie":0,"ajaxPageState":{"theme":"fsf_venture","theme_token":"Js7TzeQlQ0Z-OwTE_x8IOd2ZoEp51IrBZBBdJx31BQE","js":{"https:\/\/my.fsf.org\/extensions\/com.aghstrategies.giftmemberships\/js\/giftpricefield.js?r=lp7Di":1,"https:\/\/my.fsf.org\/extensions\/com.ginkgostreet.negativenegator\/js\/negativenegator.js?r=lp7Di":1,"misc\/jquery.js":1,"misc\/jquery-extend-3.4.0.js":1,"misc\/jquery-html-prefilter-3.5.0-backport.js":1,"misc\/jquery.once.js":1,"misc\/drupal.js":1,"sites\/all\/modules\/civicrm\/bower_components\/jquery\/dist\/jquery.min.js":1,"sites\/all\/modules\/civicrm\/bower_components\/jquery-ui\/jquery-ui.min.js":1,"sites\/all\/modules\/civicrm\/bower_components\/lodash-compat\/lodash.min.js":1,"sites\/all\/modules\/civicrm\/packages\/jquery\/plugins\/jquery.mousewheel.min.js":1,"sites\/all\/modules\/civicrm\/bower_components\/select2\/select2.min.js":1,"sites\/all\/modules\/civicrm\/packages\/jquery\/plugins\/jquery.form.min.js":1,"sites\/all\/modules\/civicrm\/packages\/jquery\/plugins\/jquery.timeentry.min.js":1,"sites\/all\/modules\/civicrm\/packages\/jquery\/plugins\/jquery.blockUI.min.js":1,"sites\/all\/modules\/civicrm\/bower_components\/datatables\/media\/js\/jquery.dataTables.min.js":1,"sites\/all\/modules\/civicrm\/bower_components\/jquery-validation\/dist\/jquery.validate.min.js":1,"sites\/all\/modules\/civicrm\/bower_components\/jquery-validation\/dist\/additional-methods.min.js":1,"sites\/all\/modules\/civicrm\/packages\/jquery\/plugins\/jquery.ui.datepicker.validation.min.js":1,"sites\/all\/modules\/civicrm\/js\/Common.js":1,"sites\/all\/modules\/civicrm\/js\/crm.datepicker.js":1,"sites\/all\/modules\/civicrm\/js\/crm.ajax.js":1,"sites\/all\/modules\/civicrm\/js\/wysiwyg\/crm.wysiwyg.js":1,"\/civicrm\/ajax\/l10n-js\/en_US?cid=\u0026r=lp7Di":1,"sites\/all\/modules\/civicrm\/js\/noconflict.js":1,"sites\/all\/themes\/fsf_venture\/js\/global.js":1,"sites\/all\/themes\/fsf_venture\/js\/jquery.superfish.min.js":1,"sites\/all\/themes\/fsf_venture\/js\/jquery.sidr.min.js":1,"sites\/all\/themes\/fsf_venture\/js\/jquery.flexslider.min.js":1},"css":{"modules\/system\/system.base.css":1,"modules\/system\/system.menus.css":1,"modules\/system\/system.messages.css":1,"modules\/system\/system.theme.css":1,"modules\/comment\/comment.css":1,"modules\/field\/theme\/field.css":1,"modules\/node\/node.css":1,"modules\/user\/user.css":1,"sites\/all\/modules\/views\/css\/views.css":1,"sites\/all\/modules\/ctools\/css\/ctools.css":1,"sites\/all\/modules\/uif\/uif.css":1,"sites\/all\/modules\/civicrm\/css\/crm-i.css":1,"sites\/all\/modules\/civicrm\/bower_components\/datatables\/media\/css\/jquery.dataTables.min.css":1,"sites\/all\/modules\/civicrm\/bower_components\/font-awesome\/css\/font-awesome.min.css":1,"sites\/all\/modules\/civicrm\/bower_components\/jquery-ui\/themes\/smoothness\/jquery-ui.min.css":1,"sites\/all\/modules\/civicrm\/bower_components\/select2\/select2.min.css":1,"sites\/all\/modules\/civicrm\/css\/civicrm.css":1,"https:\/\/static.fsf.org\/nosvn\/plone4\/css\/testing.css?r=lp7Di":1,"sites\/all\/themes\/fsf_venture\/style.css":1,"sites\/all\/themes\/venture_theme\/css\/responsive.css":1,"sites\/all\/themes\/fsf_venture\/custom.css":1}}}); //--><!]]> </script> <!--[if lt IE 9]><script src="/sites/all/themes/venture_theme/js/html5.js"></script><![endif]--> </head> <body class="html not-front not-logged-in no-sidebars page-civicrm page-civicrm-contribute page-civicrm-contribute-transact"> <div id="wrap"> <div id="header-wrap" class="clr fixed-header"> <header id="header" class="site-header clr container"> <div id="logo" class="clr"> <div id="site-logo"><a href="/" title="Home"> <img src="https://my.fsf.org/sites/default/files/fsf-logo_1.png" alt="Home" /> </a></div> </div> <div id="sidr-close"><a href="#sidr-close" class="toggle-sidr-close"></a></div> <div id="site-navigation-wrap"> <a href="#sidr-main" id="navigation-toggle"><span class="fa fa-bars"></span>Menu</a> <nav id="site-navigation" class="navigation main-navigation clr" > <div id="main-menu" class="menu-main-container"> </div> </nav> </div> </header> </div> <div id="main" class="site-main container clr"> <div id="primary" class="content-area clr"> <section id="content" role="main" class="site-content clr"> <div id="content-wrap"> <h1 class="page-title">Support the Free Software Foundation</h1> <div class="region region-content"> <div id="block-system-main" class="block block-system"> <div class="content"> <div id="crm-container" class="crm-container crm-public" lang="en" xml:lang="en"> <div class="clear"></div> <div id="crm-main-content-wrapper"> <form action="/civicrm/contribute/transact" method="post" name="Main" id="Main" class="CRM_Contribute_Form_Contribution_Main" enctype="multipart/form-data" data-warn-changes="true" > <div><input name="qfKey" type="hidden" value="CRMContributeControllerContribution62ha2a76q6scg0w4kcsckcg84k4kgg4ok0c88sggwocw880csg_2274" /> <input name="hidden_processor" type="hidden" value="1" /> <input name="priceSetId" type="hidden" value="88" /> <input id="selectProduct" name="selectProduct" type="hidden" value="" /> <input name="_qf_default" type="hidden" value="Main:upload" /> <input name="MAX_FILE_SIZE" type="hidden" value="2097152" /> </div> <script type="text/javascript"> // Putting these functions directly in template so they are available for standalone forms function useAmountOther() { var priceset = 'price_174'; for( i=0; i < document.Main.elements.length; i++ ) { element = document.Main.elements[i]; if ( element.type == 'radio' && element.name == priceset ) { if (element.value == '0' ) { element.click(); } else { element.checked = false; } } } } function clearAmountOther() { var priceset = '#price_175' if( priceset ){ cj(priceset).val(''); cj(priceset).blur(); } if (document.Main.amount_other == null) return; // other_amt field not present; do nothing document.Main.amount_other.value = ""; } </script> <div class="crm-contribution-page-id-14 crm-block crm-contribution-main-form-block"> <div id="intro_text" class="crm-public-form-item crm-section intro_text-section"> <!--Minibar start--> <style type="text/css">#custom_38 { width: 300px; } </style> <iframe src="//static.fsf.org/nosvn/minibars/202411fundraiser/" style="width: 70%; height: 93px; display: block; border: none; margin: 0 auto; overflow: hidden;"></iframe> <style> @media all and (max-width:30em){ .iframe{ display:inline-block; margin:0.2em auto; } } </style> <!-- minibar end --> Welcome to the FSF! We are pleased to have you join our growing group of supporters, who are helping defend and promote computer users' rights. <p> Your support helps the Free Software Foundation remain proudly independent. Will you support the free software movement with a donation today? </p> <p>We use these funds to help us defend the freedoms and rights of all computer users, to nurture the GNU Project, to certify freedom-respecting electronics, and to battle the practice of Digital Restrictions Management.</p> <p><strong>Able to make a recurring donation?</strong> Why not <a href="https://my.fsf.org/join">become an associate member to support our work year-round</a> and receive additional <a href="https://www.fsf.org/associate/benefits">membership benefits.</a></p> <p><a href="https://www.fsf.org">About the FSF</a> | <a href="https://my.fsf.org/renew">Renew an existing membership</a> | <a href="https://www.fsf.org/about/ways-to-donate/">Other ways to give</a></p> <!-- <p><img alt="a collage of photos: a laptop with circuits exposed, a woman in the audience at libreplanet, speaking; a dog with a no drm sign; a man at libreplanet looking at his laptop" src="https://static.fsf.org/nosvn/images/donate-page-libreplanet-collage.png" /></p> --> <p><em><small>The Free Software Foundation (FSF) is a 501(c)(3) nonprofit organization based in Boston, MA, USA.</small></em></p> </div> <div id="priceset-div"> <div id="priceset" class="crm-section price_set-section"> <div class="crm-section contribution_amount-section"> <div class="label"><label>Contribution Amount</label></div> <div class="content contribution_amount-content"> <div class="price-set-row contribution_amount-row1"> <span class="price-set-option-content"><input price="["price_174","314.15||"]" data-amount="314.150000000" data-currency="USD" data-price-field-values="{"749":{"id":"749","price_field_id":"174","label":"\u03c0","amount":"314.150000000","weight":"1","is_default":"1","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"750":{"id":"750","price_field_id":"174","label":"ThankGNU!","amount":"500.000000000","weight":"2","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"751":{"id":"751","price_field_id":"174","label":"ThankGNU!","amount":"1000.000000000","weight":"3","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"752":{"id":"752","price_field_id":"174","label":"ThankGNU!","amount":"2500.000000000","weight":"4","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"753":{"id":"753","price_field_id":"174","label":"Match the avg donation","amount":"46.220000000","weight":"5","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"754":{"id":"754","price_field_id":"174","label":"Nice and rounded","amount":"100.000000000","weight":"6","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"943":{"id":"943","price_field_id":"174","amount":"50.000000000","weight":"7","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"1138":{"id":"1138","price_field_id":"174","amount":"25.000000000","weight":"8","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"}}" visibility="1" onclick="clearAmountOther();" class="crm-form-radio" value="749" type="radio" id="CIVICRM_QFID_749_price_174" name="price_174" checked="checked" /><label for="CIVICRM_QFID_749_price_174"><span class="crm-price-amount-label">π<span class="crm-price-amount-label-separator"> - </span></span><span class="crm-price-amount-amount">$USD 314.15</span></label></span> </div> <div class="price-set-row contribution_amount-row2"> <span class="price-set-option-content"><input price="["price_174","500||"]" data-amount="500.000000000" data-currency="USD" data-price-field-values="{"749":{"id":"749","price_field_id":"174","label":"\u03c0","amount":"314.150000000","weight":"1","is_default":"1","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"750":{"id":"750","price_field_id":"174","label":"ThankGNU!","amount":"500.000000000","weight":"2","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"751":{"id":"751","price_field_id":"174","label":"ThankGNU!","amount":"1000.000000000","weight":"3","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"752":{"id":"752","price_field_id":"174","label":"ThankGNU!","amount":"2500.000000000","weight":"4","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"753":{"id":"753","price_field_id":"174","label":"Match the avg donation","amount":"46.220000000","weight":"5","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"754":{"id":"754","price_field_id":"174","label":"Nice and rounded","amount":"100.000000000","weight":"6","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"943":{"id":"943","price_field_id":"174","amount":"50.000000000","weight":"7","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"1138":{"id":"1138","price_field_id":"174","amount":"25.000000000","weight":"8","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"}}" visibility="1" onclick="clearAmountOther();" class="crm-form-radio" value="750" type="radio" id="CIVICRM_QFID_750_price_174" name="price_174" /><label for="CIVICRM_QFID_750_price_174"><span class="crm-price-amount-label">ThankGNU!<span class="crm-price-amount-label-separator"> - </span></span><span class="crm-price-amount-amount">$USD 500.00</span></label></span> </div> <div class="price-set-row contribution_amount-row3"> <span class="price-set-option-content"><input price="["price_174","1000||"]" data-amount="1000.000000000" data-currency="USD" data-price-field-values="{"749":{"id":"749","price_field_id":"174","label":"\u03c0","amount":"314.150000000","weight":"1","is_default":"1","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"750":{"id":"750","price_field_id":"174","label":"ThankGNU!","amount":"500.000000000","weight":"2","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"751":{"id":"751","price_field_id":"174","label":"ThankGNU!","amount":"1000.000000000","weight":"3","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"752":{"id":"752","price_field_id":"174","label":"ThankGNU!","amount":"2500.000000000","weight":"4","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"753":{"id":"753","price_field_id":"174","label":"Match the avg donation","amount":"46.220000000","weight":"5","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"754":{"id":"754","price_field_id":"174","label":"Nice and rounded","amount":"100.000000000","weight":"6","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"943":{"id":"943","price_field_id":"174","amount":"50.000000000","weight":"7","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"1138":{"id":"1138","price_field_id":"174","amount":"25.000000000","weight":"8","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"}}" visibility="1" onclick="clearAmountOther();" class="crm-form-radio" value="751" type="radio" id="CIVICRM_QFID_751_price_174" name="price_174" /><label for="CIVICRM_QFID_751_price_174"><span class="crm-price-amount-label">ThankGNU!<span class="crm-price-amount-label-separator"> - </span></span><span class="crm-price-amount-amount">$USD 1,000.00</span></label></span> </div> <div class="price-set-row contribution_amount-row4"> <span class="price-set-option-content"><input price="["price_174","2500||"]" data-amount="2500.000000000" data-currency="USD" data-price-field-values="{"749":{"id":"749","price_field_id":"174","label":"\u03c0","amount":"314.150000000","weight":"1","is_default":"1","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"750":{"id":"750","price_field_id":"174","label":"ThankGNU!","amount":"500.000000000","weight":"2","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"751":{"id":"751","price_field_id":"174","label":"ThankGNU!","amount":"1000.000000000","weight":"3","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"752":{"id":"752","price_field_id":"174","label":"ThankGNU!","amount":"2500.000000000","weight":"4","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"753":{"id":"753","price_field_id":"174","label":"Match the avg donation","amount":"46.220000000","weight":"5","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"754":{"id":"754","price_field_id":"174","label":"Nice and rounded","amount":"100.000000000","weight":"6","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"943":{"id":"943","price_field_id":"174","amount":"50.000000000","weight":"7","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"1138":{"id":"1138","price_field_id":"174","amount":"25.000000000","weight":"8","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"}}" visibility="1" onclick="clearAmountOther();" class="crm-form-radio" value="752" type="radio" id="CIVICRM_QFID_752_price_174" name="price_174" /><label for="CIVICRM_QFID_752_price_174"><span class="crm-price-amount-label">ThankGNU!<span class="crm-price-amount-label-separator"> - </span></span><span class="crm-price-amount-amount">$USD 2,500.00</span></label></span> </div> <div class="price-set-row contribution_amount-row5"> <span class="price-set-option-content"><input price="["price_174","46.22||"]" data-amount="46.220000000" data-currency="USD" data-price-field-values="{"749":{"id":"749","price_field_id":"174","label":"\u03c0","amount":"314.150000000","weight":"1","is_default":"1","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"750":{"id":"750","price_field_id":"174","label":"ThankGNU!","amount":"500.000000000","weight":"2","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"751":{"id":"751","price_field_id":"174","label":"ThankGNU!","amount":"1000.000000000","weight":"3","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"752":{"id":"752","price_field_id":"174","label":"ThankGNU!","amount":"2500.000000000","weight":"4","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"753":{"id":"753","price_field_id":"174","label":"Match the avg donation","amount":"46.220000000","weight":"5","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"754":{"id":"754","price_field_id":"174","label":"Nice and rounded","amount":"100.000000000","weight":"6","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"943":{"id":"943","price_field_id":"174","amount":"50.000000000","weight":"7","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"1138":{"id":"1138","price_field_id":"174","amount":"25.000000000","weight":"8","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"}}" visibility="1" onclick="clearAmountOther();" class="crm-form-radio" value="753" type="radio" id="CIVICRM_QFID_753_price_174" name="price_174" /><label for="CIVICRM_QFID_753_price_174"><span class="crm-price-amount-label">Match the avg donation<span class="crm-price-amount-label-separator"> - </span></span><span class="crm-price-amount-amount">$USD 46.22</span></label></span> </div> <div class="price-set-row contribution_amount-row6"> <span class="price-set-option-content"><input price="["price_174","100||"]" data-amount="100.000000000" data-currency="USD" data-price-field-values="{"749":{"id":"749","price_field_id":"174","label":"\u03c0","amount":"314.150000000","weight":"1","is_default":"1","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"750":{"id":"750","price_field_id":"174","label":"ThankGNU!","amount":"500.000000000","weight":"2","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"751":{"id":"751","price_field_id":"174","label":"ThankGNU!","amount":"1000.000000000","weight":"3","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"752":{"id":"752","price_field_id":"174","label":"ThankGNU!","amount":"2500.000000000","weight":"4","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"753":{"id":"753","price_field_id":"174","label":"Match the avg donation","amount":"46.220000000","weight":"5","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"754":{"id":"754","price_field_id":"174","label":"Nice and rounded","amount":"100.000000000","weight":"6","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"943":{"id":"943","price_field_id":"174","amount":"50.000000000","weight":"7","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"1138":{"id":"1138","price_field_id":"174","amount":"25.000000000","weight":"8","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"}}" visibility="1" onclick="clearAmountOther();" class="crm-form-radio" value="754" type="radio" id="CIVICRM_QFID_754_price_174" name="price_174" /><label for="CIVICRM_QFID_754_price_174"><span class="crm-price-amount-label">Nice and rounded<span class="crm-price-amount-label-separator"> - </span></span><span class="crm-price-amount-amount">$USD 100.00</span></label></span> </div> <div class="price-set-row contribution_amount-row7"> <span class="price-set-option-content"><input price="["price_174","50||"]" data-amount="50.000000000" data-currency="USD" data-price-field-values="{"749":{"id":"749","price_field_id":"174","label":"\u03c0","amount":"314.150000000","weight":"1","is_default":"1","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"750":{"id":"750","price_field_id":"174","label":"ThankGNU!","amount":"500.000000000","weight":"2","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"751":{"id":"751","price_field_id":"174","label":"ThankGNU!","amount":"1000.000000000","weight":"3","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"752":{"id":"752","price_field_id":"174","label":"ThankGNU!","amount":"2500.000000000","weight":"4","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"753":{"id":"753","price_field_id":"174","label":"Match the avg donation","amount":"46.220000000","weight":"5","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"754":{"id":"754","price_field_id":"174","label":"Nice and rounded","amount":"100.000000000","weight":"6","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"943":{"id":"943","price_field_id":"174","amount":"50.000000000","weight":"7","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"1138":{"id":"1138","price_field_id":"174","amount":"25.000000000","weight":"8","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"}}" visibility="1" onclick="clearAmountOther();" class="crm-form-radio" value="943" type="radio" id="CIVICRM_QFID_943_price_174" name="price_174" /><label for="CIVICRM_QFID_943_price_174"><span class="crm-price-amount-label"></span><span class="crm-price-amount-amount">$USD 50.00</span></label></span> </div> <div class="price-set-row contribution_amount-row8"> <span class="price-set-option-content"><input price="["price_174","25||"]" data-amount="25.000000000" data-currency="USD" data-price-field-values="{"749":{"id":"749","price_field_id":"174","label":"\u03c0","amount":"314.150000000","weight":"1","is_default":"1","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"750":{"id":"750","price_field_id":"174","label":"ThankGNU!","amount":"500.000000000","weight":"2","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"751":{"id":"751","price_field_id":"174","label":"ThankGNU!","amount":"1000.000000000","weight":"3","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"752":{"id":"752","price_field_id":"174","label":"ThankGNU!","amount":"2500.000000000","weight":"4","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"753":{"id":"753","price_field_id":"174","label":"Match the avg donation","amount":"46.220000000","weight":"5","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"754":{"id":"754","price_field_id":"174","label":"Nice and rounded","amount":"100.000000000","weight":"6","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"943":{"id":"943","price_field_id":"174","amount":"50.000000000","weight":"7","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"},"1138":{"id":"1138","price_field_id":"174","amount":"25.000000000","weight":"8","is_default":"0","is_active":"1","financial_type_id":"1","non_deductible_amount":"0.00","visibility_id":"1"}}" visibility="1" onclick="clearAmountOther();" class="crm-form-radio" value="1138" type="radio" id="CIVICRM_QFID_1138_price_174" name="price_174" /><label for="CIVICRM_QFID_1138_price_174"><span class="crm-price-amount-label"></span><span class="crm-price-amount-amount">$USD 25.00</span></label></span> </div> <div class="price-set-row contribution_amount-row9"> <span class="price-set-option-content"><input price="["price_174","0"]" class="crm-form-radio" value="0" type="radio" id="CIVICRM_QFID_0_price_174" name="price_174" /><label for="CIVICRM_QFID_0_price_174">Other Amount</label></span> </div> </div> <div class="clear"></div> </div> <div class="crm-section other_amount-section"> <div class="label"><label for="price_175">Other Amount $</label></div> <div class="content other_amount-content"> <input onclick="useAmountOther();" price="[756,"1||"]" size="4" name="price_175" type="text" class=" no-negative crm-form-text" data-no-negative="Other Amount" id="price_175" /> </div> <div class="clear"></div> </div> <div id="pricesetTotal" class="crm-section section-pricesetTotal"> <div id="pricelabel" class="label hiddenElement"> <span id='amount_sum_label'>Total Amount</span> </div> <div class="content calc-value" style="display:none;" id="pricevalue"></div> </div> <script type="text/javascript"> var thousandMarker = ','; var separator = '.'; var symbol = '$'; // moneyFormat is part of a temporary fix. it should // not be expected to be present in future versions // see https://github.com/civicrm/civicrm-core/pull/19151 var moneyFormat = '$USD 1,234.56'; var optionSep = '|'; // Recalculate the total fees based on user selection cj("#priceset [price]").each(function () { var elementType = cj(this).attr('type'); if (this.tagName == 'SELECT') { elementType = 'select-one'; } switch(elementType) { case 'checkbox': cj(this).click(function(){ calculateCheckboxLineItemValue(this); display(calculateTotalFee()); }); calculateCheckboxLineItemValue(this); break; case 'radio': cj(this).click( function(){ calculateRadioLineItemValue(this); display(calculateTotalFee()); }); calculateRadioLineItemValue(this); break; case 'text': cj(this).bind( 'keyup', function() { calculateText(this); }).bind( 'blur' , function() { calculateText(this); }); //default calculation of element. calculateText(this); break; case 'select-one': calculateSelectLineItemValue(this); cj(this).change(function() { calculateSelectLineItemValue(this); display(calculateTotalFee()); }); break; } display(calculateTotalFee()); }); /** * Calculate the value of the line item for a radio value. */ function calculateCheckboxLineItemValue(priceElement) { eval( 'var option = ' + cj(priceElement).attr('price') ) ; optionPart = option[1].split(optionSep); price = parseFloat(0); if (cj(priceElement).prop('checked')) { price = parseFloat(optionPart[0]); } cj(priceElement).data('line_raw_total', price); } /** * Calculate the value of the line item for a radio value. */ function calculateRadioLineItemValue(priceElement) { eval( 'var option = ' + cj(priceElement).attr('price') ); optionPart = option[1].split(optionSep); var lineTotal = parseFloat(optionPart[0]); cj(priceElement).data('line_raw_total', lineTotal); var radionGroupName = cj(priceElement).attr("name"); // Reset all unchecked options to having a data value of 0. cj('input[name=' + radionGroupName + ']:radio:unchecked').each( function () { cj(this).data('line_raw_total', 0); } ); } /** * Calculate the value of the line item for a select value. */ function calculateSelectLineItemValue(priceElement) { eval( 'var selectedText = ' + cj(priceElement).attr('price') ); var price = parseFloat('0'); var option = cj(priceElement).val(); if (option) { optionPart = selectedText[option].split(optionSep); price = parseFloat(optionPart[0]); } cj(priceElement).data('line_raw_total', price); } /** * Calculate the value of the line item for a text box. */ function calculateText(priceElement) { //CRM-16034 - comma acts as decimal in price set text pricing //CRM-19937 - dollar sign easy mistake to make by users. var textval = parseFloat(cj(priceElement).val().replace(thousandMarker, '').replace(symbol, '')); if (isNaN(textval)) { textval = parseFloat(0); } eval('var option = '+ cj(priceElement).attr('price')); optionPart = option[1].split(optionSep); addprice = parseFloat(optionPart[0]); var curval = textval * addprice; cj(priceElement).data('line_raw_total', curval); display(calculateTotalFee()); } /** * Calculate the total fee for the visible priceset. */ function calculateTotalFee() { var totalFee = 0; cj("#priceset [price]").each(function () { totalFee = totalFee + cj(this).data('line_raw_total'); }); return totalFee; } /** * Display calculated amount. */ function display(totalfee) { // totalfee is monetary, round it to 2 decimal points so it can // go as a float - CRM-13491 totalfee = Math.round(totalfee*100)/100; // dev/core#1019 Use the moneyFormat assigned to the template as an interim fix // to support forms using a currency other that the site default. Also make sure to // support various currency formatting options, // temporary measure - pending // our preferred fix. // see https://github.com/civicrm/civicrm-core/pull/19151 var totalFormattedFee = CRM.formatMoney(totalfee, false, moneyFormat); cj('#pricevalue').html(totalFormattedFee); cj('#total_amount').val( totalfee ); cj('#pricevalue').data('raw-total', totalfee).trigger('change'); if (totalfee < 0) { cj('table#pricelabel').addClass('disabled'); } else { cj('table#pricelabel').removeClass('disabled'); } if (typeof skipPaymentMethod == 'function') { // Advice to anyone who, like me, feels hatred towards this if construct ... if you remove the if you // get an error on participant 2 of a event that requires approval & permits multiple registrants. skipPaymentMethod(); } } </script> </div> </div> <div id='onBehalfOfOrg' class="crm-public-form-item crm-section"> <div class="crm-public-form-item" id="on-behalf-block"> </div> <script type="text/javascript"> CRM.$(function($) { var orgOption = $("input:radio[name=org_option]:checked").attr('id'); var onBehalfRequired = '$onBehalfRequired'; var onbehalfof_id = $('#onbehalfof_id'); var is_for_organization = $('#is_for_organization'); selectCreateOrg(orgOption, false); if (is_for_organization.length) { showHideOnBehalfOfBlock(); is_for_organization.on('change', function() { showHideOnBehalfOfBlock(); }); } function showHideOnBehalfOfBlock() { $('#on-behalf-block').toggle(is_for_organization.is(':checked')); if (is_for_organization.is(':checked')) { $('#onBehalfOfOrg select.crm-select2').removeClass('crm-no-validate'); } else { $('#onBehalfOfOrg select.crm-select2').addClass('crm-no-validate'); } } $("input:radio[name='org_option']").click( function( ) { var orgOption = $(this).attr('id'); selectCreateOrg(orgOption, true); }); onbehalfof_id.change(function() { setLocationDetails($(this).val()); }).change(); if (onbehalfof_id.length) { setLocationDetails(onbehalfof_id.val()); } function resetValues() { // Don't trip chain-select when clearing values $('.crm-chain-select-control', "#select_org div").select2('val', ''); $('input[type=text], select, textarea', "#select_org div").not('.crm-chain-select-control, #onbehalfof_id').val('').change(); $('input[type=radio], input[type=checkbox]', "#select_org div").prop('checked', false).change(); $('#on-behalf-block input').not('input[type=checkbox], input[type=radio], #onbehalfof_id').val(''); // clear checkboxes and radio $('#on-behalf-block') .find('input[type=checkbox], input[type=radio]') .not('input[name=org_option]') .attr('checked', false); } function selectCreateOrg( orgOption, reset ) { if (orgOption == 'CIVICRM_QFID_0_org_option') { $("#onbehalfof_id").show().change(); $("input#onbehalf_organization_name").hide(); } else if (orgOption == 'CIVICRM_QFID_1_org_option') { $("input#onbehalf_organization_name").show(); $("#onbehalfof_id").hide(); reset = true; } if ( reset ) { resetValues(); } } function setLocationDetails(contactID , reset) { resetValues(); var locationUrl = '' + contactID; var submittedOnBehalfInfo = ''; var submittedCID = ""; if (submittedOnBehalfInfo) { submittedOnBehalfInfo = $.parseJSON(submittedOnBehalfInfo); if (submittedCID == contactID) { $.each(submittedOnBehalfInfo, function(key, value) { //handle checkboxes if (typeof value === 'object') { $.each(value, function(k, v) { $('#onbehalf_' + key + '_' + k).prop('checked', v); }); } else if ($('#onbehalf_' + key).length) { $('#onbehalf_' + key ).val(value); } //radio buttons else if ($("input[name='onbehalf[" + key + "]']").length) { $("input[name='onbehalf[" + key + "]']").val([value]); } }); return; } } $.ajax({ url : locationUrl, dataType : "json", success : function(data, status) { for (var ele in data) { if ($("#"+ ele).hasClass('crm-chain-select-target')) { $("#"+ ele).data('newVal', data[ele].value).off('.autofill').on('crmOptionsUpdated.autofill', function() { $(this).off('.autofill').val($(this).data('newVal')).change(); }); } else if ($('#' + ele).data('select2')) { $('#' + ele).select2('val', data[ele].value); } if (data[ele].type == 'Radio') { if (data[ele].value) { var fldName = ele.replace('onbehalf_', ''); $("input[name='onbehalf["+ fldName +"]']").filter("[value='" + data[ele].value + "']").prop('checked', true); } } else if (data[ele].type == 'CheckBox') { for (var selectedOption in data[ele].value) { var fldName = ele.replace('onbehalf_', ''); $("input[name='onbehalf["+ fldName+"]["+ selectedOption +"]']").prop('checked','checked'); } } else if (data[ele].type == 'AdvMulti-Select') { var customFld = ele.replace('onbehalf_', ''); // remove empty value if any $('#onbehalf\\['+ customFld +'\\]-f option[value=""]').remove(); $('#onbehalf\\['+ customFld +'\\]-t option[value=""]').remove(); for (var selectedOption in data[ele].value) { // remove selected values from left and selected values to right $('#onbehalf\\['+ customFld +'\\]-f option[value="' + selectedOption + '"]').remove() .appendTo('#onbehalf\\['+ customFld +'\\]-t'); $('#onbehalf_'+ customFld).val(selectedOption); } } else { // do not set defaults to file type fields if ($('#' + ele).attr('type') != 'file') { $('#' + ele ).val(data[ele].value).change(); } } } }, error : function(XMLHttpRequest, textStatus, errorThrown) { CRM.console('error', "HTTP error status: ", textStatus); } }); } }); </script> </div> <div class="crm-public-form-item crm-section cms_user-section"> <fieldset class="crm-group crm_user-group"> <div class="messages help cms_user_help-section"> If you would like to create an account on this site, check the box below and enter a Username and a password. If you already have an account <a href='https://my.fsf.org/user?destination=civicrm%2Fcontribute%2Ftransact%3Freset%3D1%26id%3D14'>please login</a> instead. </div> <div><input onclick="return showHideByValue('cms_create_account','','details','block','radio',false );" id="cms_create_account" name="cms_create_account" type="checkbox" value="1" class="crm-form-checkbox" /> <label for="cms_create_account">Create an account?</label></div> <div id="details" class="crm_user_signup-section"> <div class="form-layout-compressed"> <div class="crm-section cms_name-section"> <div class="label"> <label for="cms_name"><label for="cms_name">Username</label></label> </div> <div class="content"> <input name="cms_name" type="text" id="cms_name" class="crm-form-text" /> <a id="checkavailability" href="#" onClick="return false;"><strong>Check Availability</strong></a> <span id="msgbox" style="display:none"></span><br /> <span class="description">Punctuation is not allowed in a Username with the exception of periods, hyphens and underscores.</span> </div> </div> <div class="crm-section cms_pass-section"> <div class="label"> <label for="cms_pass"><label for="cms_pass">Password</label></label> </div> <div class="content"> <input name="cms_pass" type="password" id="cms_pass" class="crm-form-password" /> </div> <div class="clear"></div> <div class="label"> <label for="crm_confirm_pass-section"><label for="cms_confirm_pass">Confirm Password</label></label> </div> <div class="content"> <input name="cms_confirm_pass" type="password" id="cms_confirm_pass" class="crm-form-password" /><br/> <span class="description">Provide a password for the new account in both fields.</span> </div> </div> </div> </div> </fieldset> <script type="text/javascript"> if ( document.getElementsByName("cms_create_account")[0].checked ) { cj('#details').show(); } else { cj('#details').hide(); } function showMessage( frm ) { var cId = ''; if ( cId ) { alert('You are logged-in user'); frm.checked = false; } else { var siteName = 'https://my.fsf.org/'; alert('Please login if you have an account on this site with the link ' + siteName ); } } var lastName = null; cj("#checkavailability").click(function() { var cmsUserName = cj.trim(cj("#cms_name").val()); if ( lastName == cmsUserName) { /*if user checking the same user name more than one times. avoid the ajax call*/ return; } /*don't allow special character and for joomla minimum username length is two*/ var spchar = "\<|\>|\"|\'|\%|\;|\(|\)|\&|\\\\|\/"; spchar = spchar + "|\~|\`|\:|\!|\=|\#|\$|\^|\*|\{|\}|\\[|\\]|\+|\?|\,"; var r = new RegExp( "["+spchar+"]", "i"); /*regular expression \\ matches a single backslash. this becomes r = /\\/ or r = new RegExp("\\\\").*/ if ( r.exec(cmsUserName) ) { alert('Your username contains invalid characters'); return; } if (cmsUserName) { /*take all messages in javascript variable*/ var check = "Checking..."; var available = "This username is currently available."; var notavailable = "This username is taken."; var errorMsg = "Error checking username. Please reload the form and try again."; //remove all the class add the messagebox classes and start fading cj("#msgbox").removeClass().addClass('cmsmessagebox').css({"color":"#000","backgroundColor":"#FFC","border":"1px solid #c93"}).text(check).fadeIn("slow"); //check the username exists or not from ajax var contactUrl = "/civicrm/ajax/cmsuser"; var checkUserParams = { cms_name: cj("#cms_name").val(), ts: "1732718891", sig: "VHs0_0a936905cd35c640566f94d6b6a43fb4", for: 'civicrm/ajax/cmsuser' }; cj.post(contactUrl, checkUserParams ,function(data) { if ( data.name == "no") {/*if username not avaiable*/ cj("#msgbox").fadeTo(200,0.1,function() { cj(this).html(notavailable).addClass('cmsmessagebox').css({"color":"#CC0000","backgroundColor":"#F7CBCA","border":"1px solid #CC0000"}).fadeTo(900,1); }); } else if ( data.name == "error") {/*if username not avaiable*/ cj("#msgbox").fadeTo(200,0.1,function() { cj(this).html(errorMsg).addClass('cmsmessagebox').css({"color":"#CC0000","backgroundColor":"#F7CBCA","border":"1px solid #CC0000"}).fadeTo(900,1); }); } else { cj("#msgbox").fadeTo(200,0.1,function() { cj(this).html(available).addClass('cmsmessagebox').css({"color":"#008000","backgroundColor":"#C9FFCA", "border": "1px solid #349534"}).fadeTo(900,1); }); } }, "json"); lastName = cmsUserName; } else { cj("#msgbox").removeClass().text('').css({"backgroundColor":"#FFFFFF", "border": "0px #FFFFFF"}).fadeIn("fast"); } }); </script> <script type="text/javascript"> var trigger_field_id = 'cms_create_account'; var trigger_value = ''; var target_element_id = 'details'; var target_element_type = 'block'; var field_type = 'radio'; var invert = 0; showHideByValue(trigger_field_id, trigger_value, target_element_id, target_element_type, field_type, invert); </script> </div> <div class="crm-public-form-item crm-section premium_block-section"> <div id="premiums" class="premiums-group"> <fieldset class="crm-group premiums_select-group"> <legend>Get the exclusive fundraiser premium</legend> <div id="premiums-listings"><div class="premium premium-no_thanks" id="premium_id-no_thanks" min_contribution="0"><div class="premium-short"><input type="checkbox" disabled="disabled" /> No thanks, I want 100% of my membership dues to go to support the Foundation's work.</div><div class="premium-full"><input type="checkbox" checked="checked" disabled="disabled" /> No thanks, I want 100% of my membership dues to go to support the Foundation's work.</div></div><div class="premium premium-selectable" id="premium_id-57" min_contribution="500.00"><div class="premium-short"><div class="premium-short-thumbnail"><img src="https://static.fsf.org/nosvn/appeal2024/premium-I-love-fs-cap-sm.png" alt="Embroidered I love free software cap" /></div><div class="premium-short-content">Embroidered I love free software cap</div><div style="clear:both"></div></div><div class="premium-full"><div class="premium-full-image"><img src="https://static.fsf.org/nosvn/appeal2024/premium-I-love-fs-cap.png" alt="Embroidered I love free software cap" /></div><div class="premium-full-content"><div class="premium-full-title">Embroidered I love free software cap</div><div class="premium-full-disabled">You must contribute at least $USD 500.00 to get this item<br/><button type="button" amount="500.00">Contribute $USD 500.00 Instead</button></div><div class="premium-full-description">Donate USD $500 or more before year-end, and we'll send you a cool, one-of-a-kind "I love free software" cap to keep for yourself or gift to a loved one! The cap says "I love fs" on the front and "fsf.org" on the right side. We care who does the work: this cap is embroidered for you in the US! Please note that the image is a mockup and the final cap can slightly deviate in color and placing. The premium will be shipped to you by dedicated volunteers. Please note that it may take several months for the premium to reach you depending on where you live.</div><div class="premium-full-options"><p></p></div><div class="premium-full-min">Minimum: $USD 500.00</div><div style="clear:both"></div></div></div><div style="clear:both"></div></div><div class="premium premium-selectable" id="premium_id-55" min_contribution="140.00"><div class="premium-short"><div class="premium-short-thumbnail"><img src="https://static.fsf.org/nosvn/appeal2024/premium-postcards-sm.png" alt="Software freedom outreach postcards" /></div><div class="premium-short-content">Software freedom outreach postcards</div><div style="clear:both"></div></div><div class="premium-full"><div class="premium-full-image"><img src="https://static.fsf.org/nosvn/appeal2024/premium-postcards.png" alt="Software freedom outreach postcards" /></div><div class="premium-full-content"><div class="premium-full-title">Software freedom outreach postcards</div><div class="premium-full-disabled">You must contribute at least $USD 140.00 to get this item<br/><button type="button" amount="140.00">Contribute $USD 140.00 Instead</button></div><div class="premium-full-description">Donate USD $140 or more, or join as an annual associate member during our year-end campaign, and we will send you a set of five unique postcards which will help you promote computer user freedom. Postcard #1 shows a person using Blender. Postcard #2 presents a person using LibreOffice. Postcard #3 displays two guys fixing a computer. Postcard #4 says: "Do you ever feel like someone's watching you?" And postcard #5: "free software. free society." Please note that the image is a mockup and the printed postcards can slightly deviate. The premium will be shipped to you by dedicated volunteers. Please note that it may take several months for the premium to reach you depending on where you live.</div><div class="premium-full-options"><p></p></div><div class="premium-full-min">Minimum: $USD 140.00</div><div style="clear:both"></div></div></div><div style="clear:both"></div></div></div> </fieldset> </div> <script> CRM.$(function($) { var is_separate_payment = 0; // select a new premium function select_premium(premium_id) { if($(premium_id).length) { // hide other active premium $('.premium-full').hide(); $('.premium-short').show(); // show this one $('.premium-short', $(premium_id)).hide(); $('.premium-full', $(premium_id)).show(); // record this one var id_parts = premium_id.split('-'); $('#selectProduct').val(id_parts[1]); } } // click premium to select $('.premium-short').click(function(){ select_premium( '#'+$($(this).parent()).attr('id') ); }); // select the default premium var premium_id = $('#selectProduct').val(); if(premium_id == '') premium_id = 'no_thanks'; select_premium('#premium_id-'+premium_id); // get the current amount function get_amount() { var amount; if (typeof totalfee !== "undefined") { return totalfee; } // see if other amount exists and has a value if($('.other_amount-content input').length) { amount = Number($('.other_amount-content input').val()); if(isNaN(amount)) amount = 0; } function check_price_set(price_set_radio_buttons) { if (!amount) { $(price_set_radio_buttons).each(function(){ if ($(this).prop('checked')) { amount = $(this).attr('data-amount'); if (typeof amount !== "undefined") { amount = Number(amount); } else { amount = 0; } } }); } } // check for additional contribution var additional_amount = 0; if(is_separate_payment) { additional_amount = amount; amount = 0; } // next, check for contribution amount price sets check_price_set('.contribution_amount-content input[type="radio"]'); // next, check for membership level price set check_price_set('.membership_amount-content input[type="radio"]'); check_price_set(cj('.price-set-option-content input[type="radio"]')); // make sure amount is a number at this point if(!amount) amount = 0; // next, check for membership/contribution level price set check_price_set('#priceset input[type="radio"]'); // account for is_separate_payment if(is_separate_payment && additional_amount) { amount += additional_amount; } return amount; } // update premiums function update_premiums() { var amount = get_amount(); console.log('amount:', amount); $('.premium').each(function(){ var min_contribution = $(this).attr('min_contribution'); if(amount < min_contribution) { $(this).addClass('premium-disabled'); } else { $(this).removeClass('premium-disabled'); } }); } $('.other_amount-content input').change(update_premiums); $('input, #priceset').change(update_premiums); update_premiums(); // build a list of price sets var amounts = []; var price_sets = {}; $('input, #priceset select,#priceset').each(function(){ if (this.tagName == 'SELECT') { var selectID = $(this).attr('id'); var selectvalues = JSON.parse($(this).attr('price')); Object.keys(selectvalues).forEach(function (key) { var option = selectvalues[key].split(optionSep); amount = Number(option[0]); price_sets[amount] = '#' + selectID + '-' + key; amounts.push(amount); }); } else { var amount = Number($(this).attr('data-amount')); if (!isNaN(amount)) { amounts.push(amount); var id = $(this).attr('id'); price_sets[amount] = '#'+id; } } }); amounts.sort(function(a,b){return a - b}); // make contribution instead buttons work $('.premium-full-disabled button').click(function(){ var amount = Number($(this).attr('amount')); if (price_sets[amount]) { if (!$(price_sets[amount]).length) { var option = price_sets[amount].split('-'); $(option[0]).val(option[1]); $(option[0]).trigger('change'); } else if ($(price_sets[amount]).attr('type') == 'checkbox') { $(price_sets[amount]).prop("checked",true); if ((typeof totalfee !== 'undefined') && (typeof display == 'function')) { if (totalfee > 0) { totalfee += amount; } else { totalfee = amount; } display(totalfee); } } else { $(price_sets[amount]).click(); $(price_sets[amount]).trigger('click'); } } else { // is there an other amount input box? if($('.other_amount-section input').length) { // is this a membership form with separate payment? if(is_separate_payment) { var current_amount = 0; if($('#priceset input[type="radio"]:checked').length) { current_amount = Number($('#priceset input[type="radio"]:checked').attr('data-amount')); if(!current_amount) current_amount = 0; } var new_amount = amount - current_amount; $('.other_amount-section input').val(new_amount.toFixed(2)); } else { $('.other_amount-section input').click(); $('.other_amount-section input').val($(this).attr('amount')); } } else { // find the next best price set var selected_price_set = false; for(var i in amounts) { if(amounts[i] >= amount) { selected_price_set = amounts[i]; break; } } if(!selected_price_set) { selected_price_set = amounts[amounts.length-1]; } if (!$(price_sets[selected_price_set]).length) { var option = price_sets[selected_price_set].split('-'); $(option[0]).val(option[1]); $(option[0]).trigger('change'); } else if ($(price_sets[selected_price_set]).attr('type') == 'checkbox') { $(price_sets[selected_price_set]).prop("checked",true); if ((typeof totalfee !== 'undefined') && (typeof display == 'function')) { if (totalfee > 0) { totalfee += amount; } else { totalfee = amount; } display(totalfee); } } else { $(price_sets[selected_price_set]).click(); $(price_sets[selected_price_set]).trigger('click'); } } } update_premiums(); }); // validation of premiums var error_message = 'You must contribute more to get that item'; $.validator.addMethod('premiums', function(value, element, params){ var premium_id = $('#selectProduct').val(); var premium$ = $('#premium_id-'+premium_id); if(premium$.length) { if(premium$.hasClass('premium-disabled')) { return false; } } return true; }, error_message); // add validation rules CRM.validate.functions.push(function(){ $('#selectProduct').rules('add', 'premiums'); }); }); </script> </div> <div class="crm-public-form-item crm-group custom_pre_profile-group"> <fieldset class="crm-profile crm-profile-id-246 crm-profile-name-Name_and_Address_246"><legend>Name and address for FSF donation</legend> <div class="messages help"><p>Everyone who donates $500 or more may be thanked on our social media accounts and appear on our list of <a href="https://www.gnu.org/thankgnus">ThankGNUs</a>. To make a donation "In honor of" or "In memory of" someone, please forward your donation receipt along with the person's name to <a href="mailto:membership@fsf.org">membership@fsf.org</a>.</p></div> <div class="crm-section editrow_first_name-section form-item" id="editrow-first_name"> <div class="label"> <label for="first_name"> First Name <span class="crm-marker" title="This field is required.">*</span> </label> </div> <div class="content"> <input maxlength="64" size="30" name="first_name" type="text" id="first_name" class="big crm-form-text required" /> </div> <div class="clear"></div> </div> <div class="crm-section editrow_last_name-section form-item" id="editrow-last_name"> <div class="label"> <label for="last_name"> Last Name <span class="crm-marker" title="This field is required.">*</span> </label> </div> <div class="content"> <input maxlength="64" size="30" name="last_name" type="text" id="last_name" class="big crm-form-text required" /> </div> <div class="clear"></div> </div> <div class="crm-section editrow_email-Primary-section form-item" id="editrow-email-Primary"> <div class="label"> <label for="email-Primary">Email</label> </div> <div class="content"> <input maxlength="254" size="30" name="email-Primary" type="text" id="email-Primary" class="big crm-form-text" /> </div> <div class="clear"></div> </div> <div class="crm-section editrow_custom_332-section form-item" id="editrow-custom_332"> <div class="label"> <label for="custom_332">What inspired you to donate today?</label> </div> <div class="content"> <textarea rows="1" cols="40" data-crm-custom="Reason_for_Donation:What_inspired_you_to_donate_today_" name="custom_332" id="custom_332" class="crm-form-textarea"></textarea> </div> <div class="clear"></div> </div> <div class="crm-section editrow_custom_334-section form-item" id="editrow-custom_334"> <div class="label"> <label for="custom_334">Allow public use of the reason I donated</label> </div> <div class="content"> <select data-crm-custom="Reason_for_Donation:Allow_public_use_of_the_reason_I_donated" class="crm-select2 crm-form-select" name="custom_334" id="custom_334"> <option value="">- select Allow public use of the reason I donated -</option> <option value="1">Don't quote me on this</option> <option value="2">Sure, quote me on this, and use my name</option> <option value="3">Sure, quote me on this, but don't use my name</option> </select> </div> <div class="clear"></div> </div> <div class="crm-section editrow_custom_97-section form-item" id="editrow-custom_97"> <div class="label"> <label> May we thank you publicly for your donations? <span class="crm-marker" title="This field is required.">*</span> </label> </div> <div class="content"> <input data-crm-custom="Donation_privacy:Allow_public_acknowledgment_of_your_donations_" class=" required crm-form-radio" value="1" type="radio" id="CIVICRM_QFID_1_custom_97" name="custom_97" /><label for="CIVICRM_QFID_1_custom_97">Yes</label> <input data-crm-custom="Donation_privacy:Allow_public_acknowledgment_of_your_donations_" class=" required crm-form-radio" value="0" type="radio" id="CIVICRM_QFID_0_custom_97" name="custom_97" checked="checked" /><label for="CIVICRM_QFID_0_custom_97">No</label> </div> <div class="clear"></div> </div> <div class="crm-section editrow_custom_335-section form-item" id="editrow-custom_335"> <div class="label"> <label for="custom_335">T-shirt size (if selected as premium)</label> </div> <div class="content"> <input data-crm-custom="Demographics:T_shirt_size_if_selected_as_premium_" maxlength="20" name="custom_335" type="text" id="custom_335" class="crm-form-text" /> </div> <div class="clear"></div> </div> <div class="crm-section editrow_street_address-Primary-section form-item" id="editrow-street_address-Primary"> <div class="label"> <label for="street_address-Primary">Street Address</label> </div> <div class="content"> <input maxlength="96" size="45" name="street_address-Primary" type="text" id="street_address-Primary" class="huge crm-form-text" /> </div> <div class="clear"></div> </div> <div class="crm-section editrow_supplemental_address_1-Primary-section form-item" id="editrow-supplemental_address_1-Primary"> <div class="label"> <label for="supplemental_address_1-Primary">Supplemental Address 1</label> </div> <div class="content"> <input maxlength="96" size="45" name="supplemental_address_1-Primary" type="text" id="supplemental_address_1-Primary" class="huge crm-form-text" /> </div> <div class="clear"></div> </div> <div class="crm-section editrow_city-Primary-section form-item" id="editrow-city-Primary"> <div class="label"> <label for="city-Primary">City</label> </div> <div class="content"> <input maxlength="64" size="30" name="city-Primary" type="text" id="city-Primary" class="big crm-form-text" /> </div> <div class="clear"></div> </div> <div class="crm-section editrow_country-Primary-section form-item" id="editrow-country-Primary"> <div class="label"> <label for="country-Primary">Country</label> </div> <div class="content"> <select class="crm-select2 crm-chain-select-control crm-form-select" placeholder="- select Country -" name="country-Primary" data-target="state_province-Primary" id="country-Primary"> <option value="">- select Country -</option> <option value="1228" selected="selected">United States</option> <option value="1001">Afghanistan</option> <option value="1241">Åland Islands</option> <option value="1002">Albania</option> <option value="1003">Algeria</option> <option value="1004">American Samoa</option> <option value="1005">Andorra</option> <option value="1006">Angola</option> <option value="1007">Anguilla</option> <option value="1008">Antarctica</option> <option value="1009">Antigua and Barbuda</option> <option value="1010">Argentina</option> <option value="1011">Armenia</option> <option value="1012">Aruba</option> <option value="1013">Australia</option> <option value="1014">Austria</option> <option value="1015">Azerbaijan</option> <option value="1212">Bahamas</option> <option value="1016">Bahrain</option> <option value="1017">Bangladesh</option> <option value="1018">Barbados</option> <option value="1019">Belarus</option> <option value="1020">Belgium</option> <option value="1021">Belize</option> <option value="1022">Benin</option> <option value="1023">Bermuda</option> <option value="1024">Bhutan</option> <option value="1025">Bolivia</option> <option value="1250">Bonaire, Saint Eustatius and Saba</option> <option value="1026">Bosnia and Herzegovina</option> <option value="1027">Botswana</option> <option value="1028">Bouvet Island</option> <option value="1029">Brazil</option> <option value="1030">British Indian Ocean Territory</option> <option value="1032">Brunei Darussalam</option> <option value="1033">Bulgaria</option> <option value="1034">Burkina Faso</option> <option value="1036">Burundi</option> <option value="1037">Cambodia</option> <option value="1038">Cameroon</option> <option value="1039">Canada</option> <option value="1040">Cape Verde</option> <option value="1041">Cayman Islands</option> <option value="1042">Central African Republic</option> <option value="1043">Chad</option> <option value="1044">Chile</option> <option value="1045">China</option> <option value="1046">Christmas Island</option> <option value="1047">Cocos (Keeling) Islands</option> <option value="1048">Colombia</option> <option value="1049">Comoros</option> <option value="1051">Congo, Republic Of The</option> <option value="1050">Congo, The Democratic Republic of the</option> <option value="1052">Cook Islands</option> <option value="1053">Costa Rica</option> <option value="1054">Côte d’Ivoire</option> <option value="1055">Croatia</option> <option value="1056">Cuba</option> <option value="1248">Curaçao</option> <option value="1057">Cyprus</option> <option value="1058">Czech Republic</option> <option value="1059">Denmark</option> <option value="1060">Djibouti</option> <option value="1061">Dominica</option> <option value="1062">Dominican Republic</option> <option value="1064">Ecuador</option> <option value="1065">Egypt</option> <option value="1066">El Salvador</option> <option value="1067">Equatorial Guinea</option> <option value="1068">Eritrea</option> <option value="1069">Estonia</option> <option value="1203">Eswatini</option> <option value="1070">Ethiopia</option> <option value="1072">Falkland Islands (Malvinas)</option> <option value="1073">Faroe Islands</option> <option value="1074">Fiji</option> <option value="1075">Finland</option> <option value="1076">France</option> <option value="1077">French Guiana</option> <option value="1078">French Polynesia</option> <option value="1079">French Southern Territories</option> <option value="1080">Gabon</option> <option value="1213">Gambia</option> <option value="1081">Georgia</option> <option value="1082">Germany</option> <option value="1083">Ghana</option> <option value="1084">Gibraltar</option> <option value="1085">Greece</option> <option value="1086">Greenland</option> <option value="1087">Grenada</option> <option value="1088">Guadeloupe</option> <option value="1089">Guam</option> <option value="1090">Guatemala</option> <option value="1245">Guernsey</option> <option value="1091">Guinea</option> <option value="1092">Guinea-Bissau</option> <option value="1093">Guyana</option> <option value="1094">Haiti</option> <option value="1095">Heard Island and McDonald Islands</option> <option value="1096">Holy See (Vatican City State)</option> <option value="1097">Honduras</option> <option value="1098">Hong Kong</option> <option value="1099">Hungary</option> <option value="1100">Iceland</option> <option value="1101">India</option> <option value="1102">Indonesia</option> <option value="1103">Iran, Islamic Republic of</option> <option value="1104">Iraq</option> <option value="1105">Ireland</option> <option value="1246">Isle of Man</option> <option value="1106">Israel</option> <option value="1107">Italy</option> <option value="1108">Jamaica</option> <option value="1109">Japan</option> <option value="1244">Jersey</option> <option value="1110">Jordan</option> <option value="1111">Kazakhstan</option> <option value="1112">Kenya</option> <option value="1113">Kiribati</option> <option value="1114">Korea, Democratic People's Republic of</option> <option value="1115">Korea, Republic of</option> <option value="1251">Kosovo</option> <option value="1116">Kuwait</option> <option value="1117">Kyrgyzstan</option> <option value="1118">Lao People's Democratic Republic</option> <option value="1119">Latvia</option> <option value="1120">Lebanon</option> <option value="1121">Lesotho</option> <option value="1122">Liberia</option> <option value="1123">Libya</option> <option value="1124">Liechtenstein</option> <option value="1125">Lithuania</option> <option value="1126">Luxembourg</option> <option value="1127">Macao</option> <option value="1129">Madagascar</option> <option value="1130">Malawi</option> <option value="1131">Malaysia</option> <option value="1132">Maldives</option> <option value="1133">Mali</option> <option value="1134">Malta</option> <option value="1135">Marshall Islands</option> <option value="1136">Martinique</option> <option value="1137">Mauritania</option> <option value="1138">Mauritius</option> <option value="1139">Mayotte</option> <option value="1140">Mexico</option> <option value="1141">Micronesia, Federated States of</option> <option value="1142">Moldova</option> <option value="1143">Monaco</option> <option value="1144">Mongolia</option> <option value="1243">Montenegro</option> <option value="1145">Montserrat</option> <option value="1146">Morocco</option> <option value="1147">Mozambique</option> <option value="1035">Myanmar</option> <option value="1148">Namibia</option> <option value="1149">Nauru</option> <option value="1150">Nepal</option> <option value="1152">Netherlands</option> <option value="1153">New Caledonia</option> <option value="1154">New Zealand</option> <option value="1155">Nicaragua</option> <option value="1156">Niger</option> <option value="1157">Nigeria</option> <option value="1158">Niue</option> <option value="1159">Norfolk Island</option> <option value="1128">North Macedonia</option> <option value="1160">Northern Mariana Islands</option> <option value="1161">Norway</option> <option value="1162">Oman</option> <option value="1163">Pakistan</option> <option value="1164">Palau</option> <option value="1165">Palestine, State of</option> <option value="1166">Panama</option> <option value="1167">Papua New Guinea</option> <option value="1168">Paraguay</option> <option value="1169">Peru</option> <option value="1170">Philippines</option> <option value="1171">Pitcairn</option> <option value="1172">Poland</option> <option value="1173">Portugal</option> <option value="1175">Qatar</option> <option value="1179">Reunion</option> <option value="1176">Romania</option> <option value="1177">Russian Federation</option> <option value="1178">Rwanda</option> <option value="1180">Saint Helena</option> <option value="1181">Saint Kitts and Nevis</option> <option value="1182">Saint Lucia</option> <option value="1183">Saint Pierre and Miquelon</option> <option value="1184">Saint Vincent and the Grenadines</option> <option value="1185">Samoa</option> <option value="1186">San Marino</option> <option value="1207">Sao Tome and Principe</option> <option value="1187">Saudi Arabia</option> <option value="1188">Senegal</option> <option value="1242">Serbia</option> <option value="1238">Serbia and Montenegro</option> <option value="1189">Seychelles</option> <option value="1190">Sierra Leone</option> <option value="1191">Singapore</option> <option value="1249">Sint Maarten (Dutch Part)</option> <option value="1192">Slovakia</option> <option value="1193">Slovenia</option> <option value="1194">Solomon Islands</option> <option value="1195">Somalia</option> <option value="1196">South Africa</option> <option value="1197">South Georgia and the South Sandwich Islands</option> <option value="1247">South Sudan</option> <option value="1198">Spain</option> <option value="1199">Sri Lanka</option> <option value="1200">Sudan</option> <option value="1201">Suriname</option> <option value="1202">Svalbard and Jan Mayen</option> <option value="1204">Sweden</option> <option value="1205">Switzerland</option> <option value="1206">Syrian Arab Republic</option> <option value="1208">Taiwan</option> <option value="1209">Tajikistan</option> <option value="1210">Tanzania, United Republic of</option> <option value="1211">Thailand</option> <option value="1063">Timor-Leste</option> <option value="1214">Togo</option> <option value="1215">Tokelau</option> <option value="1216">Tonga</option> <option value="1217">Trinidad and Tobago</option> <option value="1218">Tunisia</option> <option value="1219">Turkey</option> <option value="1220">Turkmenistan</option> <option value="1221">Turks and Caicos Islands</option> <option value="1222">Tuvalu</option> <option value="1223">Uganda</option> <option value="1224">Ukraine</option> <option value="1225">United Arab Emirates</option> <option value="1226">United Kingdom</option> <option value="1227">United States Minor Outlying Islands</option> <option value="1229">Uruguay</option> <option value="1230">Uzbekistan</option> <option value="1231">Vanuatu</option> <option value="1232">Venezuela</option> <option value="1233">Viet Nam</option> <option value="1031">Virgin Islands, British</option> <option value="1234">Virgin Islands, U.S.</option> <option value="1235">Wallis and Futuna</option> <option value="1236">Western Sahara</option> <option value="1237">Yemen</option> <option value="1239">Zambia</option> <option value="1240">Zimbabwe</option> </select> </div> <div class="clear"></div> </div> <div class="crm-section editrow_state_province-Primary-section form-item" id="editrow-state_province-Primary"> <div class="label"> <label for="state_province-Primary">State</label> </div> <div class="content"> <select data-callback="civicrm/ajax/jqState" data-empty-prompt="Choose country first" data-none-prompt="- N/A -" class="crm-select2 crm-chain-select-target crm-form-select" data-select-prompt="- select State/Province -" data-name="state_province-Primary" name="state_province-Primary" id="state_province-Primary"> <option value="">- select State/Province -</option> <option value="1000">Alabama</option> <option value="1001">Alaska</option> <option value="1052">American Samoa</option> <option value="1002">Arizona</option> <option value="1003">Arkansas</option> <option value="1060">Armed Forces Americas</option> <option value="1059">Armed Forces Europe</option> <option value="1061">Armed Forces Pacific</option> <option value="1004">California</option> <option value="1005">Colorado</option> <option value="1006">Connecticut</option> <option value="1007">Delaware</option> <option value="1050">District of Columbia</option> <option value="1008">Florida</option> <option value="1009">Georgia</option> <option value="1053">Guam</option> <option value="1010">Hawaii</option> <option value="1011">Idaho</option> <option value="1012">Illinois</option> <option value="1013">Indiana</option> <option value="1014">Iowa</option> <option value="1015">Kansas</option> <option value="1016">Kentucky</option> <option value="1017">Louisiana</option> <option value="1018">Maine</option> <option value="1019">Maryland</option> <option value="1020">Massachusetts</option> <option value="1021">Michigan</option> <option value="1022">Minnesota</option> <option value="1023">Mississippi</option> <option value="1024">Missouri</option> <option value="1025">Montana</option> <option value="1026">Nebraska</option> <option value="1027">Nevada</option> <option value="1028">New Hampshire</option> <option value="1029">New Jersey</option> <option value="1030">New Mexico</option> <option value="1031">New York</option> <option value="1032">North Carolina</option> <option value="1033">North Dakota</option> <option value="1055">Northern Mariana Islands</option> <option value="1034">Ohio</option> <option value="1035">Oklahoma</option> <option value="1036">Oregon</option> <option value="1037">Pennsylvania</option> <option value="1056">Puerto Rico</option> <option value="1038">Rhode Island</option> <option value="1039">South Carolina</option> <option value="1040">South Dakota</option> <option value="1041">Tennessee</option> <option value="1042">Texas</option> <option value="1058">United States Minor Outlying Islands</option> <option value="1043">Utah</option> <option value="1044">Vermont</option> <option value="1057">Virgin Islands</option> <option value="1045">Virginia</option> <option value="1046">Washington</option> <option value="1047">West Virginia</option> <option value="1048">Wisconsin</option> <option value="1049">Wyoming</option> </select> </div> <div class="clear"></div> </div> </fieldset> <script type="text/javascript"> CRM.$(function($) { $('#selector tr:even').addClass('odd-row'); $('#selector tr:odd ').addClass('even-row'); }); </script> </div> <fieldset class="crm-public-form-item crm-group payment_options-group" style="display:none;"> <legend>Payment Options</legend> <div class="crm-public-form-item crm-section payment_processor-section"> <div class="label"><label>Payment Method</label></div> <div class="content"><input class="payment_processor_trustcommerce crm-form-radio" value="7" type="radio" id="CIVICRM_QFID_7_payment_processor_id" name="payment_processor_id" checked="checked" /><label for="CIVICRM_QFID_7_payment_processor_id">Credit or Debit Card</label> <input class="payment_processor_paypal_standard crm-form-radio" value="3" type="radio" id="CIVICRM_QFID_3_payment_processor_id" name="payment_processor_id" /><label for="CIVICRM_QFID_3_payment_processor_id">PayPal (not recommended: requires nonfree JavaScript)</label> <input class="payment_processor_paylater crm-form-radio" value="0" type="radio" id="CIVICRM_QFID_0_payment_processor_id" name="payment_processor_id" /><label for="CIVICRM_QFID_0_payment_processor_id">Check, Bitcoin or Litecoin</label></div> <div class="clear"></div> </div> </fieldset> <div id="billing-payment-block"> <script type="text/javascript"> // @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3 CRM.config.creditCardTypes = {"Visa":{"label":"Visa","name":"Visa","css_key":"visa","pattern":"4(?:[0-9]{12}|[0-9]{15})"},"MasterCard":{"label":"MasterCard","name":"MasterCard","css_key":"mastercard","pattern":"(5[1-5][0-9]{2}|2[3-6][0-9]{2}|22[3-9][0-9]|222[1-9]|27[0-1][0-9]|2720)[0-9]{12}"},"Amex":{"label":"Amex","name":"Amex","css_key":"amex","pattern":"3[47][0-9]{13}"},"Discover":{"label":"Discover","name":"Discover","css_key":"discover","pattern":"6011[0-9]{12}"}}; // @license-end </script> <div id="payment_information"> <fieldset class="billing_mode-group credit_card_info-group"> <legend> Credit Card </legend> <div class="crm-section billing_mode-section credit_card_info-section"> <div class="crm-section credit_card_type-section"> <div class="label"><label for="credit_card_type">Card Type</label> </div> <div class="content"> <select name="credit_card_type" id="credit_card_type" class="crm-form-select"> <option value="">- select -</option> <option value="Visa">Visa</option> <option value="MasterCard">MasterCard</option> <option value="Amex">Amex</option> <option value="Discover">Discover</option> </select> <div class="crm-credit_card_type-icons"></div> </div> <div class="clear"></div> </div> <div class="crm-section credit_card_number-section"> <div class="label"><label for="credit_card_number">Card Number</label> <span class="crm-marker" title="This field is required.">*</span> </div> <div class="content"> <input size="20" maxlength="20" autocomplete="off" class="creditcard required crm-form-text" name="credit_card_number" type="text" id="credit_card_number" /> </div> <div class="clear"></div> </div> <div class="crm-section cvv2-section"> <div class="label"><label for="cvv2">Security Code</label> <span class="crm-marker" title="This field is required.">*</span> </div> <div class="content"> <input size="5" maxlength="10" autocomplete="off" class="required crm-form-text" name="cvv2" type="text" id="cvv2" /> <span class="cvv2-icon" title="Usually the last 3-4 digits in the signature area on the back of the card."> </span> </div> <div class="clear"></div> </div> <div class="crm-section credit_card_exp_date-section"> <div class="label"><label>Expiration Date</label> <span class="crm-marker" title="This field is required.">*</span> </div> <div class="content"> <select class="crm-form-select required" id="credit_card_exp_date_M" aria-label="Expiration Date month" name="credit_card_exp_date[M]"> <option value="">-month-</option> <option value="1">Jan</option> <option value="2">Feb</option> <option value="3">Mar</option> <option value="4">Apr</option> <option value="5">May</option> <option value="6">Jun</option> <option value="7">Jul</option> <option value="8">Aug</option> <option value="9">Sep</option> <option value="10">Oct</option> <option value="11">Nov</option> <option value="12">Dec</option> </select> <select class="crm-form-select required" id="credit_card_exp_date_Y" aria-label="Expiration Date year" name="credit_card_exp_date[Y]"> <option value="">-year-</option> <option value="2024">2024</option> <option value="2025">2025</option> <option value="2026">2026</option> <option value="2027">2027</option> <option value="2028">2028</option> <option value="2029">2029</option> <option value="2030">2030</option> <option value="2031">2031</option> <option value="2032">2032</option> <option value="2033">2033</option> <option value="2034">2034</option> </select> </div> <div class="clear"></div> </div> </div> </fieldset> <input type="checkbox" id="billingcheckbox" value="0"> <label for="billingcheckbox">My billing address is the same as above</label> <fieldset class="billing_name_address-group"> <legend>Billing Name and Address</legend> <div class="crm-section billing_name_address-section"> <div class="crm-section billing_first_name-section"> <div class="label"><label for="billing_first_name">Billing First Name</label> <span class="crm-marker" title="This field is required.">*</span> </div> <div class="content"><input size="30" maxlength="60" autocomplete="off" class="required crm-form-text" name="billing_first_name" type="text" id="billing_first_name" /></div> <div class="clear"></div> </div> <div class="crm-section billing_middle_name-section"> <div class="label"><label for="billing_middle_name">Billing Middle Name</label> </div> <div class="content"><input size="30" maxlength="60" autocomplete="off" name="billing_middle_name" type="text" id="billing_middle_name" class="big crm-form-text" /></div> <div class="clear"></div> </div> <div class="crm-section billing_last_name-section"> <div class="label"><label for="billing_last_name">Billing Last Name</label> <span class="crm-marker" title="This field is required.">*</span> </div> <div class="content"><input size="30" maxlength="60" autocomplete="off" class="required crm-form-text" name="billing_last_name" type="text" id="billing_last_name" /></div> <div class="clear"></div> </div> <div class="crm-section billing_street_address-5-section"> <div class="label"><label for="billing_street_address-5">Street Address</label> <span class="crm-marker" title="This field is required.">*</span> </div> <div class="content"><input size="30" maxlength="60" autocomplete="off" class="required crm-form-text" name="billing_street_address-5" type="text" id="billing_street_address-5" /></div> <div class="clear"></div> </div> <div class="crm-section billing_city-5-section"> <div class="label"><label for="billing_city-5">City</label> <span class="crm-marker" title="This field is required.">*</span> </div> <div class="content"><input size="30" maxlength="60" autocomplete="off" class="required crm-form-text" name="billing_city-5" type="text" id="billing_city-5" /></div> <div class="clear"></div> </div> <div class="crm-section billing_country_id-5-section"> <div class="label"><label for="billing_country_id-5">Country</label> <span class="crm-marker" title="This field is required.">*</span> </div> <div class="content"><select class="big required crm-form-select2 crm-select2 crm-chain-select-control" name="billing_country_id-5" data-target="billing_state_province_id-5" id="billing_country_id-5"> <option value="">- select -</option> <option value="1228" selected="selected">United States</option> <option value="1001">Afghanistan</option> <option value="1241">Åland Islands</option> <option value="1002">Albania</option> <option value="1003">Algeria</option> <option value="1004">American Samoa</option> <option value="1005">Andorra</option> <option value="1006">Angola</option> <option value="1007">Anguilla</option> <option value="1008">Antarctica</option> <option value="1009">Antigua and Barbuda</option> <option value="1010">Argentina</option> <option value="1011">Armenia</option> <option value="1012">Aruba</option> <option value="1013">Australia</option> <option value="1014">Austria</option> <option value="1015">Azerbaijan</option> <option value="1212">Bahamas</option> <option value="1016">Bahrain</option> <option value="1017">Bangladesh</option> <option value="1018">Barbados</option> <option value="1019">Belarus</option> <option value="1020">Belgium</option> <option value="1021">Belize</option> <option value="1022">Benin</option> <option value="1023">Bermuda</option> <option value="1024">Bhutan</option> <option value="1025">Bolivia</option> <option value="1250">Bonaire, Saint Eustatius and Saba</option> <option value="1026">Bosnia and Herzegovina</option> <option value="1027">Botswana</option> <option value="1028">Bouvet Island</option> <option value="1029">Brazil</option> <option value="1030">British Indian Ocean Territory</option> <option value="1032">Brunei Darussalam</option> <option value="1033">Bulgaria</option> <option value="1034">Burkina Faso</option> <option value="1036">Burundi</option> <option value="1037">Cambodia</option> <option value="1038">Cameroon</option> <option value="1039">Canada</option> <option value="1040">Cape Verde</option> <option value="1041">Cayman Islands</option> <option value="1042">Central African Republic</option> <option value="1043">Chad</option> <option value="1044">Chile</option> <option value="1045">China</option> <option value="1046">Christmas Island</option> <option value="1047">Cocos (Keeling) Islands</option> <option value="1048">Colombia</option> <option value="1049">Comoros</option> <option value="1051">Congo, Republic Of The</option> <option value="1050">Congo, The Democratic Republic of the</option> <option value="1052">Cook Islands</option> <option value="1053">Costa Rica</option> <option value="1054">Côte d’Ivoire</option> <option value="1055">Croatia</option> <option value="1056">Cuba</option> <option value="1248">Curaçao</option> <option value="1057">Cyprus</option> <option value="1058">Czech Republic</option> <option value="1059">Denmark</option> <option value="1060">Djibouti</option> <option value="1061">Dominica</option> <option value="1062">Dominican Republic</option> <option value="1064">Ecuador</option> <option value="1065">Egypt</option> <option value="1066">El Salvador</option> <option value="1067">Equatorial Guinea</option> <option value="1068">Eritrea</option> <option value="1069">Estonia</option> <option value="1203">Eswatini</option> <option value="1070">Ethiopia</option> <option value="1072">Falkland Islands (Malvinas)</option> <option value="1073">Faroe Islands</option> <option value="1074">Fiji</option> <option value="1075">Finland</option> <option value="1076">France</option> <option value="1077">French Guiana</option> <option value="1078">French Polynesia</option> <option value="1079">French Southern Territories</option> <option value="1080">Gabon</option> <option value="1213">Gambia</option> <option value="1081">Georgia</option> <option value="1082">Germany</option> <option value="1083">Ghana</option> <option value="1084">Gibraltar</option> <option value="1085">Greece</option> <option value="1086">Greenland</option> <option value="1087">Grenada</option> <option value="1088">Guadeloupe</option> <option value="1089">Guam</option> <option value="1090">Guatemala</option> <option value="1245">Guernsey</option> <option value="1091">Guinea</option> <option value="1092">Guinea-Bissau</option> <option value="1093">Guyana</option> <option value="1094">Haiti</option> <option value="1095">Heard Island and McDonald Islands</option> <option value="1096">Holy See (Vatican City State)</option> <option value="1097">Honduras</option> <option value="1098">Hong Kong</option> <option value="1099">Hungary</option> <option value="1100">Iceland</option> <option value="1101">India</option> <option value="1102">Indonesia</option> <option value="1103">Iran, Islamic Republic of</option> <option value="1104">Iraq</option> <option value="1105">Ireland</option> <option value="1246">Isle of Man</option> <option value="1106">Israel</option> <option value="1107">Italy</option> <option value="1108">Jamaica</option> <option value="1109">Japan</option> <option value="1244">Jersey</option> <option value="1110">Jordan</option> <option value="1111">Kazakhstan</option> <option value="1112">Kenya</option> <option value="1113">Kiribati</option> <option value="1114">Korea, Democratic People's Republic of</option> <option value="1115">Korea, Republic of</option> <option value="1251">Kosovo</option> <option value="1116">Kuwait</option> <option value="1117">Kyrgyzstan</option> <option value="1118">Lao People's Democratic Republic</option> <option value="1119">Latvia</option> <option value="1120">Lebanon</option> <option value="1121">Lesotho</option> <option value="1122">Liberia</option> <option value="1123">Libya</option> <option value="1124">Liechtenstein</option> <option value="1125">Lithuania</option> <option value="1126">Luxembourg</option> <option value="1127">Macao</option> <option value="1129">Madagascar</option> <option value="1130">Malawi</option> <option value="1131">Malaysia</option> <option value="1132">Maldives</option> <option value="1133">Mali</option> <option value="1134">Malta</option> <option value="1135">Marshall Islands</option> <option value="1136">Martinique</option> <option value="1137">Mauritania</option> <option value="1138">Mauritius</option> <option value="1139">Mayotte</option> <option value="1140">Mexico</option> <option value="1141">Micronesia, Federated States of</option> <option value="1142">Moldova</option> <option value="1143">Monaco</option> <option value="1144">Mongolia</option> <option value="1243">Montenegro</option> <option value="1145">Montserrat</option> <option value="1146">Morocco</option> <option value="1147">Mozambique</option> <option value="1035">Myanmar</option> <option value="1148">Namibia</option> <option value="1149">Nauru</option> <option value="1150">Nepal</option> <option value="1152">Netherlands</option> <option value="1153">New Caledonia</option> <option value="1154">New Zealand</option> <option value="1155">Nicaragua</option> <option value="1156">Niger</option> <option value="1157">Nigeria</option> <option value="1158">Niue</option> <option value="1159">Norfolk Island</option> <option value="1128">North Macedonia</option> <option value="1160">Northern Mariana Islands</option> <option value="1161">Norway</option> <option value="1162">Oman</option> <option value="1163">Pakistan</option> <option value="1164">Palau</option> <option value="1165">Palestine, State of</option> <option value="1166">Panama</option> <option value="1167">Papua New Guinea</option> <option value="1168">Paraguay</option> <option value="1169">Peru</option> <option value="1170">Philippines</option> <option value="1171">Pitcairn</option> <option value="1172">Poland</option> <option value="1173">Portugal</option> <option value="1175">Qatar</option> <option value="1179">Reunion</option> <option value="1176">Romania</option> <option value="1177">Russian Federation</option> <option value="1178">Rwanda</option> <option value="1180">Saint Helena</option> <option value="1181">Saint Kitts and Nevis</option> <option value="1182">Saint Lucia</option> <option value="1183">Saint Pierre and Miquelon</option> <option value="1184">Saint Vincent and the Grenadines</option> <option value="1185">Samoa</option> <option value="1186">San Marino</option> <option value="1207">Sao Tome and Principe</option> <option value="1187">Saudi Arabia</option> <option value="1188">Senegal</option> <option value="1242">Serbia</option> <option value="1238">Serbia and Montenegro</option> <option value="1189">Seychelles</option> <option value="1190">Sierra Leone</option> <option value="1191">Singapore</option> <option value="1249">Sint Maarten (Dutch Part)</option> <option value="1192">Slovakia</option> <option value="1193">Slovenia</option> <option value="1194">Solomon Islands</option> <option value="1195">Somalia</option> <option value="1196">South Africa</option> <option value="1197">South Georgia and the South Sandwich Islands</option> <option value="1247">South Sudan</option> <option value="1198">Spain</option> <option value="1199">Sri Lanka</option> <option value="1200">Sudan</option> <option value="1201">Suriname</option> <option value="1202">Svalbard and Jan Mayen</option> <option value="1204">Sweden</option> <option value="1205">Switzerland</option> <option value="1206">Syrian Arab Republic</option> <option value="1208">Taiwan</option> <option value="1209">Tajikistan</option> <option value="1210">Tanzania, United Republic of</option> <option value="1211">Thailand</option> <option value="1063">Timor-Leste</option> <option value="1214">Togo</option> <option value="1215">Tokelau</option> <option value="1216">Tonga</option> <option value="1217">Trinidad and Tobago</option> <option value="1218">Tunisia</option> <option value="1219">Turkey</option> <option value="1220">Turkmenistan</option> <option value="1221">Turks and Caicos Islands</option> <option value="1222">Tuvalu</option> <option value="1223">Uganda</option> <option value="1224">Ukraine</option> <option value="1225">United Arab Emirates</option> <option value="1226">United Kingdom</option> <option value="1227">United States Minor Outlying Islands</option> <option value="1229">Uruguay</option> <option value="1230">Uzbekistan</option> <option value="1231">Vanuatu</option> <option value="1232">Venezuela</option> <option value="1233">Viet Nam</option> <option value="1031">Virgin Islands, British</option> <option value="1234">Virgin Islands, U.S.</option> <option value="1235">Wallis and Futuna</option> <option value="1236">Western Sahara</option> <option value="1237">Yemen</option> <option value="1239">Zambia</option> <option value="1240">Zimbabwe</option> </select></div> <div class="clear"></div> </div> <div class="crm-section billing_state_province_id-5-section"> <div class="label"><label for="billing_state_province_id-5">State/Province</label> <span class="crm-marker" title="This field is required.">*</span> </div> <div class="content"><select data-callback="civicrm/ajax/jqState" data-empty-prompt="Choose country first" data-none-prompt="- N/A -" class="big crm-select2 crm-chain-select-target crm-form-select" data-select-prompt="- select State/Province -" data-name="billing_state_province_id-5" name="billing_state_province_id-5" id="billing_state_province_id-5"> <option value="">- select State/Province -</option> <option value="1000">Alabama</option> <option value="1001">Alaska</option> <option value="1052">American Samoa</option> <option value="1002">Arizona</option> <option value="1003">Arkansas</option> <option value="1060">Armed Forces Americas</option> <option value="1059">Armed Forces Europe</option> <option value="1061">Armed Forces Pacific</option> <option value="1004">California</option> <option value="1005">Colorado</option> <option value="1006">Connecticut</option> <option value="1007">Delaware</option> <option value="1050">District of Columbia</option> <option value="1008">Florida</option> <option value="1009">Georgia</option> <option value="1053">Guam</option> <option value="1010">Hawaii</option> <option value="1011">Idaho</option> <option value="1012">Illinois</option> <option value="1013">Indiana</option> <option value="1014">Iowa</option> <option value="1015">Kansas</option> <option value="1016">Kentucky</option> <option value="1017">Louisiana</option> <option value="1018">Maine</option> <option value="1019">Maryland</option> <option value="1020">Massachusetts</option> <option value="1021">Michigan</option> <option value="1022">Minnesota</option> <option value="1023">Mississippi</option> <option value="1024">Missouri</option> <option value="1025">Montana</option> <option value="1026">Nebraska</option> <option value="1027">Nevada</option> <option value="1028">New Hampshire</option> <option value="1029">New Jersey</option> <option value="1030">New Mexico</option> <option value="1031">New York</option> <option value="1032">North Carolina</option> <option value="1033">North Dakota</option> <option value="1055">Northern Mariana Islands</option> <option value="1034">Ohio</option> <option value="1035">Oklahoma</option> <option value="1036">Oregon</option> <option value="1037">Pennsylvania</option> <option value="1056">Puerto Rico</option> <option value="1038">Rhode Island</option> <option value="1039">South Carolina</option> <option value="1040">South Dakota</option> <option value="1041">Tennessee</option> <option value="1042">Texas</option> <option value="1058">United States Minor Outlying Islands</option> <option value="1043">Utah</option> <option value="1044">Vermont</option> <option value="1057">Virgin Islands</option> <option value="1045">Virginia</option> <option value="1046">Washington</option> <option value="1047">West Virginia</option> <option value="1048">Wisconsin</option> <option value="1049">Wyoming</option> </select></div> <div class="clear"></div> </div> <div class="crm-section billing_postal_code-5-section"> <div class="label"><label for="billing_postal_code-5">Postal Code</label> <span class="crm-marker" title="This field is required.">*</span> </div> <div class="content"><input size="30" maxlength="60" autocomplete="off" class="required crm-form-text" name="billing_postal_code-5" type="text" id="billing_postal_code-5" /></div> <div class="clear"></div> </div> </div> </fieldset> </div> <script type="text/javascript"> CRM.$(function ($) { // build list of ids to track changes on var address_fields = {"street_address":"Primary","supplemental_address_1":"Primary","city":"Primary","country":"Primary","state_province":"Primary"}; var input_ids = {}; var select_ids = {}; var orig_id, field, field_name; // build input ids $('.billing_name_address-section input').each(function (i) { orig_id = $(this).attr('id'); field = orig_id.split('-'); field_name = field[0].replace('billing_', ''); if (field[1]) { if (address_fields[field_name]) { input_ids['#' + field_name + '-' + address_fields[field_name]] = '#' + orig_id; } } }); if ($('#first_name').length) input_ids['#first_name'] = '#billing_first_name'; if ($('#middle_name').length) input_ids['#middle_name'] = '#billing_middle_name'; if ($('#last_name').length) input_ids['#last_name'] = '#billing_last_name'; // build select ids $('.billing_name_address-section select').each(function (i) { orig_id = $(this).attr('id'); field = orig_id.split('-'); field_name = field[0].replace('billing_', '').replace('_id', ''); if (field[1]) { if (address_fields[field_name]) { select_ids['#' + field_name + '-' + address_fields[field_name]] = '#' + orig_id; } } }); // detect if billing checkbox should default to checked var checked = true; for (var id in input_ids) { orig_id = input_ids[id]; if ($(id).val() != $(orig_id).val()) { checked = false; break; } } for (var id in select_ids) { orig_id = select_ids[id]; if ($(id).val() != $(orig_id).val()) { checked = false; break; } } if (checked) { $('#billingcheckbox').prop('checked', true).data('crm-initial-value', true); if (!CRM.billing || CRM.billing.billingProfileIsHideable) { $('.billing_name_address-group').hide(); } } // onchange handlers for non-billing fields for (var id in input_ids) { orig_id = input_ids[id]; $(id).change(function () { var id = '#' + $(this).attr('id'); var orig_id = input_ids[id]; // if billing checkbox is active, copy other field into billing field if ($('#billingcheckbox').prop('checked')) { $(orig_id).val($(id).val()); } }); } for (var id in select_ids) { orig_id = select_ids[id]; $(id).change(function () { var id = '#' + $(this).attr('id'); var orig_id = select_ids[id]; // if billing checkbox is active, copy other field into billing field if ($('#billingcheckbox').prop('checked')) { $(orig_id + ' option').prop('selected', false); $(orig_id + ' option[value="' + $(id).val() + '"]').prop('selected', true); $(orig_id).change(); } }); } // toggle show/hide $('#billingcheckbox').click(function () { if (this.checked) { if (!CRM.billing || CRM.billing.billingProfileIsHideable) { $('.billing_name_address-group').hide(200); } // copy all values for (var id in input_ids) { orig_id = input_ids[id]; $(orig_id).val($(id).val()); } for (var id in select_ids) { orig_id = select_ids[id]; $(orig_id + ' option').prop('selected', false); $(orig_id + ' option[value="' + $(id).val() + '"]').prop('selected', true); $(orig_id).change(); } } else { $('.billing_name_address-group').show(200); } }); // remove spaces, dashes from credit card number $('#credit_card_number').change(function () { var cc = $('#credit_card_number').val() .replace(/ /g, '') .replace(/-/g, ''); $('#credit_card_number').val(cc); }); }); </script> <script type="text/javascript" src="/sites/all/modules/civicrm/templates/CRM/Core/BillingBlock.js?r=lp7Di"> </script> </div> <script type="text/javascript"> /** * Show or hide payment options. * * @param bool $isHide * Should the block be hidden. */ function showHidePayment(isHide) { var payment_options = cj(".payment_options-group"); var payment_processor = cj("div.payment_processor-section"); var payment_information = cj("div#payment_information"); // I've added a hide for billing block. But, actually the issue // might be that the unselecting of the processor should cause it // to be hidden (or removed) in which case it can go from this function. var billing_block = cj("div#billing-payment-block"); if (isHide) { payment_options.hide(); payment_processor.hide(); payment_information.hide(); billing_block.hide(); // Ensure that jquery validation doesn't block submission when we don't need to fill in the billing details section cj('#billing-payment-block select.crm-select2').addClass('crm-no-validate'); // also unset selected payment methods cj('input[name="payment_processor_id"]').removeProp('checked'); } else { payment_options.show(); payment_processor.show(); payment_information.show(); billing_block.show(); cj('#billing-payment-block select.crm-select2').removeClass('crm-no-validate'); // also set selected payment methods cj('input[name="payment_processor_id"][checked=checked]').prop('checked', true); } } /** * Hides or shows billing and payment options block depending on whether payment is required. * * In general incomplete orders or $0 orders do not require a payment block. */ function skipPaymentMethod() { var isHide = false; var isMultiple = null; var alwaysShowFlag = (isMultiple && cj("#additional_participants").val()); var alwaysHideFlag = (cj("#bypass_payment").val() == 1); var total_amount_tmp = cj('#pricevalue').data('raw-total'); // Hide billing questions if this is free if (!alwaysShowFlag && total_amount_tmp == 0){ isHide = true; } else { isHide = false; } if (alwaysHideFlag) { isHide = true; } showHidePayment(isHide); } skipPaymentMethod(); CRM.$(function($) { function buildPaymentBlock(type) { var $form = $('#billing-payment-block').closest('form'); var payment_instrument_id = $('#payment_instrument_id').val(); var dataUrl = "/civicrm/payment/form?formName=Main¤cy=USD&&is_back_office=&id=14&pre_profile_id=246&processor_id=" + type; if (typeof(CRM.vars) != "undefined") { if (typeof(CRM.vars.coreForm) != "undefined") { if (typeof(CRM.vars.coreForm.contact_id) != "undefined") { dataUrl = dataUrl + "&cid=" + CRM.vars.coreForm.contact_id; } if (typeof(CRM.vars.coreForm.checksum) != "undefined" ) { dataUrl = dataUrl + "&cs=" + CRM.vars.coreForm.checksum; } } } dataUrl = dataUrl + "&payment_instrument_id=" + payment_instrument_id; // Processors like pp-express will hide the form submit buttons, so re-show them when switching $('.crm-submit-buttons', $form).show().find('input').prop('disabled', true); CRM.loadPage(dataUrl, {target: '#billing-payment-block'}); } $('[name=payment_processor_id]').on('change.paymentBlock', function() { buildPaymentBlock($(this).val()); }); $('#payment_instrument_id').on('change.paymentBlock', function() { buildPaymentBlock(0); }); $('#billing-payment-block').on('crmLoad', function() { $('.crm-submit-buttons input').prop('disabled', false); }) }); </script> <div class="crm-public-form-item crm-group custom_post_profile-group"> <fieldset class="crm-profile crm-profile-id-178 crm-profile-name-Free_Software_Supporters_simple_signup_178"><legend>Follow the FSF</legend> <div class="crm-section editrow_group-section form-item" id="editrow-group"> <div class="label"> <label>Would you like to join our low-volume mailing list and receive our monthly newsletter?</label> </div> <div class="content"> <table class="form-layout-compressed crm-profile-tagsandgroups"> <tr> <td> <div class="group-wrapper"> <input type="hidden" name="group[25]" value="" /><input skiplabel="1" id="group_25" name="group[25]" type="checkbox" value="1" class="crm-form-checkbox" />Free Software Supporter <div class="description">This is the Free Software Foundation's primary mailing list. Subscribers receive a monthly newsletter called the Free Software Supporter, which includes news about FSF activities over that month, as well as other news from around the free software world.</div> </div> </td> </tr> </table> </div> <div class="clear"></div> </div> <div class="crm-section editrow_custom_345-section form-item" id="editrow-custom_345"> <div class="label"> <label> Would you like to receive our bi-yearly physical bulletin? <span class="crm-marker" title="This field is required.">*</span> </label> </div> <div class="content"> <input data-crm-custom="Physical_mailing:Would_you_like_to_receive_our_bi_yearly_physical_bulletin_" class=" required crm-form-radio" value="1" type="radio" id="CIVICRM_QFID_1_custom_345" name="custom_345" /><label for="CIVICRM_QFID_1_custom_345">Yes</label> <input data-crm-custom="Physical_mailing:Would_you_like_to_receive_our_bi_yearly_physical_bulletin_" class=" required crm-form-radio" value="0" type="radio" id="CIVICRM_QFID_0_custom_345" name="custom_345" /><label for="CIVICRM_QFID_0_custom_345">No</label> </div> <div class="clear"></div> </div> </fieldset> <script type="text/javascript"> CRM.$(function($) { $('#selector tr:even').addClass('odd-row'); $('#selector tr:odd ').addClass('even-row'); }); </script> </div> <div id="crm-submit-buttons" class="crm-submit-buttons"> <button class="crm-form-submit default validate crm-button crm-button-type-upload crm-button_qf_Main_upload" value="1" type="submit" name="_qf_Main_upload" id="_qf_Main_upload-bottom"><i aria-hidden="true" class="crm-i fa-chevron-right"></i> Review your contribution</button> </div> <div id="footer_text" class="crm-public-form-item crm-section contribution_footer_text-section"> <p><p>We prioritize your privacy and do not sell or distribute our contact lists. Read our full <a href="https://www.fsf.org/about/free-software-foundation-privacy-policy">privacy policy</a>.</p></p> </div> </div> <script type="text/javascript"> cj('input[name="soft_credit_type_id"]').on('change', function() { enableHonorType(); }); function enableHonorType() { var selectedValue = cj('input[name="soft_credit_type_id"]:checked'); if ( selectedValue.val() > 0) { cj('#honorType').show(); } else { cj('#honorType').hide(); } } cj('input[id="is_recur"]').on('change', function() { toggleRecur(); }); function toggleRecur() { var isRecur = cj('input[id="is_recur"]:checked'); var allowAutoRenew = ''; var quickConfig = 1; if (allowAutoRenew && cj("#auto_renew") && quickConfig) { showHideAutoRenew(null); } var frequencyUnit = cj('#frequency_unit'); var frequencyInerval = cj('#frequency_interval'); var installments = cj('#installments'); isDisabled = false; if (isRecur.val() > 0) { cj('#recurHelp').show(); frequencyUnit.prop('disabled', false).addClass('required'); frequencyInerval.prop('disabled', false).addClass('required'); installments.prop('disabled', false); cj('#amount_sum_label').text('Regular amount'); } else { cj('#recurHelp').hide(); frequencyUnit.prop('disabled', true).removeClass('required'); frequencyInerval.prop('disabled', true).removeClass('required'); installments.prop('disabled', true); cj('#amount_sum_label').text('Total Amount'); } } function pcpAnonymous() { // clear nickname field if anonymous is true if (document.getElementsByName("pcp_is_anonymous")[1].checked) { document.getElementById('pcp_roll_nickname').value = ''; } if (!document.getElementsByName("pcp_display_in_roll")[0].checked) { cj('#nickID').hide(); cj('#nameID').hide(); cj('#personalNoteID').hide(); } else { if (document.getElementsByName("pcp_is_anonymous")[0].checked) { cj('#nameID').show(); cj('#nickID').show(); cj('#personalNoteID').show(); } else { cj('#nameID').show(); cj('#nickID').hide(); cj('#personalNoteID').hide(); } } } CRM.$(function($) { enableHonorType(); toggleRecur(); skipPaymentMethod(); }); CRM.$(function($) { // highlight price sets function updatePriceSetHighlight() { $('#priceset .price-set-row span').removeClass('highlight'); $('#priceset .price-set-row input:checked').parent().addClass('highlight'); } $('#priceset input[type="radio"]').change(updatePriceSetHighlight); updatePriceSetHighlight(); // Update pledge contribution amount when pledge checkboxes change $("input[name^='pledge_amount']").on('change', function() { var total = 0; $("input[name^='pledge_amount']:checked").each(function() { total += Number($(this).attr('amount')); }); $("input[name^='price_']").val(total.toFixed(2)); }); }); </script> <script type="text/javascript"> CRM.$(function($) { $("form.CRM_Contribute_Form_Contribution_Main").crmValidate(); }); </script> </form> </div> <div class="crm-public-footer" id="civicrm-footer"> empowered by <a href="https://civicrm.org/" title="CiviCRM.org - Growing and Sustaining Relationships" target="_blank" class="empowered-by-link"><div class="empowered-by-logo"><span>CiviCRM</span></div></a> </div> </div> </div> </div> <!-- /.block --> </div> <!-- /.region --> </div> </section> </div> </div> <div id="footer-wrap" class="site-footer clr"> <div id="footer" class="clr container"> <div class="span_1_of_1 col col-1"> <div class="region region-footer"> <div id="block-fsf-privacy-policy-fsf-privacy-policy" class="block block-fsf-privacy-policy"> <div class="content"> <p style="color: white">We prioritize your privacy and do not sell or distribute our contact lists. Read our full <a href="https://www.fsf.org/about/free-software-foundation-privacy-policy">privacy policy</a>.</p> </div> </div> <!-- /.block --> <div id="block-block-2" class="block block-block"> <div class="content"> <p style="color: white;">This version of CiviCRM contains modifications made by the Free Software Foundation, Inc. <a href="http://agpl.fsf.org/crm.fsf.org/CURRENT/">Complete source code</a></p> </div> </div> <!-- /.block --> <div id="block-librejslinks-librejslinks" class="block block-librejslinks"> <div class="content"> <div class="content"><a rel="jslicense" href="https://weblabels.fsf.org/crm.fsf.org/CURRENT/">JavaScript license information</a></div> </div> </div> <!-- /.block --> <div id="block-block-11" class="block block-block"> <div class="content"> <!-- Matomo --><script type="text/javascript"> <!--//--><![CDATA[// ><!-- // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0-or-later var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="https://piwik.fsf.org/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '3']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); // @license-end //--><!]]> </script><!-- End Matomo Code --> </div> </div> <!-- /.block --> </div> <!-- /.region --> </div> </div> </div> </div> <script type="text/javascript" src="https://my.fsf.org/extensions/com.aghstrategies.giftmemberships/js/giftpricefield.js?r=lp7Di"></script> <script type="text/javascript" src="https://my.fsf.org/extensions/com.ginkgostreet.negativenegator/js/negativenegator.js?r=lp7Di"></script> </body> </html>