{"id":4686,"date":"2018-12-13T18:34:49","date_gmt":"2018-12-13T18:34:49","guid":{"rendered":"http:\/\/www.palmaequipmentrental.com\/request-quote\/"},"modified":"2019-01-09T10:32:51","modified_gmt":"2019-01-09T10:32:51","slug":"request-quote","status":"publish","type":"page","link":"https:\/\/palmaequipmentrental.com\/de\/request-quote\/","title":{"rendered":"Angebot anfordern"},"content":{"rendered":"\n<div class=\"woocommerce ywraq-wrapper\">\n\t\t\t<div id=\"yith-ywraq-message\"><div class=\"ywraq-question-message\">\n\t<\/div>\n<\/div>\n\t\t\n\t\t\t\t<div class=\"ywraq-form-table-wrapper \">\n\t\t\t<p class=\"ywraq_list_empty_message\">Deine Liste ist leer. Bitte f\u00fcge der Liste ein oder mehrere Produkte hinzu um ein Angebot einzuholen<p><p class=\"return-to-shop\"><a class=\"button wc-backward\" href=\"https:\/\/www.palmaequipmentrental.com\/\">Zur\u00fcckkehren<\/a><\/p>\n<script>\n\n\/*\ndocument.getElementById(\"send_copy\").change(function(){\n  if(this.attr('checked')==\"checked\"){\n\tdocument.getElementById(\"copy\").value = \"1\";\n  }else{\n\t(\"#copy\").value = \"0\";\n  }\n});\n\n*\/\n\/*\nvar qtyplus = document.getElementsByClassName('qty-plus');\nvar testDivs = Array.prototype.filter.call(qtyplus, function(elem){\n    return elem.nodeName === 'DIV';\n\tvar elem=document.querySelector(this).parent().parent().querySelector('.input-text.qty.text');\n\t  var val = parseInt(elem.value); \n\t  elem.val(val + 1); \n\t  console.log(elem.value);\n*\/\n\/*\nvar divs = document.querySelectorAll('.qty-plus').forEach(function(el) {\n\tel.addEventListener('click', \n\t\tfunction (event) {\n\t\t\tconsole.log(event.elem);\n\t\t\tlet elem=this.parent().parent().find('.input-text.qty.text');\n\t\t\tlet val = parseInt(elem.value); \n\t\t\telem.val(val + 1); \n\t\t\tconsole.log(elem.value);\n        }, \n        false);\n})\n\n\n\n\nNodeList.prototype.forEach = Array.prototype.forEach;\nvar qtyplus = document.querySelectorAll('a.qty-plus');\nfor (const button of qtyplus) {\n  button.addEventListener('click', () => {\n    console.log(\"for .. of worked\");\n  });\n}\n*\/\n\n\n\n\n\/*\nvar a = document.querySelectorAll(\"a\");\n\nfor (var i = 0; i < a.length; i++) {\n\tconsole.log(a[i]);\n  a[i].addEventListener(\"click\", function() {\n\t\/\/event.preventDefault();\n\tconsole.log(\"click\");\n\tconsole.log(event);\n\tconsole.log(this);\n\tvar qtyField=this.parentElement.parentElement;\n\tconsole.log( Array.isArray(qtyField));\n\n\tif(!Array.isArray(qtyField)) return;\n\n\tlet elem=this.parentElement.parentElement.find(field => field.tagName === 'input');\n\tconsole.log(elem);\n\tlet val = parseInt(elem.value); \n\telem.val(val + 1); \n\tconsole.log(elem.value);\n  });\n}\n*\/\n\n\n\/*\n\nvar qtyplus = document.querySelectorAll('a.qty-plus');\n\/\/qtyplus.forEach((button) => {\n[].forEach.call(qtyplus, function(button) {\nconsole.log(qtyplus);\n\tbutton.addEventListener('click', \n\t\tfunction (event) {\n\t\t\tconsole.log(event);\n\t\t\tconsole.log(this);\n\t\t\tlet elem=this.parentElement.parentElement.find(field => field.tagName === 'input');\n\t\t\tconsole.log(elem);\n\t\t\tlet val = parseInt(elem.value); \n\t\t\telem.val(val + 1); \n\t\t\tconsole.log(elem.value);\n        }, \n        false);\n\t\n});\n*\/\n\/*\n  document.getElementsByClassName(\"qty-minus\").addEventListener('click', (e) => { \n\t  let elem=this.parent().parent().find('.input-text.qty.text');\n\t  let val = parseInt(elem.value); \n\t  if (val !== 0) { elem.val(val - 1); } \n\t  if (val == 0) { elem.value = 1; } \n  });\n  \n  $( \".rental_days .quantity\" ).click(function(){\n\t  let input=this.find(\"input\");\n\t  let total=parseFloat(document.getElementById(\"pretotals\").innerText);\n\t  let result=total*input.value;\n\t  document.getElementById(\"megatotals\").innerText = result;\n\t  document.getElementById(\"totals\").value = result;\n\t  document.getElementById(\"days\").val(input.value);\n  });\n  \n*\/\n\n\n\/\/ Increase\t\t\t\njQuery(document).on('click', '.qty-plus', function(e) {\n\te.preventDefault();\n\tvar quantityInput = jQuery(this).parents('.quantity').find('input.qty'),\n\t\tstep = parseInt(quantityInput.attr('step'), 10),\n\t\tnewValue = parseInt(quantityInput.val(), 10) + step,\n\t\tmaxValue = parseInt(quantityInput.attr('max'), 10);\n\t\t\n\tif (!maxValue) {\n\t\tmaxValue = 9999999999;\n\t}\t\n\n\tif ( newValue <= maxValue ) {\n\t\tquantityInput.val(newValue);\n\t\t\/\/quantityInput.change();\n\t}\n\t\n\tupdateDays();\n});\n\n\/\/ Decrease\njQuery(document).on('click', '.qty-minus', function(e) {\n\te.preventDefault();\n\tvar quantityInput = jQuery(this).parents('.quantity').find('input.qty'),\n\t\tstep = parseInt(quantityInput.attr('step'), 10),\n\t\tnewValue = parseInt(quantityInput.val(), 10) - step,\n\t\tminValue = parseInt(quantityInput.attr('min'), 10);\n\n\tif (!minValue) {\n\t\tminValue = 1;\n\t}\n\n\tif ( newValue >= minValue ) {\n\t\tquantityInput.val(newValue);\n\t\t\/\/quantityInput.change();\n\t}\n\n\tupdateDays();\n});\n\nfunction updateDays(){\t\n\tvar input=$( \".rental_days .quantity\" ).find(\"input\");\n\tvar total=parseFloat($(\"#pretotals\").text());\n\tvar result=total*input.val();\n\t$(\"#megatotals\").text(result);\n\t$(\"#totals\").val(result);\n\t$(\"#days\").val(input.val());\n\tCookies.set('rental_days', input.val());\n}\n\nfunction qtyButtons(){\n\t\/\/$(\".qty-plus\").unbind('on');\n\t\/\/$(\".qty-plus\").unbind('click');\n\t\n\t\t\t\n\t\t\t\n\t\t\t\/*\n\t\t\t$('.qty-plus').on('click', function(e) { \n\t\te.preventDefault();\n\t\tvar elem=$(this).parent().parent().find('.input-text.qty.text');\n\t\tvar val = parseInt(elem.val()); \n\t\telem.val(val + 1); \n\t}); \n\t\n\t$('.qty-minus').on('click', function(e) { \n\t\te.preventDefault();\n\t\tvar elem=$(this).parent().parent().find('.input-text.qty.text');\n\t\tvar val = parseInt(elem.val()); \n\t\tif (val !== 0) { elem.val(val - 1); } \n\t\tif (val == 0) { elem.val(1); } \n\t});\n\t*\/\n\n\t\/*\n\t$( \".qty-minus\" ).click(function(e){\n\t\te.preventDefault();\n\t\tvar elem=$(this).parent().parent().find('.input-text.qty.text');\n\t\tvar val = parseInt(elem.val()); \n\t\tif (val !== 0) { elem.val(val - 1); } \n\t\tif (val == 0) { elem.val(1); } \n\t});*\/\n}\n\n\t(function($) {\njQuery(document).ready(function( $ ) {\n\n  $( \"#send_copy\" ).change(function(){\n\tif($(this).attr('checked')==\"checked\"){\n\t  $(\"#copy\").val(\"1\"); \n\t}else{\n\t  (\"#copy\").val(\"0\");\n\t}\n  });\n  \n\t$( \".rental_days .quantity\" ).click(function(){\n\t\tvar input=$(this).find(\"input\");\n\t\tvar total=parseFloat($(\"#pretotals\").text());\n\t\tvar result=total*input.val();\n\t\t$(\"#megatotals\").text(result);\n\t\t$(\"#totals\").val(result);\n\t\t$(\"#days\").val(input.val());\n\t});\n\n\t$(\"#days\").val(Cookies.get('rental_days'));\n\t\/\/qtyButtons();\n\t\/\/setTimeout(qtyButtons, 1000);\n\t\/\/setTimeout(qtyButtons, 1500);\n\t\/\/setTimeout(qtyButtons, 2000);\n\t\/\/setTimeout(qtyButtons, 2500);\n});\n\n})(jQuery);\n\n\nfunction addCommas(nStr)\n{\n\tnStr += '';\n\tx = nStr.split('.');\n\tx1 = x[0];\n\tx2 = x.length > 1 ? '.' + x[1] : '';\n\tvar rgx = \/(\\d+)(\\d{3})\/;\n\twhile (rgx.test(x1)) {\n\t\tx1 = x1.replace(rgx, '$1' + ',' + '$2');\n\t}\n\treturn x1 + x2;\n}\n<\/script>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"yith-ywraq-mail-form-wrapper\">\n\t<h3><\/h3>\n\t<form id=\"yith-ywraq-default-form\" name=\"yith-ywraq-default-form\"\n\t\taction=\"https:\/\/palmaequipmentrental.com\/de\/request-quote\/\" method=\"post\"\n\t\tenctype=\"multipart\/form-data\">\n\t\t<input type=\"hidden\" id=\"yith-ywraq-default-form-sent\" name=\"yith-ywraq-default-form-sent\" value=\"1\">\n\n\t\t\t\t<p class=\"form-row days form-row-wide\" id=\"days_field\" data-priority=\"\"><label for=\"days\" class=\"\">Quantity of days required&nbsp;<span class=\"optional\">(optional)<\/span><\/label><span class=\"woocommerce-input-wrapper\"><input type=\"text\" class=\"input-text \" name=\"days\" id=\"days\" placeholder=\"1\"  value=\"\"  \/><\/span><\/p><p class=\"form-row validate-required\" id=\"first_name_field\" data-priority=\"\"><label for=\"first_name\" class=\"required_field\">Vorname&nbsp;<span class=\"required\" aria-hidden=\"true\">*<\/span><\/label><span class=\"woocommerce-input-wrapper\"><input type=\"text\" class=\"input-text \" name=\"first_name\" id=\"first_name\" placeholder=\"\"  value=\"\" aria-required=\"true\" \/><\/span><\/p><p class=\"form-row validate-required\" id=\"last_name_field\" data-priority=\"\"><label for=\"last_name\" class=\"required_field\">Nachname&nbsp;<span class=\"required\" aria-hidden=\"true\">*<\/span><\/label><span class=\"woocommerce-input-wrapper\"><input type=\"text\" class=\"input-text \" name=\"last_name\" id=\"last_name\" placeholder=\"\"  value=\"\" aria-required=\"true\" \/><\/span><\/p><p class=\"form-row validate-required validate-email\" id=\"email_field\" data-priority=\"\"><label for=\"email\" class=\"required_field\">Email&nbsp;<span class=\"required\" aria-hidden=\"true\">*<\/span><\/label><span class=\"woocommerce-input-wrapper\"><input type=\"email\" class=\"input-text \" name=\"email\" id=\"email\" placeholder=\"\"  value=\"\" aria-required=\"true\" \/><\/span><\/p><p class=\"form-row \" id=\"message_field\" data-priority=\"\"><label for=\"message\" class=\"\">Nachricht&nbsp;<span class=\"optional\">(optional)<\/span><\/label><span class=\"woocommerce-input-wrapper\"><textarea name=\"message\" class=\"input-text \" id=\"message\" placeholder=\"\"  rows=\"2\" cols=\"5\"><\/textarea><\/span><\/p><p class=\"form-row form-row-wide validate-required\" id=\"aceptance_field\">\n\t\t\t<span\n\t\t\t\tclass=\"ywraq_acceptance_description\">Bitte beachten Sie, dass diese Liste nur zu Ihrer Information dient und keinen endg\u00fcltigen Preis oder eine Reservierung der Ausr\u00fcstung darstellt. Die Preise schlie\u00dfen Versicherung und IVA (falls zutreffend) aus. Senden Sie uns diese Liste zusammen mit den Daten Ihres Projekts und wir senden Ihnen gerne ein offizielles Angebot zu. Ihre personenbezogenen Daten werden zur Bearbeitung Ihrer Anfrage und f\u00fcr andere Zwecke, wie in unserer <a href=\"https:\/\/www.palmaequipmentrental.com\/de\/privacy-policy\/\">Datenschutzrichtlinie <\/a>beschrieben, verwendet.<\/span>\n\t\t\t<input type=\"checkbox\" name=\"aceptance\"\n\t\t\t\tid=\"aceptance\" required>\n\t\t\t<label for=\"aceptance\"\n\t\t\t\tclass=\"ywraq_acceptance_label acceptance required_field\">\n\t\t\t\tIch habe die Nutzungsbedingungen der Website gelesen und stimme ihnen zu. <abbr class=\"required\" title=\"erforderlich\">*<\/abbr><\/label>\n\t\t\t<\/p>\n\t\t\n\t\t\n\t\t\n\t\t<p class=\"form-row form-row-wide raq-send-request-row\">\n\t\t\t<input type=\"hidden\" id=\"ywraq-mail-wpnonce\" name=\"ywraq_mail_wpnonce\"\n\t\t\t\tvalue=\"284911c0d8\">\n\t\t\t<input class=\"button raq-send-request last\" type=\"submit\"\n\t\t\t\tvalue=\"Anfrage senden\">\n\t\t<\/p>\n\n\t\t\t\t\t<input type=\"hidden\" class=\"lang_param\" name=\"lang\" value=\"de\"\/>\n\t\t\n\t\t\t<\/form>\n<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t<\/div>\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-4686","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/palmaequipmentrental.com\/de\/wp-json\/wp\/v2\/pages\/4686","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/palmaequipmentrental.com\/de\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/palmaequipmentrental.com\/de\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/palmaequipmentrental.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/palmaequipmentrental.com\/de\/wp-json\/wp\/v2\/comments?post=4686"}],"version-history":[{"count":1,"href":"https:\/\/palmaequipmentrental.com\/de\/wp-json\/wp\/v2\/pages\/4686\/revisions"}],"predecessor-version":[{"id":4689,"href":"https:\/\/palmaequipmentrental.com\/de\/wp-json\/wp\/v2\/pages\/4686\/revisions\/4689"}],"wp:attachment":[{"href":"https:\/\/palmaequipmentrental.com\/de\/wp-json\/wp\/v2\/media?parent=4686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}