{"id":7495,"date":"2025-05-01T11:15:34","date_gmt":"2025-05-01T05:45:34","guid":{"rendered":"https:\/\/inventysresearch.com\/test\/?page_id=7495"},"modified":"2025-05-01T19:31:49","modified_gmt":"2025-05-01T14:01:49","slug":"carbon-footprint-report","status":"publish","type":"page","link":"https:\/\/inventysresearch.com\/test\/carbon-footprint-report\/","title":{"rendered":"Carbon Footprint Report"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"7495\" class=\"elementor elementor-7495\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-88b9694 e-con-full e-flex e-con e-parent\" data-id=\"88b9694\" data-element_type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-b3117ad e-con-full e-flex e-con e-child\" data-id=\"b3117ad\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-52d1f92 elementor-widget elementor-widget-html\" data-id=\"52d1f92\" 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<a href=\"#\" class=\"popmake-7514\">Download Report<\/a>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3ce347f elementor-widget__width-initial elementor-widget elementor-widget-html\" data-id=\"3ce347f\" 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<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Inventys Carbon Footprint Report Viewer<\/title>\n    <style>\n        \/* Reset and base styles *\/\n        * {\n            margin: 0;\n            padding: 0;\n            box-sizing: border-box;\n        }\n        \n        html, body {\n            height: 100%;\n            width: 100%;\n            overflow-x: hidden;\n        }\n        \n        body {\n            font-family: Arial, sans-serif;\n            background-color: #f5f5f5;\n        }\n        \n        \/* Container styling *\/\n        .pdf-container {\n            width: 100%;\n            height: 100vh;\n            min-height: 300px;\n            padding: 10px;\n            position: relative;\n            display: flex;\n            flex-direction: column;\n        }\n        \n        \/* PDF Embedder container *\/\n        .pdf-embedder-container {\n            width: 100%;\n            height: 100%;\n            background-color: #fff;\n            box-shadow: 0 2px 10px rgba(0,0,0,0.1);\n            overflow: auto;\n            position: relative;\n        }\n        \n        \/* Loading state *\/\n        .loading-message {\n            position: absolute;\n            top: 50%;\n            left: 50%;\n            transform: translate(-50%, -50%);\n            text-align: center;\n            color: #666;\n            z-index: 10;\n        }\n        \n        \/* Fallback container for mobile *\/\n        .pdf-fallback {\n            display: none;\n            flex-direction: column;\n            align-items: center;\n            justify-content: center;\n            text-align: center;\n            padding: 20px;\n            background-color: #fff;\n            box-shadow: 0 2px 10px rgba(0,0,0,0.1);\n            height: 100%;\n            z-index: 10;\n        }\n        \n        .pdf-fallback h2 {\n            margin-bottom: 15px;\n            color: #333;\n        }\n        \n        .pdf-fallback p {\n            margin-bottom: 25px;\n            color: #666;\n            max-width: 500px;\n        }\n        \n        .pdf-button {\n            display: inline-block;\n            padding: 12px 30px;\n            background-color: #1e5f8a;\n            color: white;\n            border-radius: 4px;\n            text-decoration: none;\n            font-weight: bold;\n            margin: 10px;\n            cursor: pointer;\n            border: none;\n            transition: background-color 0.3s;\n        }\n       \n        \n        .popmake-7514 {\n            display: inline-block;\n            padding: 12px 30px;\n            background-color: #1e5f8a;\n            color: white;\n            border-radius: 4px;\n            text-decoration: none;\n            font-weight: bold;\n            margin: 10px;\n            cursor: pointer;\n            border: none;\n            transition: background-color 0.3s;\n        }\n        \n        \/* Media queries for better mobile experience *\/\n        @media (max-width: 768px) {\n            .pdf-container {\n                height: 85vh;\n                padding: 5px;\n            }\n        }\n        .pdf-embedder-container iframe {\n    overflow: hidden;\n}\n\n    <\/style>\n<\/head>\n<body>\n    <div class=\"pdf-container\">\n        <!-- PDF Embedder container -->\n        <div id=\"pdfEmbedderContainer\" class=\"pdf-embedder-container\">\n            <!-- This is where the PDF Embedder shortcode output will be rendered -->\n            \n            \n            <!-- PDF Embedder shortcode will be processed by WordPress -->\n            <iframe \n    src=\"https:\/\/docs.google.com\/gview?url=https:\/\/inventysresearch.com\/test\/wp-content\/uploads\/2025\/05\/Inventys-Carbon-Footprint-Report-08.04.2025-signed.pdf&embedded=true\" \n    style=\"width:100%; height:1000px; transform: scaleX(1.15); transform-origin: center; display: block;\" \n    frameborder=\"0\">\n<\/iframe>\n\n\n        <\/div>\n        \n        <!-- Fallback for mobile devices -->\n        <div class=\"pdf-fallback\" id=\"pdfFallback\">\n            <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"80\" height=\"80\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#1e5f8a\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n                <path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"><\/path>\n                <polyline points=\"14 2 14 8 20 8\"><\/polyline>\n                <line x1=\"16\" y1=\"13\" x2=\"8\" y2=\"13\"><\/line>\n                <line x1=\"16\" y1=\"17\" x2=\"8\" y2=\"17\"><\/line>\n                <polyline points=\"10 9 9 9 8 9\"><\/polyline>\n            <\/svg>\n            <h2>Inventys Carbon Footprint Report<\/h2>\n            <p>The PDF cannot be embedded directly on this device. Please use one of the options below to view the report.<\/p>\n            <div>\n                <a href=\"https:\/\/inventysresearch.com\/test\/wp-content\/uploads\/2025\/05\/Inventys-Carbon-Footprint-Report-08.04.2025-signed.pdf\" class=\"pdf-button\" target=\"_blank\">View PDF<\/a>\n                <a href=\"#\" class=\"popmake-7514\">Download PDF<\/a>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <script>\n        document.addEventListener('DOMContentLoaded', function() {\n            \/\/ Prevent context menu on the entire document\n            document.addEventListener('contextmenu', function(e) {\n                e.preventDefault();\n                return false;\n            }, true);\n            \n            \/\/ Block keyboard shortcuts related to print and save\n            document.addEventListener('keydown', function(e) {\n                \/\/ Ctrl+S or Ctrl+P or Ctrl+Shift+S\n                if ((e.ctrlKey || e.metaKey) && (e.key === 's' || e.key === 'p' || e.key === 'S' || e.key === 'P')) {\n                    e.preventDefault();\n                    return false;\n                }\n            }, true);\n            \n            const loadingMessage = document.getElementById('loadingMessage');\n            const pdfFallback = document.getElementById('pdfFallback');\n            const pdfEmbedderContainer = document.getElementById('pdfEmbedderContainer');\n            \n            \/\/ Function to detect mobile devices\n            function isMobileDevice() {\n                return \/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini\/i.test(navigator.userAgent) || window.innerWidth <= 768;\n            }\n            \n            \/\/ Check if we're on a mobile device\n            if (isMobileDevice()) {\n                \/\/ Show fallback UI for mobile\n                pdfEmbedderContainer.style.display = 'none';\n                pdfFallback.style.display = 'flex';\n            } else {\n                \/\/ Desktop behavior with PDF Embedder\n                pdfFallback.style.display = 'none';\n                \n                \/\/ Hide loading message after a short delay\n                \/\/ (PDF Embedder will handle the actual loading)\n                setTimeout(() => {\n                    loadingMessage.style.display = 'none';\n                }, 1500);\n            }\n        });\n    <\/script>\n<\/body>\n<\/html>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4ea5952 elementor-widget elementor-widget-html\" data-id=\"4ea5952\" 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\n<script>\njQuery(document).ready(function($) {\n\n    if (window.location.href.endsWith('?')) {\n\n        downloadPDF();\n    }\n    \n \n    function downloadPDF() {\n        const pdfUrl = 'https:\/\/inventysresearch.com\/test\/wp-content\/uploads\/2025\/05\/Inventys-Carbon-Footprint-Report-08.04.2025-signed.pdf';\n\n        const link = document.createElement('a');\n        link.href = pdfUrl;\n        link.download = 'Inventys-Carbon-Footprint-Report.pdf';\n        document.body.appendChild(link);\n        link.click();\n        document.body.removeChild(link);\n    }\n});\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Download Report Inventys Carbon Footprint Report Viewer Inventys Carbon Footprint Report The PDF cannot be embedded directly on this device. Please use one of the options below to view the report. View PDF Download PDF<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-7495","page","type-page","status-publish","hentry"],"acf":[],"featured_image_src":null,"featured_image_src_square":null,"_links":{"self":[{"href":"https:\/\/inventysresearch.com\/test\/wp-json\/wp\/v2\/pages\/7495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/inventysresearch.com\/test\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/inventysresearch.com\/test\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/inventysresearch.com\/test\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/inventysresearch.com\/test\/wp-json\/wp\/v2\/comments?post=7495"}],"version-history":[{"count":186,"href":"https:\/\/inventysresearch.com\/test\/wp-json\/wp\/v2\/pages\/7495\/revisions"}],"predecessor-version":[{"id":7711,"href":"https:\/\/inventysresearch.com\/test\/wp-json\/wp\/v2\/pages\/7495\/revisions\/7711"}],"wp:attachment":[{"href":"https:\/\/inventysresearch.com\/test\/wp-json\/wp\/v2\/media?parent=7495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}