{"id":962,"date":"2024-08-09T20:50:18","date_gmt":"2024-08-09T20:50:18","guid":{"rendered":"https:\/\/prova.moliseweb.it\/?p=962"},"modified":"2024-08-09T21:55:46","modified_gmt":"2024-08-09T21:55:46","slug":"prenotazioni","status":"publish","type":"post","link":"https:\/\/prova.moliseweb.it\/index.php\/2024\/08\/09\/prenotazioni\/","title":{"rendered":"Prenotazioni"},"content":{"rendered":"<script src=\"https:\/\/prova.moliseweb.it\/wp-content\/plugins\/prenotaok\/manager\/js\/jquery.min.js\"><\/script>\n<link id=\"bsdp-css\" href=\"https:\/\/prova.moliseweb.it\/wp-content\/plugins\/prenotaok\/css\/bootstrap-datepicker3.min.css\" rel=\"stylesheet\">\n<script src=\"https:\/\/prova.moliseweb.it\/wp-content\/plugins\/prenotaok\/js\/bootstrap-datepicker.min.js\"><\/script>\n<script src=\"https:\/\/prova.moliseweb.it\/wp-content\/plugins\/prenotaok\/js\/bootstrap-datepicker.it.min.js\" charset=\"UTF-8\"><\/script>\n<script src=\"https:\/\/www.paypal.com\/sdk\/js?client-id=Aab323PK5I04vJkuVgGaja0fwaDecyFEHDhUOUrNZbqpxuVaQNSEzIwX0FJ3EtNdlq447OrvSY--sOek&currency=EUR&components=buttons,funding-eligibility\"><\/script>\n<div id=\"pok_risultati\" style=\"display: grid;align-items: center;justify-content: center;\">\n<ol class=\"olcards\"><li onclick=\"pok_sport('15')\" style=\"--cardColor:#b03333;cursor: pointer;\"><div class=\"content_pok\"><div class=\"icon\"><div style=\"background: url('https:\/\/www.islandfunvillage.it\/wp-content\/uploads\/2022\/02\/Torneo-calcetto.jpg');background-position: center;background-size: auto 100%;\" class=\"immagine_sport\"><\/div><\/div><div class=\"title\" style=\"color:#ffffff;\">Calcio a 5<\/div><div style=\"font-size:12px;color:#ffffff;\">Sfida i tuoi amici a Calcetto the best<\/div><\/div><\/li><li onclick=\"pok_sport('16')\" style=\"--cardColor:#42ac0f;cursor: pointer;\"><div class=\"content_pok\"><div class=\"icon\"><div style=\"background: url('https:\/\/st3.depositphotos.com\/1010550\/13496\/i\/450\/depositphotos_134960630-stock-photo-two-young-women-playing-paddle.jpg');background-position: center;background-size: auto 100%;\" class=\"immagine_sport\"><\/div><\/div><div class=\"title\" style=\"color:#ffffff;\">Padel<\/div><div style=\"font-size:12px;color:#ffffff;\">Gioca con tanti amici a Padel<\/div><\/div><\/li><li onclick=\"pok_sport('9')\" style=\"--cardColor:#df0606;cursor: pointer;\"><div class=\"content_pok\"><div class=\"icon\"><div style=\"background: url('https:\/\/img.ilgcdn.com\/sites\/default\/files\/styles\/xl\/public\/foto\/2023\/03\/02\/1677788128-tennis-court-1671852-960-720.jpg?_=1677788674');background-position: center;background-size: auto 100%;\" class=\"immagine_sport\"><\/div><\/div><div class=\"title\" style=\"color:#ffffff;\">Tennis<\/div><div style=\"font-size:12px;color:#ffffff;\"><\/div><\/div><\/li><\/ol><\/div>\n<div class=\"box\" style=\"display: none;margin-bottom: 8px;\">\n<b class=\"sublock\">DURATA: <select id=\"durata\" onchange=\"cambiodurata();\"><\/select><\/b>\n<b class=\"sublock\" id=\"bgiocatori\">GIOCATORI: <select id=\"slectgiocatori\" onchange=\"cambiongiocatori();\"><\/select><\/b>\n<b class=\"sublock\">Operazione: <select id=\"selectoperazione\" onchange=\"cambiaoperazione();\"><option value=\"prenota\">Solo Prenotazione<\/option><option value=\"tutto\">Prenota e Paga tutte le quote<\/option><\/select><\/b>\n<\/div>\n<div id=\"reload_campo\" class=\"centered\"><\/div>\n<div id=\"divorari\" style=\"display: none;\"><\/div>\n<div id=\"divcampi\" style=\"display: none;\"><\/div>\n<div id=\"pulsantecontinua\" style=\"display: none;\"><button id=\"primoprenota\" onclick=\"pok_prenota();\" class=\"myButton\">CONTINUA<\/button><\/div>\n<div id=\"sandbox-container\" align=\"center\" style=\"display: none;\"><\/div>\n<div id=\"pok-form\" style=\"display: none;\"><div class=\"container_pok\" style=\"margin-bottom: 10px;\">\n    <div id=\"testo-form\" class=\"text\" style=\"line-height: 40px;\">Inserisci i Dati per la Prenotazione<\/div>\n    <div id=\"paypal-button-container\" style=\"margin-left: auto; margin-right: auto;width: 100%;max-width: 600px;\"><\/div>\n    <form id=\"form-prenota\" onsubmit=\"paypal_form();return false;\" style=\"margin-top: 12px;\">\n    <div class=\"form-group\">\n      <label for=\"nome\">Nome:<\/label>\n      <input type=\"text\" class=\"form-control\" name=\"nome\" placeholder=\"Nome\" required>\n    <\/div>\n    <div class=\"form-group\">\n      <label for=\"cognome\">Cognome:<\/label>\n      <input type=\"text\" class=\"form-control\" name=\"cognome\" placeholder=\"Cognome\" required>\n    <\/div>\n    <div class=\"form-group\">\n      <label for=\"email\">Email:<\/label>\n      <input type=\"email\" class=\"form-control\" name=\"email\" placeholder=\"Email\" required>\n    <\/div>\n    <div class=\"form-group\">\n      <label for=\"telefono\">Telefono:<\/label>\n      <input type=\"tel\" pattern=\"[0-9\\s]{7,24}\" class=\"form-control\" name=\"telefono\" placeholder=\"Telefono\" required>\n    <\/div>  \n    <div class=\"form-group\">\n      <label for=\"messaggio\">Messaggio:<\/label>\n      <input type=\"text\" class=\"form-control\" name=\"messaggio\" placeholder=\"Messaggio\">\n    <\/div>  \n    <div class=\"checkbox\"><input type=\"checkbox\" style=\"width: 20px; height: 16px;\" id=\"siprivacy\" required><span id=\"chekdd\"><b>Accetto<\/b><\/span> <span style=\"width: 100%;font-size: 14px;margin-top:4px;text-align: justify\"> - Ai sensi dell'art. 13 del Regolamento Europeo 2016\/679 (GDPR - GENERAL DATA PROTECTION REGULATION), Prenotazione Campi Online, La informa che le informazioni che vorr\u00e0 liberamente comunicarci saranno inserite nel nostro database, trattate fedelmente ai principi di correttezza, liceit\u00e0 e trasparenza e di tutela della Sua riservatezza e dei Suoi diritti, elaborate elettronicamente ed utilizzate dalla nostra societ\u00e0 al fine di promuovere la vendita dei propri beni e servizi. Lei ha la possibilit\u00e0 di accedere liberamente ai dati comunicati per aggiornarli, modificarli, integrarli e cancellarli contattando email@dominio.it. La informiamo inoltre che i Suoi dati NON saranno comunicati ad altri soggetti.<\/div>\n<button type=\"submit\" id=\"prenotabot\" class=\"myButton\" style=\"height: 44px;\">PRENOTA<\/button>\n<\/form>\n    <\/div>\n    <div align=\"center\" id=\"errorform_campo\" style=\"position: fixed;top: 50%;left: 50%;margin-top: -40px;margin-left: -40px;z-index: 999999999;\"><\/div>\n<script>\n\nfunction format (val) {\n  val = (+val).toLocaleString();\n  val = (+val).toFixed(2);\n  val += \"\";\n  val = val.replace(\/(\\d)(?=(\\d{3})+(?:\\.\\d+)?$)\/g, \"$1\" + format.thousands);\n}\n\nfunction paypal_form() {\n    var scrollDiv = document.getElementById(\"primoprenota\").offsetTop;\n  $(\"html, body\").animate({ scrollTop: scrollDiv + 100 }, \"slow\");\n  $(\"#form-prenota\").hide();\n  $(\"#testo-form\").html('ULTIMO PASSAGGIO - PAGA ' + Number(prezzocampi).toFixed(2) + ' \u20ac');\n  paypal.Buttons({\n    style: {\n    layout: 'vertical',\n    color:  'gold',\n    shape:  'rect',\n    label:  'paypal',\n    borderRadius: 10,\n  },\n  message: {\n    amount: 100,\n    align: 'center',\n    color: 'black',\n    position: 'top',\n  },\n            createOrder: function(data, actions) {\n                return actions.order.create({\n                    purchase_units: [{\n                        amount: {\n                            value: Number(prezzocampi).toFixed(2),\n                    breakdown: {\n                        item_total: { value: Number(prezzocampi).toFixed(2), currency_code: 'EUR' }\n                    }\n                        },\n                        items: items,\n                    }]\n                });\n            },\n            onApprove: function(data, actions) {\n                return actions.order.capture().then(function(details) {\n                    prenota_form(data.orderID);\n                })\n    },\n            onError: function(err) {\n                alert('Errore Transazione, ' + err);\n            }\n        }).render('#paypal-button-container'); \n}\n\nfunction prenota_form(orderID) {\n  $(\"#paypal-button-container\").html('');\n  $(\"#errorform_campo\").html('<img decoding=\"async\" src=\"https:\/\/prova.moliseweb.it\/wp-content\/plugins\/prenotaok\/manager\/img\/loading.gif\">');\n  $(\"#prenotabot\").prop(\"disabled\",true);\n  var oData = $('#profileForm').serializeArray();\noData.push({data: $('#dataprenotazione').val()});\n  $.ajax({\n         type: 'POST',\n         url: \"https:\/\/prova.moliseweb.it\/wp-content\/plugins\/prenotaok\/prenotazione.php\",\n         data: $('#form-prenota').serialize() + '&data=' + $('#dataprenotazione').val() + '&idsport=' + $('#idsport').val() + '&orari=' + $('#orariprenotazione').val() + '&campi=' + $('#campiprenotazione').val()+ '&orderID=' + orderID + '&sportselezionato=' + $(\"#sportselezionato\").val() + '&prezzoprenotazione=' + Number(prezzocampi).toFixed(2) + '&ngiocarori=' + $(\"#ngiocatori\").val() + '&operazione=' + $(\"#selectoperazione\").val(),\n         success: function(response) {\n        $(\"#errorform_campo\").html('');\n         let nresult = response.indexOf(\"Error!\");\n         if(nresult > -1) {\n          alert(response);\n         } else {\n          $(\"#prenotabot\").prop(\"disabled\",false);\n          home('<img decoding=\"async\" src=\"https:\/\/prova.moliseweb.it\/wp-content\/plugins\/prenotaok\/img\/ok.svg\"> Preanotazione avvenuta con Successo');\n          var scrollDiv = document.getElementById(\"pok_risultati\").offsetTop;\n          $(\"html, body\").animate({ scrollTop: scrollDiv }, \"slow\"); \n        }\n         },\n        error: function(data, status) {\n             $(\"#errorform_campo\").html(\"Errore!! \" + status );\n             $(\"#prenotabot\").prop(\"disabled\",false);\n        }\n     });\n\n}\n\n$('#chekdd').click(function(e) { \nif ($(\"#siprivacy\").is(\":checked\")) {\n  $(\"#siprivacy\").prop(\"checked\", false).click();\n} else {\n  $(\"#siprivacy\").prop(\"checked\", true).click();\n }\n})\n<\/script>\n    <style>\n@import url('https:\/\/fonts.googleapis.com\/css?family=Poppins:400,500,600,700&display=swap');\n\n.container_pok {\n  background: #fff;\n  \/*width: 100%;*\/\n  padding: 25px 0px 10px 0px\n  rgba(0,0,0,0.1);\n}\n.container_pok .text{\n  text-align: center;\n  font-size: 30px;\n  font-weight: 200;\n  font-family: 'Poppins', sans-serif;\n  \/\/background: -webkit-linear-gradient(right, #56d8e4, #9f01ea, #56d8e4, #9f01ea);\n  -webkit-background-clip: text;\n  -webkit-text-fill-color: transparent;\n  background-color: #000;\n}\n.container_pok .form-control {\n  width: calc(100% - 100px);\n  height: 40px;\n}\n.container_pok .form-group {\n  display: flex;\n    text-align: right;\n    margin-bottom: 10px;\n    flex-direction: row;\n    flex-wrap: nowrap;\n    justify-content: flex-end;\n    align-items: center;\n}\n.container_pok label{\n  margin-right: 4px;\n  font-weight: bold;\n  }\n@media (max-width: 500px) {\n  .container_pok label{\n    display:none;\n  }\n  .container_pok .form-control {\n  width: 100%;\n}\n}\n\n:where(.wp-site-blocks *:focus) {\n    outline-width: 0px; \n    outline-style: solid; \n}\n    <\/style><\/div>\n<script>\nvar prezzocampi = 0;\nvar items = [];\n  function home(testo) {\n    $(\"#reload_campo\").html('<img decoding=\"async\" src=\"https:\/\/prova.moliseweb.it\/wp-content\/plugins\/prenotaok\/manager\/img\/loading.gif\">');\n\t\t$.ajax({\n         type: 'POST',\n         url: \"https:\/\/prova.moliseweb.it\/wp-content\/plugins\/prenotaok\/home.php\",\n         data: {}, \n         success: function(response) {\n      $(\"#pok_risultati\").html(response);\n      $('#dataprenotazione').val('');\n          $('#idsport').val('');\n          $('#orariprenotazione').val('');\n          $('#campiprenotazione').val('');\n          $(\"#divorari\").hide();\n          $(\".box\").hide();\n          $(\"#divcampi\").hide();\n          $(\"#pulsantecontinua\").hide();\n          $(\"#sandbox-container\").hide();\n          $(\"#pok-form\").hide();\n          if (testo != undefined) $( \"#pok_risultati\" ).prepend('<h1>' +testo+ '<\/h1>');\n          $(\"#reload_campo\").html('');\n         },\n        error: function(data, status) {\n            $(\"#reload_campo\").html('');\n             alert(\"Errore!! \" + status );\n        }\n     });\n\t} \n\n\tfunction pok_sport(id, tot=0) {\n    $(\"#reload_campo\").html('<img decoding=\"async\" src=\"https:\/\/prova.moliseweb.it\/wp-content\/plugins\/prenotaok\/manager\/img\/loading.gif\">');\n\t\t$.ajax({\n         type: 'POST',\n         url: \"https:\/\/prova.moliseweb.it\/wp-content\/plugins\/prenotaok\/data.php\",\n         data: {id: id, tot: tot}, \n         success: function(response) {\n      var valore = JSON.parse(response);\n      $(\"#pok_risultati\").html(valore['risultato']);\n      $(\"#sportselezionato\").val(valore['sportselezionato']);\n\t\t\t$('#sandbox-container').show();\n\t\t\t$('#idsport').val(id);\n      pok_turni(id);\n      $(\"#reload_campo\").html('');\n         },\n        error: function(data, status) {\n          $(\"#reload_campo\").html('');\n             alert(\"Errore!! \" + status );\n        }\n     });\n\t} \n\t$('#sandbox-container').datepicker({\n    format: \"dd\/mm\/yyyy\",\n    startDate: \"02\/05\/2026\",\n    endDate: \"02\/05\/2027\",\n    daysOfWeekDisabled: \"0,\",\n    todayHighlight: true,\n    datesDisabled: ['01\/5\/2026', '01\/5\/2027', '25\/12\/2026', '25\/12\/2027', ],\n    keepOpen: true,\n    language: \"it\"\n}).on('changeDate', function(e) {   \n    console.log(e.format());\npok_sport_orari(e.format());\n});\nfunction pok_home() {\n\t$(\"#pok_risultati\").html(risultato_sport);\n\t$('#sandbox-container').hide();\n}\nfunction pok_sport_orari(data) {\n\t$('#divorari').html('<img decoding=\"async\" src=\"https:\/\/prova.moliseweb.it\/wp-content\/plugins\/prenotaok\/\/manager\/img\/loading.gif\">');\n\t$('#divorari').show();\n  $('.box').show();\n\t\t$.ajax({\n         type: 'POST',\n         url: \"https:\/\/prova.moliseweb.it\/wp-content\/plugins\/prenotaok\/orari.php\",\n         data: {data: data, id: $(\"#idsport\").val(), durata: $(\"#durata\").val()}, \n         success: function(response) {\n            $(\"#divorari\").html(response);\n            $('#campiprenotazione').val('');\n            $('#divcampi').hide();      \n\t\t\t      $('#divorari').show();\n            $('#pulsantecontinua').show();\n\t\t\t      $('#dataprenotazione').val(data);\n            $(\"#primoprenota\").html('CONTINUA');\n         },\n        error: function(data, status) {\n\t\t\t$('#divorari').hide();\n        alert(\"Errore!! \" + status );\n        }\n     });\n\t} \n\nfunction pok_prenota() {\n$(\"#form-prenota\").show();\n$(\"#testo-form\").html('Inserisci i Dati per la Prenotazione');\n$(\"#paypal-button-container\").html('');\n\nvar okclick=0;\t\nif ($(\"#primoprenota\").html() == \"CAMBIA DATA O ORARI\" && okclick==0) {\n$('#pok-form').hide();\n$('#divcampi').hide();\n$('#campiprenotazione').val('');\n$('#sandbox-container').show();\n$(\".tgl\").prop('disabled', false);\n$(\"#primoprenota\").html('CONTINUA');\n$(\".tgl\").prop( \"checked\", false );\nokclick=1;\n}\nif ($(\"#primoprenota\").html() == \"PRENOTA\" && okclick==0) {\n \/\/ alert('Data: ' + $('#dataprenotazione').val() + ' IDsport: ' + $('#idsport').val() + ' Orari: ' + $('#orariprenotazione').val() + ' Campi: ' + $('#campiprenotazione').val());\n  if ($('#campiprenotazione').val() == \"\") {\n    alert('SCEGLIERE IL CAMPO');\n     return false;\n    }\n  $('#sandbox-container').hide();\n  $(\".tgl\").prop('disabled', true);\n  $('#pok-form').show();\n  $(\"#primoprenota\").html('CAMBIA DATA O ORARI');\n  okclick=1;\n}\nif ($(\"#primoprenota\").html() == \"CONTINUA\" && okclick==0) {\nvar orasport = \"\"; \nvar trovatosi = \"\"; \nfor (let i = 1; i < 17; i++) {\n\/\/orasport = $(\"#cb\" + i).attr(\"checked\") ? 1 : 0;\nconst orasport = $(\"#cb\" + i).is(\":checked\");\nif (orasport === true) \n\/\/trovatosi = trovatosi + i + \"|\";\ntrovatosi = trovatosi + $(\"#cb\" + i).val() + \"|\";\n}\nif (trovatosi == \"\") {\n    alert('SELEZIONA ORARIO');\nreturn false;\n}\n$(\"#orariprenotazione\").val(trovatosi);\nokclick=1;\ntrovacampi();\n}\n}\n\nfunction trovacampi(orari) {\n  $(\"#orariprenotazione\").val(orari);\n  $('#divcampi').html('<img decoding=\"async\" src=\"https:\/\/prova.moliseweb.it\/wp-content\/plugins\/prenotaok\/\/manager\/img\/loading.gif\">');\n\t$('#divcampi').show();\n\t\t$.ajax({\n         type: 'POST',\n         url: \"https:\/\/prova.moliseweb.it\/wp-content\/plugins\/prenotaok\/campi.php\",\n         data: {id: $(\"#idsport\").val(), orari: orari, data: $(\"#dataprenotazione\").val()}, \n         success: function(response) {\n          $(\"#divcampi\").html(response);\n          tooltipok();\n          $(\"#primoprenota\").html('PRENOTA');\n         },\n        error: function(data, status) {\n\t\t\t$('#divcampi').hide();\n             alert(\"Errore!! \" + status );\n        }\n     });\n}\n\nfunction continuaripristina(orari) {\n  \/\/if ($(\"#primoprenota\").html() == \"PRENOTA\") {\n  \/\/  $('#divcampi').hide();\n  \/\/  $('#campiprenotazione').val('');\n    \/\/trovacampi();\n    \/\/$(\"#primoprenota\").html('CONTINUA');\n \/\/ } else {\n    $(\"#orariprenotazione\").val(orari);\n    \/\/pok_prenota();\n    trovacampi();\n  \/\/}\n}\n\nfunction sceltacampo(valore) {\n\/\/var errorecampi =\"\";\n\/\/prezzocampi =0;\n\/\/items = [];\n\/\/for (let i = 1; i < numero; i++) {\n\/\/valorecampi = $('input[name=campo' + i +']:checked', '#campi').val();\n\/\/if (valorecampi != undefined) {\n  \/\/errorecampi = errorecampi + $('input[name=campo' + i +']:checked', '#campi').val() + '|';\n \/\/ var  prezzocampo = $('input[name=campo' + i +']:checked', '#campi').val().split('*');\n  \/\/errorecampi = errorecampi + $('input[name=campo' + i +']:checked', '#campi').val();\n  \/\/prezzocampi = Number(prezzocampi) + Number(prezzocampo[2]);\n\/\/var itemInfo = {name: 'Prenotazione ora ' + prezzocampo[1] + '-' + (Number(prezzocampo[1]) +1) + ' - ' + $(\"#sportselezionato\").val() + ' del ' + $(\"#dataprenotazione\").val(), unit_amount: { value: prezzocampo[2], currency_code: 'EUR' }, quantity: '1'};\n\/\/items.push(itemInfo);\n\/\/}\n\/\/errorecampi = errorecampi + $('input[name=campo' + i +']:checked', '#campi').val() + '|';\n\/\/alert($('input[name=campo' + i +']:checked', '#campi').val());\n\/\/}\ndurata = $(\"#durata\").val();\nduratan =  durata.replace(\":00\", \"\");\nduratan =  duratan.replace(\":30\", \".50\");\n\/\/alert(Number(duratan).toFixed(2) + '|' + (Number(prezzo).toFixed(2) * Number(duratan).toFixed(2)));\n$('#campiprenotazione').val(valore);\n\/\/$('#prezzoprenotazione').val((Number(prezzo).toFixed(2) * Number(duratan).toFixed(2)));\n\/\/var prezzon =  Number($('#prezzoprenotazione').val()) + Number(prezzo);\nif ($(\"#selectoperazione\").val() == \"prenota\") {\n            var prezzon =  Number($('#prezzoprenotazione').val()) + Number($(\"input[name='campo']:checked\").attr('data-prenota'));\n          } else {\n            var prezzon =  (Number($('#prezzogiocatore').val()) + Number($(\"input[name='campo']:checked\").attr('data-giocatori'))) * $(\"#ngiocatori\").val();\n          }\nprezzocampi = Number(prezzon).toFixed(2);\n}\n\nfunction cambiodurata() {\nvar prenotazione = $(\"#durata option:selected\").attr(\"prenotazione\");\nvar prezzogiocatori = $(\"#durata option:selected\").attr(\"giocatore\");\n$('#prezzoprenotazione').val(Number(prenotazione).toFixed(2));\n$('#prezzogiocatore').val(Number(prezzogiocatori).toFixed(2));\n\nif ($(\"#primoprenota\").html() == \"CAMBIA DATA O ORARI\") {\n$('#pok-form').hide();\n$('#divcampi').hide();\n$('#campiprenotazione').val('');\n$('#sandbox-container').show();\n$(\".tgl\").prop('disabled', false);\n$(\"#primoprenota\").html('CONTINUA');\n} \npok_sport_orari($('#dataprenotazione').val());\n}\n\nfunction pok_turni(id) {\n\t\t$.ajax({\n         type: 'POST',\n         url: \"https:\/\/prova.moliseweb.it\/wp-content\/plugins\/prenotaok\/turni.php\",\n         data: {id: id}, \n         success: function(response) {\n      var valore = JSON.parse(response);\n      $(\"#durata\").html(valore['turni']);\n      $('#prezzoprenotazione').val(Number(valore['prenotazione']).toFixed(2));\n      $('#prezzogiocatore').val(Number(valore['giocatore']).toFixed(2));\n      if ($(\"#selectoperazione\").val() == \"prenota\") {\n      prezzocampi = Number(valore['prenotazione']).toFixed(2);\n      } else {\n      prezzocampi = Number(valore['prezzogiocatore']).toFixed(2);  \n      }\n      $(\"#slectgiocatori\").html(valore['ngiocatori']);\n      if(valore['tottigiocatori'] < 2) {\n      $(\"#bgiocatori\").hide();\n      } else {\n      $(\"#bgiocatori\").show();\n      }\n      $(\"#ngiocatori\").val(valore['ngiocatore']);\n         },\n        error: function(data, status) {\n             alert(\"Errore!! \" + status );\n        }\n     });\n\t}\n  \nfunction cambiongiocatori() {\n  $(\"#ngiocatori\").val($(\"#slectgiocatori\").val());\n  cambiaoperazione();\n}\n\nfunction tooltipok() {\n    $(\".tooltip_pok\").hover(\n        function(){\n          if ($(\"#selectoperazione\").val() == \"prenota\") {\n            var prezzo =  Number($('#prezzoprenotazione').val()) + Number($(this).attr(\"data-prenota\"));\n            var tooltipText = \"Prezzo Prenotazione \u20ac. \" + Number(prezzo).toFixed(2);\n          } else {\n            var prezzo =  (Number($('#prezzogiocatore').val()) + Number($(this).attr(\"data-giocatori\"))) * $(\"#ngiocatori\").val();\n            var tooltipText = \"Prezzo Totale \u20ac. \" + Number(prezzo).toFixed(2);\n          }\n            $(this).find(\".tooltiptext\").text(tooltipText).css(\"visibility\", \"visible\").animate({opacity: 1}, 300);\n        },\n        function(){\n            $(this).find(\".tooltiptext\").animate({opacity: 0}, 300, function(){\n                $(this).css(\"visibility\", \"hidden\");\n            });\n        }\n    );\n}\n\nfunction cambiaoperazione() {\n  tooltipok();\n  if ($(\"#selectoperazione\").val() == \"prenota\") {\n            var prezzon =  Number($('#prezzoprenotazione').val()) + Number($(\"input[name='campo']:checked\").attr('data-prenota'));\n          } else {\n            var prezzon =  (Number($('#prezzogiocatore').val()) + Number($(\"input[name='campo']:checked\").attr('data-giocatori'))) * $(\"#ngiocatori\").val();\n          }\nprezzocampi = Number(prezzon).toFixed(2);\n  if ($(\"#paypal-button-container\").html() != \"\") {\n    $(\"#testo-form\").html('ULTIMO PASSAGGIO - PAGA ' + Number(prezzocampi).toFixed(2) + ' \u20ac');\n    \/\/$(\"#paypal-button-container\").html('');\n    \/\/  paypal_form();\n  }\n}\ndocument.addEventListener(\"DOMContentLoaded\", ready);\n<\/script>\n<style>\n\t.immagine_sport {\n\t\twidth: 48px;\n\t\theight: 48px;\n\t\tborder-radius: 100%;\n\t\tmargin: 0;\n\t\toverflow: hidden;\n\t}\nnav>ul>li {\n        display: inline-block;\n    }\n\n\t#sandbox-container {\n\tbackground-color: #ffffff;\n    border-style: solid;\n    border-width: 2px;\n\twidth: 100%;\n  max-width: 600px;\n}\n}\n  .table-condensed {\n      width: 100%;\n  }\n  .datepicker-inline {\n      width: 100%;\n  }\n\n  .datepicker table {\n    width: 100%;\n}\n  .datepicker table tr td.active.active, .datepicker table tr td.active.highlighted.active, .datepicker table tr td.active.highlighted:active, .datepicker table tr td.active:active {\n      color: #fff;\n      background-color: #06e073;\n      border-color: #087c35;\n  }\n  .datepicker table tr td.today:hover {\n      color: #fff;\n      background-color: #5a5956;\n      border-color: #161616;\n  }\n  .datepicker table tr td.today {\n      color: #000;\n      background-color: #dbd9d5;\n      border-color: #7c7b78;\n  }\n  .datepicker table tr td.active.active.focus, .datepicker table tr td.active.active:focus, .datepicker table tr td.active.active:hover, .datepicker table tr td.active.highlighted.active.focus, .datepicker table tr td.active.highlighted.active:focus, .datepicker table tr td.active.highlighted.active:hover, .datepicker table tr td.active.highlighted:active.focus, .datepicker table tr td.active.highlighted:active:focus, .datepicker table tr td.active.highlighted:active:hover, .datepicker table tr td.active:active.focus, .datepicker table tr td.active:active:focus, .datepicker table tr td.active:active:hover {\n      color: #fff;\n      background-color: #2fda04;\n      border-color: #0b815a;\n  }\n  .datepicker table tr td.day:hover, .datepicker table tr td.focused {\n      color: #fff;\n      background: #2e2c2c;\n      cursor: pointer;\n  }\n  .table-condensed>tbody>tr>td, .table-condensed>tbody>tr>th, .table-condensed>tfoot>tr>td, .table-condensed>tfoot>tr>th, .table-condensed>thead>tr>td, .table-condensed>thead>tr>th {\n      padding: 14px;\n  }\n  .datepicker table tr td, .datepicker table tr th {\n      font-size: 24px;\n  }\n  .datepicker table tr td.disabled, .datepicker table tr td.disabled:hover {\n    background-color: #cf2424;\n    color: #fff;\n}\n\n\n.myButton {\n\tbox-shadow: 0px 10px 14px -7px #3e7327;\n    background: linear-gradient(to bottom, #02c66f 5%, #02c66f 100%);\n    background-color: #77b55a;\n    border-radius: 4px;\n    border: 1px solid #4b8f29;\n    display: inline-block;\n    cursor: pointer;\n    color: #ffffff;\n    font-family: Arial;\n    font-size: 13px;\n    font-weight: bold;\n    padding: 6px 12px;\n    text-decoration: none;\n    text-shadow: 0px 1px 0px #5b8a3c;\n    width: 100%;\n    margin-bottom: 20px;\n}\n.myButton:hover {\n\tbackground:linear-gradient(to bottom, #72b352 5%, #77b55a 100%);\n\tbackground-color:#72b352;\n}\n.myButton:active {\n\tposition:relative;\n\ttop:1px;\n}\n\n\nolcards,\n.olcards * {\n  margin: 0;\n  padding: 0;\n  box-sizing: border-box;\n}\n\n.olcards {\n  list-style: none;\n  counter-reset: cardCount;\n  font-family: sans-serif;\n  display: flex;\n  flex-direction: column;\n  --cardsGap: 1rem;\n  gap: var(--cardsGap);\n  padding-bottom: var(--cardsGap);\n}\n.olcards li {\n  counter-increment: cardCount;\n  display: flex;\n  color: white;\n  --labelOffset: 1rem;\n  --arrowClipSize: 1.5rem;\n  margin-top: var(--labelOffset);\n}\n\n.olcards li::before {\n  content: counter(cardCount, decimal-leading-zero);\n  background: white;\n  color: var(--cardColor);\n  font-size: 2em;\n  font-weight: 700;\n  transform: translateY(calc(-1 * var(--labelOffset)));\n  margin-right: calc(-1 * var(--labelOffset));\n  z-index: 1;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding-inline: 0.5em;\n}\n\n.olcards li .content_pok {\n  background-color: var(--cardColor);\n  --inlinePadding: 1em;\n  --boxPadding: 0.5em;\n  display: grid;\n  padding: var(--boxPadding) calc(var(--inlinePadding) + var(--arrowClipSize))\n    var(--boxPadding) calc(var(--inlinePadding) + var(--labelOffset));\n  grid-template-areas:\n    \"icon title\"\n    \"icon text\";\n  gap: 0.25em 1em;\n  clip-path: polygon(\n    0 0,\n    calc(100% - var(--arrowClipSize)) 0,\n    100% 50%,\n    calc(100% - var(--arrowClipSize)) 100%,\n    calc(100% - var(--arrowClipSize)) calc(100% + var(--cardsGap)),\n    0 calc(100% + var(--cardsGap))\n  );\n  position: relative;\n}\n.olcards li .content_pok::before {\n  content: \"\";\n  position: absolute;\n  width: var(--labelOffset);\n  height: var(--labelOffset);\n  background: var(--cardColor);\n  left: 0;\n  bottom: 0;\n  clip-path: polygon(0 0, 100% 0, 0 100%);\n  filter: brightness(0.75);\n}\n.olcards li .content_pok::after {\n  content: \"\";\n  position: absolute;\n  height: var(--cardsGap);\n  width: var(--cardsGap);\n  background: linear-gradient(to right, rgba(0, 0, 0, 0.25), transparent 50%);\n  left: 0;\n  top: 100%;\n  margin-bottom: 12px;\n}\n.olcards li .icon {\n  grid-area: icon;\n  align-self: center;\n  font-size: 2em;\n}\n.olcards li .content_pok .title {\n  grid-area: title;\n  font-size: 1.25em;\n  \/* font-weight: 700; *\/\n}\n.olcards li .content_pok .text {\n  grid-area: text;\n  font-size: 12px;\n}\nnavpok a {\n  font-size: 11px;\n  color: #000;\n}\nnavpok li {\n margin-left: -36px;\n list-style: none;\n}\n\nbody {\n    margin: 0;\n    --wp--style--global--content-size: 100%;\n}\n@media screen and (max-width: 550px) {\n  .table-condensed>tbody>tr>td, .table-condensed>tbody>tr>th, .table-condensed>tfoot>tr>td, .table-condensed>tfoot>tr>th, .table-condensed>thead>tr>td, .table-condensed>thead>tr>th {\n    padding: 4px;\n}\n}\n\n.disabilitato:before {\n  background: #000;\n    content: attr(data-tg-off);\n    text-align: center;\n    line-height: 2em;\n    font-weight: bold;\n    color: #fff;\n    backface-visibility: hidden;\n    border-radius: 4px;\n    display: block;\n    min-width: 198px;\n    height: 2em;\n    cursor: pointer;\n}\n\n.disora:before {\nmin-width: 98px;\n;\n}\n\n\/* select *\/\n.box select {\n  background-color: #02c66f;\n  color: white;\n  padding: 6px;\n  border: none;\n  font-size: 20px;\n  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);\n  -webkit-appearance: button;\n  appearance: button;\n  outline: none;\n  border-radius: 5px;\n}\n\n.box::before {\n  width: 20%;\n  height: 100%;\n  text-align: center;\n  font-size: 28px;\n  line-height: 45px;\n  color: rgba(255, 255, 255, 0.5);\n  background-color: rgba(255, 255, 255, 0.1);\n  pointer-events: none;\n}\n\n.box:hover::before {\n  color: rgba(255, 255, 255, 0.6);\n  background-color: rgba(255, 255, 255, 0.2);\n}\n\n.box select option {\n  padding: 30px;\n}\n\ntooltip_pok {\n    position: relative;\n    display: inline-block;\n    cursor: pointer;\n    padding: 10px 20px;\n    font-size: 16px;\n    background-color: #007BFF;\n    color: white;\n    border: none;\n    border-radius: 4px;\n    transition: background-color 0.3s;\n}\n\n.tooltiptext {\n    visibility: hidden;\n    width: 150px;\n    background-color: #555;\n    color: #fff;\n    text-align: center;\n    border-radius: 6px;\n    padding: 5px 20px 5px 20px;\n    position: relative;\n    z-index: 99999999999;\n    top: -70px; \/* Position the tooltip above the button *\/\n    left: 33%;\n    margin-left: -75px; \/* Center the tooltip *\/\n    opacity: 0;\n    transition: opacity 0.3s;\n}\n\n.tooltiptext::after {\n    content: \"\";\n    position: relative;\n    top: 10px; \/* Arrow pointing down *\/\n    left: 50%;\n    margin-left: -5px\n}\n.centered {\n  position: fixed;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n}\n\n.sublock {\n  margin-left:12px;\n  display: inline;\n}\n@media (max-width: 967px) { \n  .sublock {\n  margin-left:0px;\n  display: block;\n  margin-top: 6px;\n}\n}\n.descsport {\n  font-size: 12px;\n}\n#sandbox-container {\n  width: 100%;\n    margin: 0 auto;\n} \n#divorari hr {\n  margin-top: 4px;\n  margin-bottom: 4px;\n}\n#divcampi hr {\n  margin-top: 4px;\n  margin-bottom: 4px;\n}\n.datepicker table tr td {border-radius: 0px;}\n  <\/style>\n  <input type=\"hidden\" value=\"\" id=\"idsport\">\n  <input type=\"hidden\" value=\"0\" id=\"ngiocatori\">\n  <input type=\"hidden\" value=\"\" id=\"dataprenotazione\">\n  <input type=\"hidden\" value=\"\" id=\"orariprenotazione\">\n  <input type=\"hidden\" value=\"\" id=\"campiprenotazione\">\n  <input type=\"hidden\" value=\"0\" id=\"prezzoprenotazione\">\n  <input type=\"hidden\" value=\"0\" id=\"prezzogiocatore\">\n  <input type=\"hidden\" value=\"0\" id=\"sportselezionato\">\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":965,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-962","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/prova.moliseweb.it\/index.php\/wp-json\/wp\/v2\/posts\/962","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prova.moliseweb.it\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prova.moliseweb.it\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prova.moliseweb.it\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prova.moliseweb.it\/index.php\/wp-json\/wp\/v2\/comments?post=962"}],"version-history":[{"count":1,"href":"https:\/\/prova.moliseweb.it\/index.php\/wp-json\/wp\/v2\/posts\/962\/revisions"}],"predecessor-version":[{"id":963,"href":"https:\/\/prova.moliseweb.it\/index.php\/wp-json\/wp\/v2\/posts\/962\/revisions\/963"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prova.moliseweb.it\/index.php\/wp-json\/wp\/v2\/media\/965"}],"wp:attachment":[{"href":"https:\/\/prova.moliseweb.it\/index.php\/wp-json\/wp\/v2\/media?parent=962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prova.moliseweb.it\/index.php\/wp-json\/wp\/v2\/categories?post=962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prova.moliseweb.it\/index.php\/wp-json\/wp\/v2\/tags?post=962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}