{"id":2738,"date":"2024-06-19T00:07:29","date_gmt":"2024-06-19T00:07:29","guid":{"rendered":"https:\/\/www.res-food.eu\/?page_id=2738"},"modified":"2024-06-19T00:09:49","modified_gmt":"2024-06-19T00:09:49","slug":"result-page-supermarket","status":"publish","type":"page","link":"https:\/\/www.res-food.eu\/index.php\/result-page-supermarket\/","title":{"rendered":"Result Page &#8211; Supermarket"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"2738\" class=\"elementor elementor-2738\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-220de1c 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=\"220de1c\" 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-86059a3\" data-id=\"86059a3\" 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-6eafcd9 elementor-widget elementor-widget-heading\" data-id=\"6eafcd9\" 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-5662517 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"5662517\" 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-7acefa8 elementor-widget elementor-widget-heading\" data-id=\"7acefa8\" 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\">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-33fb063 elementor-widget elementor-widget-html\" data-id=\"33fb063\" 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 src=\"https:\/\/cdn.plot.ly\/plotly-2.27.0.min.js\" charset=\"utf-8\"><\/script>\n\n<div id='myDiv'><\/div>\n\n<script>\n\nconst queryString = window.location.search;\n\nconst urlParams = new URLSearchParams(queryString);\n\nvar q1 = urlParams.get('q1');\nvar q2 = urlParams.get('q2');\nvar q3 = urlParams.get('q3');\nvar q4 = urlParams.get('q4');\nvar q5 = urlParams.get('q5');\nvar q6 = urlParams.get('q6');\nvar q7 = urlParams.get('q7');\nvar q8 = urlParams.get('q8');\nvar q9 = urlParams.get('q9');\nvar q10 = urlParams.get('q10');\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\n\n\n\/\/SHOW GRAPHIC\nvar data = [\n  {\n    type: \"indicator\",\n    mode: \"number+gauge\",\n    gauge: { shape: \"bullet\" },\n    value: sinolo,\n    domain: { x: [0, 1], y: [0, 1] },\n\n    title: { text: \"kg\/m2\", font: { size: 16 }, x: 0.5, y: 0.9  }\n  }\n];\n\nvar layout = { \n    width: 850,        \/\/ \u0428\u0438\u0440\u0438\u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0430\n    height: 250,       \/\/ \u0412\u044b\u0441\u043e\u0442\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0430\n\n};\n\nPlotly.newPlot('myDiv', data, layout);\n\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-63c2b25 elementor-widget elementor-widget-text-editor\" data-id=\"63c2b25\" data-element_type=\"widget\" id=\"textishe\" 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>lalala<\/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-567f000 elementor-widget elementor-widget-html\" data-id=\"567f000\" 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\ndiv.user-select-none{\n    \n    margin: auto !important;\n    \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-343e1a0 elementor-widget elementor-widget-html\" data-id=\"343e1a0\" 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 size = urlParams.get('indicator');\n\nvar lowMax = 0;\nvar mediumMax = 0;\n\n\n\nif(size == \"small\"){\n    \n    lowMax = 115; \n    mediumMax = 145;\n}\nelse if(size == \"medium\"){\n    \n    lowMax = 300; \n    mediumMax = 400;\n    \n}\nelse if(size == \"large\"){\n    \n    \n    lowMax = 1000; \n    mediumMax = 1500;\n}\n\n\n\n\n\n\ndocument.addEventListener('DOMContentLoaded', function() {\n    \n\nvar keimenaki = document.querySelector(\"#textishe p\");\n\nif(sinolo >= 0  && sinolo <= lowMax){\n    \n    keimenaki.innerHTML = \"Congratulations! It seems that you have taken the issue of food waste seriously and are managing your orders correctly! If you would like to learn more about this topic, you can go <a href='https:\/\/www.res-food.eu\/index.php\/online-training-sm-horeca\/' target='_blank'>here!<\/a>\";\n}\nelse if(sinolo > lowMax  && sinolo <= mediumMax){\n    \n    keimenaki.innerHTML = \"The food waste of your business is at a moderate level but can be improved. Go  <a href='https:\/\/www.res-food.eu\/index.php\/online-training-sm-horeca\/' target='_blank'>here<\/a> to explore ways that can help you improve!\";\n}\nelse if(sinolo > mediumMax){\n    \n    \n    keimenaki.innerHTML = \"This is an excessive amount according to the size of your business! We strongly recommend that you go at these two parts of the project (<a href='https:\/\/www.res-food.eu\/index.php\/training-courses\/' target='_blank'>Course<\/a> & <a href='https:\/\/www.res-food.eu\/index.php\/pr1-methodological-framework\/' target='_blank'>framework<\/a>) to find ways to improve!\";\n}\n\n\n});\n\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: lalala<\/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-2738","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.res-food.eu\/index.php\/wp-json\/wp\/v2\/pages\/2738","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=2738"}],"version-history":[{"count":13,"href":"https:\/\/www.res-food.eu\/index.php\/wp-json\/wp\/v2\/pages\/2738\/revisions"}],"predecessor-version":[{"id":2751,"href":"https:\/\/www.res-food.eu\/index.php\/wp-json\/wp\/v2\/pages\/2738\/revisions\/2751"}],"wp:attachment":[{"href":"https:\/\/www.res-food.eu\/index.php\/wp-json\/wp\/v2\/media?parent=2738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}