path: root/donate/index.html
blob: 71f77c753709d46b2986acefdcc7b56a2c128525 (plain) (tree)





<!DOCTYPE html>
<html lang="en">
    <title>calcurse: a text-based calendar and scheduling application</title>

    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="/js/lightbox.js"></script>
    <script type="text/javascript" src=""></script>
    <script type="text/javascript" src=""></script>

    <link href="" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/css/style.css" media="all" />
    <link rel="stylesheet" type="text/css" href="/css/lightbox.css" media="screen" />

    <div id="header" class="typeface-js">
      <a href="/"><img src="/images/logo.png" alt="calcurse" /></a>
        <li><a href="/">About</a></li>
        <li><a href="/downloads">Downloads</a></li>
        <li><a href="/support">Support</a></li>
        <li><a href="/devel">Development</a></li>
        <li><a href="/donate" class="current">Donate</a></li>
      <p style="clear:both;"></p>
    <div id="contents">
  There are different ways to support calcurse development. If you are a
  programmer, one of the best ways to contribute is to <a href="/devel">submit
  patches</a> fixing bugs, adding features or improving overall code quality.
  We are also extremely grateful for donations which help us continue
  developing calcurse as open source software and are used to cover recurring
  costs, such as for our servers.
  We use <a href="">Stripe Checkout</a> to process
  payments. The Stripe Checkout payment form requires a modern browser with
  JavaScript support. If you would like to make a donation but do not want to
  use Stripe, feel free to contact us at <tt>&lt;donations at calcurse dot
  org&gt;</tt>. This email address can also be used if you have any questions
  regarding the donation process.
  Use one of the following links to donate...
<ul class="donate">
  <li><a href="javascript:openHandler(10, 'eur')">10&euro;</a></li>
  <li><a href="javascript:openHandler(20, 'eur')">20&euro;</a></li>
  <li><a href="javascript:openHandler(50, 'eur')">50&euro;</a></li>
  <li><a href="javascript:openHandler(100, 'eur')">100&euro;</a></li>
  <li><a href="javascript:openHandler(10, 'usd')">$10</a></li>
  <li><a href="javascript:openHandler(20, 'usd')">$20</a></li>
  <li><a href="javascript:openHandler(50, 'usd')">$50</a></li>
  <li><a href="javascript:openHandler(100, 'usd')">$100</a></li>
  <li id="donate-custom"><a href="javascript:customHandler()">Custom</a></li>
<div id="donate-status"></div>

var amount = 0;
var handler = StripeCheckout.configure({
  image: '',
  key: ( == '?test') ? 'pk_test_zNePe3wvpZ65O3nEeFq4QL2j' : 'pk_live_g0aFHViGhTkfSSCFmDCr5UI8',
  locale: 'auto',
  token: function(token) {
    grecaptcha.ready(function() {
      grecaptcha.execute('6LdGJp4UAAAAAOSO_ptuZSe-ZBRDZ0UUl47IulUu', {"action": "process_payment"}).then(function(recaptcha) {
          type: "POST",
          url: "/stripe",
          data: {
            "amount": amount,
            "currency": token.currency,
            "recaptcha": recaptcha,
            "test": ( == '?test'),
          success: function(data) {
            if (data.success) {
              $("#donate-status").html('<h2>Thank you for your donation!</h2>');
            } else {
              $("#donate-status").html('<h2>Whoops, something went wrong!</h2><p class="error">There has been an error, and you have not been charged. Please try again or send an email to <tt>&lt;donations at calcurse dot org&gt;</tt>.');
              $("#donate-status h2").text(data.message);
          error: function(jqXHR, msg, err) {
            $("#donate-status").html('<h2>Whoops, something went wrong!</h2><p class="error">There has been an error, and you have not been charged. Please try again or send an email to <tt>&lt;donations at calcurse dot org&gt;</tt>.');
            $("#donate-status h2").text(msg + ", " + err);

function openHandler(val, currency) {
  if (val == 0) {
    val = Number($("input[name=donate-amount]").val());
    val = Math.max(val, 5);
    currency = $("select[name=donate-currency]").val();
  amount = (val * 100) | 0;{
    name: 'Donation',
    description: 'Support calcurse Development',
    currency: currency,
    amount: amount,
    allowRememberMe: false

function customHandler() {
  $("#donate-custom").html('<input name="donate-amount" type="number" min="5" /> <select name="donate-currency"> <option value="eur">&euro;</option> <option value="usd">USD</option> </select> <a href="javascript:openHandler(0)">Donate</a>');

window.addEventListener('popstate', function() {
    <div id="footer">
      Copyright &copy; 2012-2018 <a href="/support/#devs">calcurse Development Team</a>.
      Licensed under the terms of the BSD License.