{"id":1591,"date":"2024-05-17T00:16:31","date_gmt":"2024-05-17T00:16:31","guid":{"rendered":"https:\/\/www.res-food.eu\/?page_id=1591"},"modified":"2024-06-17T19:01:41","modified_gmt":"2024-06-17T19:01:41","slug":"result-page","status":"publish","type":"page","link":"https:\/\/www.res-food.eu\/index.php\/result-page\/","title":{"rendered":"Result Page"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1591\" class=\"elementor elementor-1591\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-53906ca elementor-section-boxed elementor-section-height-default elementor-section-height-default wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no\" data-id=\"53906ca\" data-element_type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;gradient&quot;}\">\n\t\t\t\t\t\t\t<div class=\"elementor-background-overlay\"><\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-42d29a1\" data-id=\"42d29a1\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-59270f2 elementor-widget elementor-widget-heading\" data-id=\"59270f2\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">RESULT PAGE<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-34b7e27 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"34b7e27\" data-element_type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2fe7b1f elementor-widget elementor-widget-heading\" data-id=\"2fe7b1f\" data-element_type=\"widget\" id=\"score_title\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Your Score: <\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5aa1727 elementor-widget elementor-widget-text-editor\" data-id=\"5aa1727\" data-element_type=\"widget\" id=\"txt1\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Based on your answers, it looks like your business hasn&#8217;t really focused on stopping food waste or donating food. We suggest you read the Modules (Number of Module in last Module and link to the respective module) of the training material to learn more about this topic.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9ab913b elementor-widget elementor-widget-html\" data-id=\"9ab913b\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n\n.silka{\n    \n    background-color: #FFFFFF  !important;\n    border: 1px solid black;\n    border-radius: 6px;\n    padding: 5px;\n    color: black;\n    margin-right: 14px;\n}\n.silka a{\n    text-decoration: none !important;\n}\n\n\n<\/style>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a8a82a6 elementor-widget elementor-widget-html\" data-id=\"a8a82a6\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<script>\nvar associativeArray = {};\nassociativeArray[\"module2\"] = \"<span class='silka'><a>Module 2 (Content for Ho.Re.Ca. and Supermarkets)<\/a><\/span>\";\nassociativeArray[\"module3\"] = \"<span class='silka'><a>Module 3 (Content for Ho.Re.Ca. and Supermarkets)<\/a><\/span>\";\nassociativeArray[\"module4\"] = \"<span class='silka'><a>Module 4 (Content for Ho.Re.Ca. and Supermarkets)<\/a><\/span>\";\nassociativeArray[\"module4ab\"] = \"<span class='silka'><a>Module 4 (a&b) (Content for Ho.Re.Ca. and Supermarkets)<\/a><\/span>\";\nassociativeArray[\"module1\"] = \"<span class='silka'><a>Module 1 (Content for Ho.Re.Ca. and Supermarkets )<\/a><\/span>\";\nassociativeArray[\"module2ab\"] = \"<span class='silka'><a>Module 2 (a&b)  (Content for Ho.Re.Ca. and Supermarkets )<\/a><\/span>\";\nassociativeArray[\"course\"] = \"<span class='silka'><a>Training Course<\/a><\/span>\";\n\n\nconst queryString = window.location.search;\n\nconst urlParams = new URLSearchParams(queryString);\n\nvar q1 = urlParams.get('n1');\nvar q2 = urlParams.get('n2');\nvar q3 = urlParams.get('n3');\nvar q4 = urlParams.get('n4');\nvar q5 = urlParams.get('n5');\nvar q6 = urlParams.get('n6');\nvar q7 = urlParams.get('n7');\nvar q8 = urlParams.get('n8');\nvar q9 = urlParams.get('n9');\nvar q10 = urlParams.get('n10');\n\nvar sinolo = 0;\nsinolo += parseInt(q1);\nsinolo += parseInt(q2);\nsinolo += parseInt(q3);\nsinolo += parseInt(q4);\nsinolo += parseInt(q5);\nsinolo += parseInt(q6);\nsinolo += parseInt(q7);\nsinolo += parseInt(q8);\nsinolo += parseInt(q9);\nsinolo += parseInt(q10);\n\nvar textelement = document.querySelector(\"#txt1 p\");\nvar titlelement = document.querySelector(\"#score_title h2\");\n\ntitlelement.innerHTML += sinolo + \"\/10\";\n\nif(sinolo >= 8){\n    \n   textelement.innerHTML = \" Great job! It looks like your company is really focusing on reducing food waste and possibly donating food too. You\u2019re making a big difference! To learn even more about this topic, we suggest you read the training material we\u2019ve prepared  \"; \n    textelement.innerHTML += associativeArray[\"course\"];\n}\n\n\n\nelse{\n    \n\nif(sinolo >= 0 && sinolo <= 3){\n    textelement.innerHTML = \"Based on your answers, it looks like your business hasn't really focused on stopping food waste or donating food. We suggest you read the Modules  \";\n}\nelse if(sinolo >= 4 && sinolo <= 7){\n    textelement.innerHTML = \"Based on your answers, it seems your business is addressing food waste and possibly food donation and has started taking steps in this area. For more information on this topic, we suggest you check out the following Modules  \";\n    \n}\n\n\n\n\/\/OTOBRAZENIE SILOK NA COURSE\n\nif(q1 == 0 && associativeArray.hasOwnProperty(\"module2\")){\n    textelement.innerHTML += associativeArray[\"module2\"];\n    delete associativeArray[\"module2\"];\n}\n\nif(q2 == 0 && associativeArray.hasOwnProperty(\"module3\")){\n    textelement.innerHTML += associativeArray[\"module3\"];\n    delete associativeArray[\"module3\"];\n}\n\nif(q3 == 0 && associativeArray.hasOwnProperty(\"module4\")){\n    textelement.innerHTML += associativeArray[\"module4\"];\n    delete associativeArray[\"module4\"];\n}\n\nif(q4 == 0 && associativeArray.hasOwnProperty(\"module4ab\")){\n    textelement.innerHTML += associativeArray[\"module4ab\"];\n    delete associativeArray[\"module4ab\"];\n}\n\nif(q5 == 0 && associativeArray.hasOwnProperty(\"module1\")){\n    textelement.innerHTML += associativeArray[\"module1\"];\n    delete associativeArray[\"module1\"];\n}\n\nif(q5 == 0 && associativeArray.hasOwnProperty(\"module4ab\")){\n    textelement.innerHTML += associativeArray[\"module4ab\"];\n    delete associativeArray[\"module4ab\"];\n}\n\nif(q6 == 0 && associativeArray.hasOwnProperty(\"module4ab\")){\n    textelement.innerHTML += associativeArray[\"module4ab\"];\n    delete associativeArray[\"module4ab\"];\n}\n\nif(q7 == 0 && associativeArray.hasOwnProperty(\"module3\")){\n    textelement.innerHTML += associativeArray[\"module3\"];\n    delete associativeArray[\"module3\"];\n}\n\nif(q8 == 0 && associativeArray.hasOwnProperty(\"module1\")){\n    textelement.innerHTML += associativeArray[\"module1\"];\n    delete associativeArray[\"module1\"];\n}\n\nif(q8 == 0 && associativeArray.hasOwnProperty(\"module4ab\")){\n    textelement.innerHTML += associativeArray[\"module4ab\"];\n    delete associativeArray[\"module4ab\"];\n}\n\nif(q9 == 0 && associativeArray.hasOwnProperty(\"module2ab\")){\n    textelement.innerHTML += associativeArray[\"module2ab\"];\n    delete associativeArray[\"module2ab\"];\n}\n\nif(q10 == 0 && associativeArray.hasOwnProperty(\"module2\")){\n    textelement.innerHTML += associativeArray[\"module2\"];\n    delete associativeArray[\"module2\"];\n}\n\nif(q10 == 0 && associativeArray.hasOwnProperty(\"module4ab\")){\n    textelement.innerHTML += associativeArray[\"module4ab\"];\n    delete associativeArray[\"module4ab\"];\n}\n\n\nif(sinolo >= 0 && sinolo <= 3){\n    textelement.innerHTML += \"  of the training material to learn more about this topic.\";\n}\n\n\n}\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>RESULT PAGE Your Score: Based on your answers, it looks like your business hasn&#8217;t really focused on stopping food waste or donating food. We suggest you read the Modules (Number of Module in last Module and link to the respective module) of the training material to learn more about this topic.<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-site-content-layout":"full-width-container","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-1591","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.res-food.eu\/index.php\/wp-json\/wp\/v2\/pages\/1591","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.res-food.eu\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.res-food.eu\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.res-food.eu\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.res-food.eu\/index.php\/wp-json\/wp\/v2\/comments?post=1591"}],"version-history":[{"count":226,"href":"https:\/\/www.res-food.eu\/index.php\/wp-json\/wp\/v2\/pages\/1591\/revisions"}],"predecessor-version":[{"id":2455,"href":"https:\/\/www.res-food.eu\/index.php\/wp-json\/wp\/v2\/pages\/1591\/revisions\/2455"}],"wp:attachment":[{"href":"https:\/\/www.res-food.eu\/index.php\/wp-json\/wp\/v2\/media?parent=1591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}