{"id":88602,"date":"2025-01-14T23:47:25","date_gmt":"2025-01-14T23:47:25","guid":{"rendered":"https:\/\/logisketest.dk\/?page_id=88602"},"modified":"2025-01-30T20:49:09","modified_gmt":"2025-01-30T20:49:09","slug":"user","status":"publish","type":"page","link":"https:\/\/logisketest.dk\/index.php\/user\/","title":{"rendered":"Test Historik"},"content":{"rendered":"<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div><p style='text-align: center;font-style:italic;'>Du skal logge ind for at se dine resultater.<\/p><style>\n\/* Global styling for table and surrounding elements *\/\n#ays-quiz-user-score-page_wrapper {\n    font-family: 'Arial', sans-serif;\n    background-color: #f9f9f9;\n    padding: 20px;\n    border-radius: 8px;\n    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);\n}\n\n.dataTables_wrapper {\n    overflow: hidden;\n}\n\n.dataTables_length, .dataTables_filter {\n    display: inline-block;\n    margin-right: 20px;\n    margin-bottom: 20px;\n}\n\nlabel {\n    font-size: 14px;\n    font-weight: bold;\n    color: #333;\n}\n\nselect, input[type=\"search\"] {\n    border: 1px solid #ccc;\n    padding: 8px 12px;\n    border-radius: 4px;\n    margin-left: 10px;\n    font-size: 14px;\n    width: auto;\n}\n\ntable {\n    width: 100%;\n    margin-top: 20px;\n    border-collapse: collapse;\n}\n\nth, td {\n    padding: 12px;\n    text-align: left;\n    font-size: 14px;\n}\n\nth {\n    background-color: #4CAF50;\n    color: white;\n    font-weight: bold;\n}\n\ntd {\n    background-color: #ffffff;\n    border-bottom: 1px solid #ddd;\n}\n\ntr:nth-child(even) td {\n    background-color: #f2f2f2;\n}\n\nbutton.ays-quiz-user-sqore-pages-details {\n    background-color: #007BFF;\n    color: white;\n    border: none;\n    padding: 8px 12px;\n    border-radius: 4px;\n    cursor: pointer;\n}\n\nbutton.ays-quiz-user-sqore-pages-details:hover {\n    background-color: #0056b3;\n}\n\n\/* Pagination styling *\/\n.dataTables_paginate {\n    display: flex;\n    justify-content: center;\n    margin-top: 20px;\n}\n\n.paginate_button {\n    padding: 8px 12px;\n    margin: 0 5px;\n    font-size: 14px;\n    background-color: #f1f1f1;\n    border: 1px solid #ddd;\n    border-radius: 4px;\n    cursor: pointer;\n}\n\n.paginate_button:hover {\n    background-color: #007BFF;\n    color: white;\n}\n\n.paginate_button.current {\n    background-color: #007BFF;\n    color: white;\n}\n\n.paginate_button.disabled {\n    cursor: not-allowed;\n    background-color: #e9e9e9;\n}\n\n\/* Info bar styling *\/\n.dataTables_info {\n    font-size: 14px;\n    color: #333;\n    text-align: left;\n}\n<\/style>\n\n<script>\ndocument.addEventListener('DOMContentLoaded', function () {\n    \/\/ Find og overs\u00e6t de relevante tekster\n    const translations = {\n        \"Search:\": \"S\u00f8g:\",\n        \"Show\": \"Vis\",\n        \"Entries\": \"Resultater\",\n        \"Quiz Name\": \"Test\",\n        \"Duration\": \"Tidsforbrug\",\n        \"Details\": \"Detaljer\",\n        \"Minutes\": \"Minutter\",\n        \"Seconds\": \"Sekunder\",\n        \"Showing\": \"Viser\",\n        \"To\": \"til\",\n        \"Of\": \"af\"\n    };\n\n    \/\/ Funktions til at overs\u00e6tte tekst i labels og tabeller\n    function translateText(selector, oldText, newText) {\n        const elements = document.querySelectorAll(selector);\n        elements.forEach(element => {\n            if (element.textContent.trim() === oldText) {\n                element.textContent = newText;\n            }\n        });\n    }\n\n    \/\/ Overs\u00e6t \"Search\", \"Show\", \"Entries\" og tabeloverskrifter\n    translateText('label', 'Search:', translations['Search:']);\n    translateText('label', 'Show', translations['Show']);\n    translateText('label', 'Entries', translations['Entries']);\n    translateText('th', 'Quiz Name', translations['Quiz Name']);\n    translateText('th', 'Duration', translations['Duration']);\n    translateText('th', 'Details', translations['Details']);\n\n    \/\/ Find input label for search og overs\u00e6t\n    const searchLabel = document.querySelector('#ays-quiz-user-score-page_filter label');\n    if (searchLabel && searchLabel.textContent.trim() === \"Search:\") {\n        searchLabel.textContent = translations['Search:'];\n    }\n\n    \/\/ Overs\u00e6t \"Minutes\" og \"Seconds\" i Duration kolonnen\n    const durationCells = document.querySelectorAll('.ays-quiz-duration-column');\n    durationCells.forEach(cell => {\n        \/\/ Erstat \"Minutes\" og \"Seconds\" i duration kolonnen\n        cell.textContent = cell.textContent.replace(\/Minutes\/g, translations['Minutes']).replace(\/Seconds\/g, translations['Seconds']);\n    });\n\n    \/\/ Find og overs\u00e6t \"Show\" og \"Entries\" i label for pagination\n    const showLabel = document.querySelector('#ays-quiz-user-score-page_length label');\n    if (showLabel) {\n        showLabel.innerHTML = showLabel.innerHTML.replace('Show', translations['Show']).replace('entries', translations['Entries']);\n    }\n\n    \/\/ Find og overs\u00e6t \"Showing\" i dataTables_info\n    const infoLabel = document.querySelector('#ays-quiz-user-score-page_info');\n    if (infoLabel && infoLabel.textContent.includes('Showing')) {\n        infoLabel.textContent = infoLabel.textContent\n            .replace('Showing', translations['Showing'])\n            .replace('to', translations['To'])\n            .replace('of', translations['Of'])\n            .replace('entries', translations['Entries']);\n    }\n});\n<\/script>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"pmpro_default_level":"","inline_featured_image":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"class_list":["post-88602","page","type-page","status-publish","hentry","pmpro-has-access"],"aioseo_notices":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/logisketest.dk\/index.php\/wp-json\/wp\/v2\/pages\/88602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/logisketest.dk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/logisketest.dk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/logisketest.dk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/logisketest.dk\/index.php\/wp-json\/wp\/v2\/comments?post=88602"}],"version-history":[{"count":9,"href":"https:\/\/logisketest.dk\/index.php\/wp-json\/wp\/v2\/pages\/88602\/revisions"}],"predecessor-version":[{"id":90170,"href":"https:\/\/logisketest.dk\/index.php\/wp-json\/wp\/v2\/pages\/88602\/revisions\/90170"}],"wp:attachment":[{"href":"https:\/\/logisketest.dk\/index.php\/wp-json\/wp\/v2\/media?parent=88602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}