{"id":6101,"date":"2026-06-14T14:52:40","date_gmt":"2026-06-14T12:52:40","guid":{"rendered":"https:\/\/bookentolk.dk\/?post_type=listing&#038;p=6101"},"modified":"2026-07-03T09:02:33","modified_gmt":"2026-07-03T07:02:33","slug":"test-tolk","status":"publish","type":"listing","link":"https:\/\/bookentolk.dk\/en\/tolk\/test-tolk\/","title":{"rendered":"Test Tolk"},"content":{"rendered":"<p>Test Tolk<\/p>\n\n\n<div style=\"background: #f9f9f9; padding: 20px; border: 1px solid #e0e0e0; border-radius: 8px; margin-top: 20px; font-family: sans-serif;\">\n    <h3 style=\"margin-top:0; color:#333;\">Bestil overs\u00e6ttelse<\/h3>\n\n    <p style=\"font-size:14px; color:#666;\">\n        Indtast tekst her eller vedl\u00e6g venligst dokument til mail for at f\u00e5 et tilbud.\n    <\/p>\n    \n    <div id=\"tekstOmraade\">\n        <label style=\"font-size: 14px; font-weight: bold; color: #333; display: block; margin-bottom: 5px;\">\n            Tekst (valgfri hvis fil vedl\u00e6gges)\n        <\/label>\n        <textarea id=\"tolkeTekst\" rows=\"6\"\n            style=\"width:100%; padding:10px; border:1px solid #ccc; border-radius:4px; box-sizing: border-box;\"\n            placeholder=\"Inds\u00e6t eller skriv din tekst her...\"><\/textarea>\n    <\/div>\n\n    <div style=\"margin-top:15px; padding: 15px; background: #ffffff; border: 2px dashed #5b7a9c; border-radius: 6px;\">\n        <label for=\"filUpload\" style=\"font-size: 14px; font-weight: bold; color: #333; display: block; margin-bottom: 8px;\">\n            Vedl\u00e6g dokument til mail (valgfrit)\n        <\/label>\n        <input type=\"file\" id=\"filUpload\" style=\"font-size: 14px;\">\n        <p style=\"font-size: 11px; color:#888; margin:8px 0 0 0;\">\n            Husk at vedh\u00e6fte filen i din e-mail, n\u00e5r mailen \u00e5bner.\n        <\/p>\n    <\/div>\n\n    <div id=\"prisBoks\" style=\"margin-top:20px; font-size:16px; font-weight:bold; color:#333;\">\n        Antal tegn: <span id=\"tegnAntal\">0<\/span><br>\n        Antal linjer: <span id=\"linjeAntal\">0<\/span><br><br>\n\n        Pris ekskl. moms: <span id=\"prisEksklMoms\">0,00<\/span> kr.<br>\n        Moms (25%): <span id=\"momsBelob\">0,00<\/span> kr.<br>\n        Total inkl. moms: <span id=\"prisInklMoms\">0,00<\/span> kr.<br>\n\n        <p id=\"minPrisInfo\" style=\"font-size:12px; color:#999; display:none;\">\n            * Minimumspris 800 kr. ekskl. moms\n        <\/p>\n    <\/div>\n\n    <div id=\"filInfoBoks\" style=\"display:none; margin-top:15px; padding:10px; background:#eef5fc; border-left:4px solid #5b7a9c;\">\n        Fil valgt \u2013 pris sendes manuelt via e-mail.\n    <\/div>\n\n    <hr style=\"margin:20px 0; border-top:1px solid #ddd;\">\n\n    <div style=\"display:flex; align-items:center; gap:8px; margin-bottom:10px;\">\n        <input type=\"checkbox\" id=\"acceptFortrolighed\" style=\"width:14px; height:14px;\">\n        <label for=\"acceptFortrolighed\" style=\"font-size:14px;\">\n            Jeg godkender <a href=\"\/fortrolighedspolitik\">Fortrolighedspolitik<\/a>\n        <\/label>\n    <\/div>\n\n    <div style=\"display:flex; align-items:center; gap:8px; margin-bottom:20px;\">\n        <input type=\"checkbox\" id=\"acceptVilk\u00e5r\" style=\"width:14px; height:14px;\">\n        <label for=\"acceptVilk\u00e5r\" style=\"font-size:14px;\">\n            Jeg godkender <a href=\"\/vilkaar-og-betingelser\">Vilk\u00e5r og betingelser<\/a>\n        <\/label>\n    <\/div>\n\n    <button id=\"bookKnap\" disabled\n        style=\"padding:10px 28px; border:none; border-radius:30px; background:#ccc; color:#fff; font-weight:bold; cursor:not-allowed;\">\n        Send bestilling via e-mail\n    <\/button>\n<\/div>\n\n<script>\nconst tolkeTekst = document.getElementById('tolkeTekst');\nconst filUpload = document.getElementById('filUpload');\nconst acceptFortrolighed = document.getElementById('acceptFortrolighed');\nconst acceptVilk\u00e5r = document.getElementById('acceptVilk\u00e5r');\nconst bookKnap = document.getElementById('bookKnap');\n\nlet linjer = 0;\nlet tegn = 0;\n\nfunction update() {\n\n    let harFil = filUpload.files.length > 0;\n    let tekst = tolkeTekst.value;\n\n    document.getElementById('prisBoks').style.display = harFil ? \"none\" : \"block\";\n    document.getElementById('filInfoBoks').style.display = harFil ? \"block\" : \"none\";\n\n    if (!harFil) {\n\n        tegn = tekst.length;\n        linjer = Math.ceil(tegn \/ 60);\n\n        let pris = linjer * 16;\n        if (pris < 800) pris = 800;\n\n        let moms = pris * 0.25;\n\n        document.getElementById('tegnAntal').innerText = tegn;\n        document.getElementById('linjeAntal').innerText = linjer;\n        document.getElementById('prisEksklMoms').innerText = pris.toFixed(2);\n        document.getElementById('momsBelob').innerText = moms.toFixed(2);\n        document.getElementById('prisInklMoms').innerText = (pris + moms).toFixed(2);\n    }\n\n    validate();\n}\n\nfunction validate() {\n\n    let ok = (tolkeTekst.value.length > 0 || filUpload.files.length > 0)\n        && acceptFortrolighed.checked\n        && acceptVilk\u00e5r.checked;\n\n    bookKnap.disabled = !ok;\n\n    bookKnap.style.background = ok ? \"#5b7a9c\" : \"#ccc\";\n    bookKnap.style.cursor = ok ? \"pointer\" : \"not-allowed\";\n}\n\nbookKnap.addEventListener('click', function () {\n\n    let email = \"mh@BookEnTolk.dk\";\n    let subject = encodeURIComponent(\"Overs\u00e6ttelsesopgave\");\n\n    \/\/ \ud83d\udd25 STANDARD TEKST \u00c6NDRING HER\n    let body = \"Hej, her er teksten \/ fil til overs\u00e6ttelse.\\n\\n\";\n\n    if (filUpload.files.length > 0) {\n        body += \"Filnavn: \" + filUpload.files[0].name + \"\\n\";\n    } else {\n        body += \"Tekst:\\n\" + tolkeTekst.value + \"\\n\\n\";\n        body += \"Linjer: \" + linjer + \"\\n\";\n    }\n\n    body += \"\\nVenlig hilsen\";\n\n    window.location.href =\n        \"mailto:\" + email +\n        \"?subject=\" + subject +\n        \"&body=\" + encodeURIComponent(body);\n});\n\ntolkeTekst.addEventListener('input', update);\nfilUpload.addEventListener('change', update);\nacceptFortrolighed.addEventListener('change', validate);\nacceptVilk\u00e5r.addEventListener('change', validate);\n<\/script>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"listing_category":[110],"service_category":[220],"listing_feature":[],"region":[116],"class_list":["post-6101","listing","type-listing","status-publish","hentry","listing_category-dansk","service_category-bygge-og-anlaegsbranchen-construction-and-infrastructure-sector","region-hovedstaden"],"_links":{"self":[{"href":"https:\/\/bookentolk.dk\/en\/wp-json\/wp\/v2\/listing\/6101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bookentolk.dk\/en\/wp-json\/wp\/v2\/listing"}],"about":[{"href":"https:\/\/bookentolk.dk\/en\/wp-json\/wp\/v2\/types\/listing"}],"author":[{"embeddable":true,"href":"https:\/\/bookentolk.dk\/en\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/bookentolk.dk\/en\/wp-json\/wp\/v2\/comments?post=6101"}],"wp:attachment":[{"href":"https:\/\/bookentolk.dk\/en\/wp-json\/wp\/v2\/media?parent=6101"}],"wp:term":[{"taxonomy":"listing_category","embeddable":true,"href":"https:\/\/bookentolk.dk\/en\/wp-json\/wp\/v2\/listing_category?post=6101"},{"taxonomy":"service_category","embeddable":true,"href":"https:\/\/bookentolk.dk\/en\/wp-json\/wp\/v2\/service_category?post=6101"},{"taxonomy":"listing_feature","embeddable":true,"href":"https:\/\/bookentolk.dk\/en\/wp-json\/wp\/v2\/listing_feature?post=6101"},{"taxonomy":"region","embeddable":true,"href":"https:\/\/bookentolk.dk\/en\/wp-json\/wp\/v2\/region?post=6101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}