{"id":18,"date":"2014-01-07T20:00:17","date_gmt":"2014-01-07T19:00:17","guid":{"rendered":"http:\/\/circoloculturalesanfrancesco.org\/?page_id=18"},"modified":"2021-11-07T20:12:11","modified_gmt":"2021-11-07T19:12:11","slug":"donazione","status":"publish","type":"page","link":"https:\/\/circoloculturalesanfrancesco.org\/site\/donazione\/","title":{"rendered":"Donazione"},"content":{"rendered":"<div class=\"pdfprnt-buttons pdfprnt-buttons-page pdfprnt-top-right\"><a href=\"https:\/\/circoloculturalesanfrancesco.org\/site\/wp-json\/wp\/v2\/pages\/18?print=pdf\" class=\"pdfprnt-button pdfprnt-button-pdf\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/circoloculturalesanfrancesco.org\/site\/wp-content\/plugins\/pdf-print\/images\/pdf.png\" alt=\"image_pdf\" title=\"Visualizza PDF\" \/><\/a><\/div>\n<script language='javascript'>\nfunction startmcpd() {\n  changeBus();\n  createButton();\n}\n\nwindow.onload = startmcpd;\n\nfunction changeBus(){\n  var currencyCode;\n  index = document.getElementById('country').options.selectedIndex;\n  switch (index){\n    \t\tcase 0:\n\t\tdocument.getElementById('currencyOne').innerHTML \t= 'EUR';\n\/\/\t\tdocument.getElementById('currencyMon').innerHTML \t= 'EUR';\n\/\/\t\tdocument.getElementById('currsymbol1').innerHTML\t= '&#8364;';\n\t\tdocument.getElementById('currsymbol2').innerHTML\t= '&#8364;';\n\/\/\t\tdocument.getElementById('currsymbol3').innerHTML\t= '&#8364;';\n\/\/\t\tdocument.getElementById('currsymbol4').innerHTML\t= '&#8364;';\n\t\tdocument.getElementById('currsymbol5').innerHTML\t= '&#8364;';\n\t\tcurrencyCode \t\t\t\t\t\t= 'EUR';\n\t\tbreak;\n\n  }\n  \/\/Make The donate Button\n  createButton();\n}\n\nfunction loadCurrency(){\n  var currency = document.getElementById(\"currencyOne\").innerHTML;\n  return currency;\n}\n\nfunction loadEmail(){\n  var email;\n  var i = document.getElementById(\"country\").selectedIndex;\n  email = document.getElementById(\"country\").options[i].value;\n  return email;\n}\n\n\nfunction createButton(){\n  var buynow;\n  var monthly;\n  var onetime;\n  var addonetime;\n  var subpart1;\n  var subpart2;\n  var total;\n  var onetimeamt;\n  var monthlyamt;\n  var ppform;\n\n  updateAmount(\"both\");\n  \/\/Add up total charge for today\n  onetimeamt = updateAmount('onetime');\n  monthlyamt = updateAmount('monthly');\n  onetimeamt = parseFloat(onetimeamt);\n  monthlyamt = parseFloat(monthlyamt);\n  total = onetimeamt + monthlyamt;\n  total = total.toFixed(2);\n  document.getElementById('total').innerHTML = total;\n\n  if (document.amounts.selonetime.checked == true){\n\n    \/\/Make a buy it now button for a one time donation\n    buynow = '<form action=\"https:\/\/www.paypal.com\/it\/cgi-bin\/webscr\" method=\"post\"> \\\n              <input name=\"cmd\" type=\"hidden\" value=\"_donations\" \/> \\\n              <input id=\"business\" name=\"business\" type=\"hidden\" value=\"'+loadEmail()+'\" \/> \\\n              <input name=\"item_name\" type=\"hidden\" value=\"Donazione in favore del Circolo Culturale San Francesco\" \/> \\\n              <input name=\"item_number\" type=\"hidden\" value=\"aio-donation\" \/> \\\n              <input id=\"amount\" name=\"amount\" size=\"6\" type=\"hidden\" value=\"'+updateAmount(\"onetime\")+'\" style=\"padding:5px;font-size:20px;font-weight:900;\" \/> \\\n              <input id=\"currency_code1\" name=\"currency_code\" type=\"hidden\" value=\"'+loadCurrency()+'\" \/> \\\n              <input name=\"return\" type=\"hidden\" value=\"https:\/\/circoloculturalesanfrancesco.org\/site\/donazione-effettuata\" \/> \\\n              <input type=\"submit\" class=\"mcpddonatenow\" name=\"submit\" value=\"Procedi\" alt=\"\"><\/form>';\n    document.getElementById('ppform').innerHTML = '';\n    document.getElementById('ppform').innerHTML = buynow;\n    onetime = updateAmount(\"onetime\");\n    return true;\n  } else {\n    \/\/No donation selected. Remove donation button.\n    document.getElementById('ppform').innerHTML = '';\n    return false;\n  }\n}\n\nfunction updateAmount(type){\n  var monthly;\n  var onetime;\n\n  if ((type == 'onetime') && (document.amounts.selonetime.checked == true) && (document.amounts.onetimeamt.value)){\n    \/\/Calculate one time donation\n    onetime = document.amounts.onetimeamt.value;\n    onetime = addSurcharge(onetime);\n    return onetime;\n  } else {\n    if (type == 'onetime'){\n      \/\/document.getElementById('onetimetotal').innerHTML = 0;\n    }\n    return 0;\n  }\n  return;\n}\n\n\nfunction addSurcharge(amt){\n  var amt;\n  if (document.surchargeForm.surcharge.checked == true){\n    amt = (parseFloat(amt)+0.30)\/0.971;\n    amt = roundNumber(amt, 2);\n  }\n  return amt;\t\n}\n\n\n\nfunction roundNumber(number,decimals) {\n  var newString;\/\/ The new rounded number\n  decimals = Number(decimals);\n  if (decimals < 1) {\n    newString = (Math.round(number)).toString();\n  } else {\n    var numString = number.toString();\n\n    if (numString.lastIndexOf(\".\") == -1) {\/\/ If there is no decimal point\n      numString += \".\";\/\/ give it one at the end\n    }\n\n    var cutoff = numString.lastIndexOf(\".\") + decimals;\/\/ The point at which to truncate the number\n    var d1 = Number(numString.substring(cutoff,cutoff+1));\/\/ The value of the last decimal place that we'll end up with\n    var d2 = Number(numString.substring(cutoff+1,cutoff+2));\/\/ The next decimal, after the last one we want\n\n    if (d2 >= 5) {\/\/ Do we need to round up at all? If not, the string will just be truncated\n      if (d1 == 9 && cutoff > 0) {\/\/ If the last digit is 9, find a new cutoff point\n        while (cutoff > 0 && (d1 == 9 || isNaN(d1))) {\n          if (d1 != \".\") {\n            cutoff -= 1;\n            d1 = Number(numString.substring(cutoff,cutoff+1));\n          } else {\n            cutoff -= 1;\n          }\n        }\n      }\n      d1 += 1;\n    } \n    newString = numString.substring(0,cutoff) + d1.toString();\n  }\n\n  if (newString.lastIndexOf(\".\") == -1) {\/\/ Do this again, to the new string\n    newString += \".\";\n  }\n\n  var decs = (newString.substring(newString.lastIndexOf(\".\")+1)).length;\n\n  for(var i=0;i<decimals-decs;i++) newString += \"0\";\n\n  \/\/var newNumber = Number(newString);\/\/ make it a number if you like\n  return newString;\n\n}\n<\/script>\n<link rel=\"stylesheet\" href=\"https:\/\/circoloculturalesanfrancesco.org\/site\/wp-content\/plugins\/multi-currency-paypal-donations\/style\/style.css\" media=\"screen\" type='text\/css' \/>\n<style type='text\/css'>\n.mcpdleftcol{ background-color: #FFFFFF }\n.nationality{ background-color: #1C451A }\n.mcpdcontent { color:#000000 }\n\ninput.mcpddonatenow {\n\tbackground:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #2E6C2B), color-stop(1, #2E6C2B) );\n\tbackground:-moz-linear-gradient( center top, #2E6C2B 5%, #2E6C2B 100% );\n\tfilter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#2E6C2B', endColorstr='#2E6C2B');\n\tbackground-color:#2E6C2B;\n\t-moz-border-radius:6px;\n\t-webkit-border-radius:6px;\n\tborder-radius:6px;\n\tborder:1px solid #74B807;\n\tdisplay:inline-block;\n\tcolor:#FFFFFF;\n\tfont-family:arial;\n\tfont-size:25px;\n\tfont-weight:bold;\n\tpadding:12px 24px;\n\tmargin-left: 10px;\n\ttext-decoration:none;\n}\ninput.mcpddonatenow:hover {\n\tbackground:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #2E6C2B), color-stop(1, #2E6C2B) );\n\tbackground:-moz-linear-gradient( center top, #2E6C2B 5%, #2E6C2B 100% );\n\tfilter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#2E6C2B', endColorstr='#2E6C2B');\n\tbackground-color:#2E6C2B;\n}\ninput.mcpddonatenow:active {\n\tposition:relative;\n\ttop:1px;\n}\n\n<\/style>\n\n<div class='mcpdcontent'>\n\n\t\t\t\t\t\n\t<div class='mcpdstep2'>\n\t\t\t<div class='nationality'><span style='color:red'>*<\/span>Seleziona la Valuta:\n\t\t\t<select id='country' onclick=\"changeBus(this)\" onchange=\"changeBus(this)\">\n\t\t\n\t\t<option value='donazioni@circoloculturalesanfrancesco.org' selected>Euro<\/option>\n\t\t\t\t<\/select>\n\t\t<\/div>\n\t\t<div class='mcpdleftcol'>\n\t\t\t<div id='mcpdmonthly'>\n\t\t\t\t<form name='amounts'>\n\t\t\t\t<h3>Modifica a tuo piacimento l'importo della donazione.<\/h3>\n\t\t\t\t\t<br \/>\n\t\t\t\t\t<input name='selonetime' type=\"checkbox\" checked onclick='createButton()' \/>\n\t\t\t\t\t<span id='currsymbol2'>$<\/span><input type='input' size=\"6\" name='onetimeamt' value='10.00' onkeyup='createButton()' style='padding:5px;font-size:20px;font-weight:900;' \/>\n\t\t\t\t\t<span id='currencyOne'><\/span>\n\t\t\t\t<\/form>\n\t\t\t\t<form name='surchargeForm'>\n\t\t\t\t\t<input name='surcharge' type=\"checkbox\"  onclick='createButton();'><label style=\"display: inline;\" for='surcharge'>Pagamento tramite carta di credito<span style=\"cursor: help\" data-ot=\"L'utilizzo di carte di credito ci vincola al pagamento di una percentuale! Selezionando questa casella ci consentirai di ricevere l'importo inserito per intero!\" > <u>?<\/u><\/span><\/label>\n\t\t\t\t<\/form>\n\n\t\t\t<\/div>\n\t\t<!--\t\n\t\t\t<div class='mcpdsubtotal'>\n\t\t\t\t<p><b>Subtotal<\/b><\/p>\n\t\t\t\t<p>Monthly Donation......................<b><span id='currsymbol3'>$<\/span><span id='monthlytotal'><\/span><\/b><\/p>\n\t\t\t\t<p>One Time Donation....................<b><span id='currsymbol4'>$<\/span><span id='onetimetotal'><\/span><\/b><\/p>\n\t\t\t<\/div>\n\t\t-->\n\t\t<br \/>\n\t\t\t<div class='mcpdtotalbox'>\n\t\t\t\t<p style='font-size:25px;'>Totale <b><span id='currsymbol5'>$<\/span><span style='font-size:30px;' id='total'><\/span><\/b><\/p>\n\t\t\t<\/div>\n\t\t\t<div id='ppform'><\/div>\n\t\t\t<br \/>\n\t\t\t\t\t\t<div class='mcpdHelp'><small>Non riesci a effettuare la tua donazione?<br \/><a title=' - Contact' href='mailto:donazioni@circoloculturalesanfrancesco.org'>Contattaci e ti aiuteremo.<\/a><\/small><\/div>\n\t\t\t\t\t<\/div>\n\t\t\n\t\t<div style='clear:both'><\/div>\n\t<\/div>\n\t<\/div>\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":9,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ngg_post_thumbnail":0,"footnotes":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Donazione -<\/title>\n<meta name=\"description\" content=\"\u00c8 possibile fare la propria donazione con un versamento su conto corrente postale, bonifico o pagamento elettronico tramite carta di credito.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/circoloculturalesanfrancesco.org\/donazione\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Donazione -\" \/>\n<meta property=\"og:description\" content=\"\u00c8 possibile fare la propria donazione con un versamento su conto corrente postale, bonifico o pagamento elettronico tramite carta di credito.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/circoloculturalesanfrancesco.org\/donazione\/\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-07T19:12:11+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Tempo di lettura stimato\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/circoloculturalesanfrancesco.org\/site\/#website\",\"url\":\"https:\/\/circoloculturalesanfrancesco.org\/site\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/circoloculturalesanfrancesco.org\/site\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"it-IT\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/circoloculturalesanfrancesco.org\/donazione\/#webpage\",\"url\":\"https:\/\/circoloculturalesanfrancesco.org\/donazione\/\",\"name\":\"Donazione -\",\"isPartOf\":{\"@id\":\"https:\/\/circoloculturalesanfrancesco.org\/site\/#website\"},\"datePublished\":\"2014-01-07T19:00:17+00:00\",\"dateModified\":\"2021-11-07T19:12:11+00:00\",\"description\":\"\u00c8 possibile fare la propria donazione con un versamento su conto corrente postale, bonifico o pagamento elettronico tramite carta di credito.\",\"breadcrumb\":{\"@id\":\"https:\/\/circoloculturalesanfrancesco.org\/donazione\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/circoloculturalesanfrancesco.org\/donazione\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/circoloculturalesanfrancesco.org\/donazione\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/circoloculturalesanfrancesco.org\/site\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Donazione\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Donazione -","description":"\u00c8 possibile fare la propria donazione con un versamento su conto corrente postale, bonifico o pagamento elettronico tramite carta di credito.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/circoloculturalesanfrancesco.org\/donazione\/","og_locale":"it_IT","og_type":"article","og_title":"Donazione -","og_description":"\u00c8 possibile fare la propria donazione con un versamento su conto corrente postale, bonifico o pagamento elettronico tramite carta di credito.","og_url":"https:\/\/circoloculturalesanfrancesco.org\/donazione\/","article_modified_time":"2021-11-07T19:12:11+00:00","twitter_misc":{"Tempo di lettura stimato":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/circoloculturalesanfrancesco.org\/site\/#website","url":"https:\/\/circoloculturalesanfrancesco.org\/site\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/circoloculturalesanfrancesco.org\/site\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"it-IT"},{"@type":"WebPage","@id":"https:\/\/circoloculturalesanfrancesco.org\/donazione\/#webpage","url":"https:\/\/circoloculturalesanfrancesco.org\/donazione\/","name":"Donazione -","isPartOf":{"@id":"https:\/\/circoloculturalesanfrancesco.org\/site\/#website"},"datePublished":"2014-01-07T19:00:17+00:00","dateModified":"2021-11-07T19:12:11+00:00","description":"\u00c8 possibile fare la propria donazione con un versamento su conto corrente postale, bonifico o pagamento elettronico tramite carta di credito.","breadcrumb":{"@id":"https:\/\/circoloculturalesanfrancesco.org\/donazione\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/circoloculturalesanfrancesco.org\/donazione\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/circoloculturalesanfrancesco.org\/donazione\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/circoloculturalesanfrancesco.org\/site\/"},{"@type":"ListItem","position":2,"name":"Donazione"}]}]}},"_links":{"self":[{"href":"https:\/\/circoloculturalesanfrancesco.org\/site\/wp-json\/wp\/v2\/pages\/18"}],"collection":[{"href":"https:\/\/circoloculturalesanfrancesco.org\/site\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/circoloculturalesanfrancesco.org\/site\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/circoloculturalesanfrancesco.org\/site\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/circoloculturalesanfrancesco.org\/site\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":14,"href":"https:\/\/circoloculturalesanfrancesco.org\/site\/wp-json\/wp\/v2\/pages\/18\/revisions"}],"predecessor-version":[{"id":7060,"href":"https:\/\/circoloculturalesanfrancesco.org\/site\/wp-json\/wp\/v2\/pages\/18\/revisions\/7060"}],"wp:attachment":[{"href":"https:\/\/circoloculturalesanfrancesco.org\/site\/wp-json\/wp\/v2\/media?parent=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}