{"id":47,"date":"2024-03-05T20:48:49","date_gmt":"2024-03-05T20:48:49","guid":{"rendered":"http:\/\/fotounlimited.nl\/?page_id=47"},"modified":"2024-05-23T06:52:54","modified_gmt":"2024-05-23T06:52:54","slug":"foto-unlimited","status":"publish","type":"page","link":"https:\/\/fotounlimited.nl\/index.php\/foto-unlimited\/","title":{"rendered":"Foto Unlimited"},"content":{"rendered":"<p>[fotounlimited_fine_art]<\/p>\n\n\n        <div id=\"print-cost-calculator\">\n            <form id=\"print-cost-form\">\n                <label for=\"size-option\">Kies formaat:<\/label>\n                <select id=\"size-option\" name=\"size_option\" onchange=\"toggleSizeInput()\">\n                    <option value=\"custom\">Eigen formaat<\/option>\n                                            <option value=\"A4\">A4 (21 x 29.7 cm)<\/option>\n                                            <option value=\"A3\">A3 (29.7 x 42 cm)<\/option>\n                                            <option value=\"A2\">A2 (42 x 59.4 cm)<\/option>\n                                            <option value=\"A1\">A1 (59.4 x 84.1 cm)<\/option>\n                                            <option value=\"A0\">A0 (84.1 x 118.9 cm)<\/option>\n                                            <option value=\"Abri\">Abri (118.5 x 175 cm)<\/option>\n                                    <\/select><br>\n\n                <div id=\"custom-size-inputs\">\n                    <label for=\"length\">Lengte (cm):<\/label>\n                    <input type=\"number\" step=\"0.01\" id=\"length\" name=\"length\"><br>\n\n                    <label for=\"width\">Breedte (cm):<\/label>\n                    <input type=\"number\" step=\"0.01\" id=\"width\" name=\"width\"><br>\n                <\/div>\n\n                <label for=\"paper-type\">Fine Art Papier:<\/label>\n                <select id=\"paper-type\" name=\"paper_type\" required>\n                                            <option value=\"{&quot;type&quot;:&quot;Hahnemuhle - Fine Art Barytha&quot;,&quot;width&quot;:&quot;60&quot;,&quot;cost&quot;:&quot;0.16666&quot;}\">Hahnemuhle - Fine Art Barytha<\/option>\n                                            <option value=\"{&quot;type&quot;:&quot;Hahnemuhle - Photo Rag Barytha&quot;,&quot;width&quot;:&quot;60&quot;,&quot;cost&quot;:&quot;0.16666&quot;}\">Hahnemuhle - Photo Rag Barytha<\/option>\n                                            <option value=\"{&quot;type&quot;:&quot;Hahnemuhle - Photo Rag Bright White&quot;,&quot;width&quot;:&quot;60&quot;,&quot;cost&quot;:&quot;0.15583&quot;}\">Hahnemuhle - Photo Rag Bright White<\/option>\n                                    <\/select><br>\n\n                <button type=\"submit\">Bereken prijs<\/button>\n            <\/form>\n\n            <div id=\"print-cost-result\"><\/div>\n<!--            <div id=\"variables\"><\/div>-->\n        <\/div>\n        <script>\n            function toggleSizeInput() {\n                const sizeOption = document.getElementById('size-option').value;\n                const customSizeInputs = document.getElementById('custom-size-inputs');\n                const lengthInput = document.getElementById('length');\n                const widthInput = document.getElementById('width');\n                const standardSizes = JSON.parse('{\"A4\":{\"width\":21,\"length\":29.7},\"A3\":{\"width\":29.7,\"length\":42},\"A2\":{\"width\":42,\"length\":59.4},\"A1\":{\"width\":59.4,\"length\":84.1},\"A0\":{\"width\":84.1,\"length\":118.9},\"Abri\":{\"width\":118.5,\"length\":175}}');\n\n                if (sizeOption === 'custom') {\n                    customSizeInputs.style.display = 'block';\n                    lengthInput.value = '';\n                    widthInput.value = '';\n                } else {\n                    customSizeInputs.style.display = 'none';\n                    const selectedSize = standardSizes[sizeOption];\n                    lengthInput.value = selectedSize.length;\n                    widthInput.value = selectedSize.width;\n                }\n            }\n\n            document.getElementById('print-cost-form').addEventListener('submit', function(event) {\n                event.preventDefault();\n\n                const length = parseFloat(document.getElementById('length').value);\n                const width = parseFloat(document.getElementById('width').value);\n                const inkCost = parseFloat('0.00132');\n                const paper = JSON.parse(document.getElementById('paper-type').value);\n                const paperWidth = parseFloat(paper.width);\n                const paperCostPerCm = parseFloat(paper.cost);\n                const margin = parseFloat('100');\n\n                const area = length * width;\n                const inkTotalCost = area * inkCost;\n\n                let paperTotalCost = 0;\n                let totalCost = 0;\n                let totalCostWithTax = 0;\n                let cm = 0;\n\n                if (length > width) {\n                    if (length < paperWidth) {\n                        cm = width;\n                    } else if (length > paperWidth && width < paperWidth) {\n                        cm = width;\n                    }\n                } else {\n                    if (width < paperWidth) {\n                        cm = length;\n                    } else if (width > paperWidth && length < paperWidth) {\n                        cm = length;\n                    }\n                }\n\n                paperTotalCost = (cm * paperCostPerCm);\n                totalCost = (inkTotalCost + paperTotalCost) * (1 + margin \/ 100);\n                totalCostWithTax = totalCost * 1.21;\n\n                \/\/ document.getElementById('print-cost-result').innerHTML = `\n                \/\/     <p>Prijs (excl. btw): \u20ac${totalCost.toFixed(2)}<br>\n                \/\/     BTW: \u20ac${(totalCostWithTax - totalCost).toFixed(2)}<br>\n                \/\/     Prijs (incl. 21% btw): \u20ac${totalCostWithTax.toFixed(2)}<\/p>\n                \/\/ `;\n                \/\/ document.getElementById('print-cost-result').innerHTML = `\n                \/\/ <p>Prijs (excl. btw): \u20ac${totalCost.toFixed(2).replace(\".\", \",\")}<br>\n                \/\/ BTW: \u20ac${(totalCostWithTax - totalCost).toFixed(2).replace(\".\", \",\")}<br>\n                \/\/ Prijs (incl. 21% btw): \u20ac${totalCostWithTax.toFixed(2).replace(\".\", \",\")}<\/p>\n                \/\/ `;\n\n                const totalCostFormatted = totalCost.toLocaleString('nl-NL', { style: 'currency', currency: 'EUR' });\n                const taxFormatted = (totalCostWithTax - totalCost).toLocaleString('nl-NL', { style: 'currency', currency: 'EUR' });\n                const totalCostWithTaxFormatted = totalCostWithTax.toLocaleString('nl-NL', { style: 'currency', currency: 'EUR' });\n\n                document.getElementById('print-cost-result').innerHTML = `\n                    <p>Prijs (excl. btw): ${totalCostFormatted}<br>\n                    BTW: ${taxFormatted}<br>\n                    Prijs (incl. 21% btw): ${totalCostWithTaxFormatted}<\/p>\n                `;\n\n                document.getElementById('variables').innerHTML = `\n                      <pre>\n                      Length: ${length}\n                      Width: ${width}\n                      Ink Cost: ${inkCost}\n                      Paper: ${JSON.stringify(paper)}\n                      Paper Width: ${paperWidth}\n                      Paper Cost Per Cm: ${paperCostPerCm}\n                      Margin: ${margin}\n                      Area: ${area}\n                      Ink Total Cost: ${inkTotalCost}\n                      Paper Total Cost: ${paperTotalCost}\n                      Total Cost(excl. btw): ${totalCost.toFixed(2)}\n                      Total Cost(incl. 21% btw): ${totalCostWithTax.toFixed(2)}\n                      <\/pre>\n                `;\n            });\n\n            document.addEventListener('DOMContentLoaded', function() {\n                toggleSizeInput();\n            });\n        <\/script>\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":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"class_list":["post-47","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Foto Unlimited - Foto Unlimited<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fotounlimited.nl\/index.php\/foto-unlimited\/\" \/>\n<meta property=\"og:locale\" content=\"nl_NL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Foto Unlimited - Foto Unlimited\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fotounlimited.nl\/index.php\/foto-unlimited\/\" \/>\n<meta property=\"og:site_name\" content=\"Foto Unlimited\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-23T06:52:54+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fotounlimited.nl\/index.php\/foto-unlimited\/\",\"url\":\"https:\/\/fotounlimited.nl\/index.php\/foto-unlimited\/\",\"name\":\"Foto Unlimited - Foto Unlimited\",\"isPartOf\":{\"@id\":\"https:\/\/fotounlimited.nl\/#website\"},\"datePublished\":\"2024-03-05T20:48:49+00:00\",\"dateModified\":\"2024-05-23T06:52:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fotounlimited.nl\/index.php\/foto-unlimited\/#breadcrumb\"},\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fotounlimited.nl\/index.php\/foto-unlimited\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fotounlimited.nl\/index.php\/foto-unlimited\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fotounlimited.nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Foto Unlimited\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fotounlimited.nl\/#website\",\"url\":\"https:\/\/fotounlimited.nl\/\",\"name\":\"Foto Unlimited\",\"description\":\"fine art prints\",\"publisher\":{\"@id\":\"https:\/\/fotounlimited.nl\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fotounlimited.nl\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"nl-NL\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/fotounlimited.nl\/#organization\",\"name\":\"Foto Unlimited\",\"url\":\"https:\/\/fotounlimited.nl\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\/\/fotounlimited.nl\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/fotounlimited.nl\/wp-content\/uploads\/2024\/02\/logo_foto_unlimited_2023v2-scaled.png\",\"contentUrl\":\"https:\/\/fotounlimited.nl\/wp-content\/uploads\/2024\/02\/logo_foto_unlimited_2023v2-scaled.png\",\"width\":2560,\"height\":637,\"caption\":\"Foto Unlimited\"},\"image\":{\"@id\":\"https:\/\/fotounlimited.nl\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Foto Unlimited - Foto Unlimited","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:\/\/fotounlimited.nl\/index.php\/foto-unlimited\/","og_locale":"nl_NL","og_type":"article","og_title":"Foto Unlimited - Foto Unlimited","og_url":"https:\/\/fotounlimited.nl\/index.php\/foto-unlimited\/","og_site_name":"Foto Unlimited","article_modified_time":"2024-05-23T06:52:54+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/fotounlimited.nl\/index.php\/foto-unlimited\/","url":"https:\/\/fotounlimited.nl\/index.php\/foto-unlimited\/","name":"Foto Unlimited - Foto Unlimited","isPartOf":{"@id":"https:\/\/fotounlimited.nl\/#website"},"datePublished":"2024-03-05T20:48:49+00:00","dateModified":"2024-05-23T06:52:54+00:00","breadcrumb":{"@id":"https:\/\/fotounlimited.nl\/index.php\/foto-unlimited\/#breadcrumb"},"inLanguage":"nl-NL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fotounlimited.nl\/index.php\/foto-unlimited\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fotounlimited.nl\/index.php\/foto-unlimited\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fotounlimited.nl\/"},{"@type":"ListItem","position":2,"name":"Foto Unlimited"}]},{"@type":"WebSite","@id":"https:\/\/fotounlimited.nl\/#website","url":"https:\/\/fotounlimited.nl\/","name":"Foto Unlimited","description":"fine art prints","publisher":{"@id":"https:\/\/fotounlimited.nl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fotounlimited.nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"nl-NL"},{"@type":"Organization","@id":"https:\/\/fotounlimited.nl\/#organization","name":"Foto Unlimited","url":"https:\/\/fotounlimited.nl\/","logo":{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/fotounlimited.nl\/#\/schema\/logo\/image\/","url":"https:\/\/fotounlimited.nl\/wp-content\/uploads\/2024\/02\/logo_foto_unlimited_2023v2-scaled.png","contentUrl":"https:\/\/fotounlimited.nl\/wp-content\/uploads\/2024\/02\/logo_foto_unlimited_2023v2-scaled.png","width":2560,"height":637,"caption":"Foto Unlimited"},"image":{"@id":"https:\/\/fotounlimited.nl\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/fotounlimited.nl\/index.php\/wp-json\/wp\/v2\/pages\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fotounlimited.nl\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/fotounlimited.nl\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/fotounlimited.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fotounlimited.nl\/index.php\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":4,"href":"https:\/\/fotounlimited.nl\/index.php\/wp-json\/wp\/v2\/pages\/47\/revisions"}],"predecessor-version":[{"id":94,"href":"https:\/\/fotounlimited.nl\/index.php\/wp-json\/wp\/v2\/pages\/47\/revisions\/94"}],"wp:attachment":[{"href":"https:\/\/fotounlimited.nl\/index.php\/wp-json\/wp\/v2\/media?parent=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}