{"id":21581544,"url":"https://github.com/thoughtscript/carbon_offsets","last_synced_at":"2026-05-07T15:40:47.041Z","repository":{"id":235267393,"uuid":"790413931","full_name":"Thoughtscript/carbon_offsets","owner":"Thoughtscript","description":"Carbon Credits and Offsetting","archived":false,"fork":false,"pushed_at":"2025-05-21T02:24:06.000Z","size":7379,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T03:30:00.017Z","etag":null,"topics":["cleantech","greentech","iframe","javascript"],"latest_commit_sha":null,"homepage":"https://thoughtscript.github.io/carbon_offsets/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Thoughtscript.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-22T20:46:54.000Z","updated_at":"2025-05-21T02:24:10.000Z","dependencies_parsed_at":"2024-12-22T18:23:14.409Z","dependency_job_id":"1dc19104-62ee-48dc-b445-675268cfadf3","html_url":"https://github.com/Thoughtscript/carbon_offsets","commit_stats":null,"previous_names":["thoughtscript/carbon_offsets","thoughtscript/carbon_offsets_2024"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Thoughtscript/carbon_offsets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fcarbon_offsets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fcarbon_offsets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fcarbon_offsets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fcarbon_offsets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thoughtscript","download_url":"https://codeload.github.com/Thoughtscript/carbon_offsets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fcarbon_offsets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278717444,"owners_count":26033542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cleantech","greentech","iframe","javascript"],"created_at":"2024-11-24T14:12:52.679Z","updated_at":"2025-10-07T03:46:47.231Z","avatar_url":"https://github.com/Thoughtscript.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# carbon_offsets\r\n\r\n[![](https://img.shields.io/badge/mdn-iframe-orange.svg)](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe)\r\n\r\nJust a fun page to track and host my carbon offsetting/credits.\r\n\r\n\u003e **Update:** I was invited to apply with this to a Startup Incubator recently (to be further developed into a Company/Product) but declined due to a lack of direct experience in that industry. (And, not out of interest! Greenwashing is a major challenge to help derisk the Decarbonization Industry.) \r\n\r\nAlso, wanted to test the following:\r\n\r\n1. I was unaware that `iframes` could be modified *after being rendered*. (*That it doesn't rerender or reload the page, for instance.*) Curious about how the `iframe` and `pdfviewer` interact on the page. I use them [here](https://www.thoughtscript.io/blog/000000000093) and [elsewhere](https://www.thoughtscript.io/papers/000000000006) but the *content is fixed* and *doesn't change once rendered*. \r\n1. Identifying and playing with some limits to testing `iframes`. For instance, using the Browser-based **Web Inspector** on Desktop will fail to correctly render the changing `iframe src`. However, when deployed to a host, the changes appear correctly. \r\n   \r\n   i. This appears to be the case regardless of Browser/vendor.  \r\n   ii. Not sure if that has to do with some shared PDF rendering tools/engine?  \r\n   iii. (*I find PDF, Markdown, Parsing, and Text Rendering to be interesting topics - for instance: https://www.thoughtscript.io/ is a **Statically Generated Blog Framework***)\r\n\r\n2. To better document my Net-Zero Carbon journey! I've been slowly amassing some certificates and want to host them and prove I'm going Net-Zero Carbon.\r\n3. To better understand the differences in how browsers render injected PDF files. \r\n   \r\n   i. For instance, **Microsoft Edge** `Version 124.0.2478.51 (Official build) (64-bit)` renders the corresponding **DOM Element** as:\r\n\r\n    ```html\r\n    \u003cdiv id=\"document-container\"\u003e\r\n    \u003cdiv id=\"embed-border\" style=\"top: 41px; height: 3555px; width: 4796px;\"\u003e\u003c/div\u003e\r\n    \u003cembed id=\"plugin\" type=\"application/x-google-chrome-pdf\" original-url=\"file:///G:/_active/carbon_offsets/carbon_offsets/8fcad764-40cc-469d-9ac0-7103f0f9dfb9.pdf\" src=\"chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/f22cfdd5-f4f1-484c-8668-6add08531e70\" background-color=\"0xFFE6E6E6\" first-page-separator=\"4\" style=\"position: relative !important; top: 41px; min-height: calc(100% - 41px);\" javascript=\"allow\" stream_timestamp=\"7457857329\" embed-top-offset=\"41\" width=\"785\" height=\"612\" top-level-url=\"file:///G:/_active/carbon_offsets/index.html\" pdfviewrecoveryenabled=\"\" pdffreetextenabled=\"\" data-docheight=\"826\" data-docwidth=\"1066\"\u003e\u003c/div\u003e\r\n    ```\r\n\r\n   ii. In **Brave** `1.65.114` however:\r\n\r\n    ```html\r\n    \u003cpdf-viewer id=\"viewer\"\u003e\r\n        \u003c!-- ... --\u003e\r\n    \u003c/pdf-viewer\u003e\r\n    ```\r\n\r\n   iii. Surprised that these differ so much but yet display the same test rendering issues.\r\n \r\n## Tests\r\n\r\nPer point **2.** above:\r\n\r\n1. Desktop with Browser-based **Web Inspector** performs as expected - rendering each update correctly. The `iframe` appears as a `pdfviewer`:\r\n\r\n    ![](test/desktop-browser-web-inspector-all-good.png)\r\n\r\n1. Desktop with Browser-based **Web Inspector** doesn't perform as expected when emulating an `iPhone 14 Pro Max` - the clickable selections don't rerender correctly:\r\n![](test/desktop-mobile-emulator-web-inspector-not-rendering.png)\r\n\r\n1. However, the same deployment renders each change correctly on an actual `iPhone 14 Pro Max`:\r\n\r\n    ![](test/actual-mobile-deploy-working.jpg)\r\n\r\n\r\n\u003e Interesting limitation of Browser Web Inspectors and Desktop emulation.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtscript%2Fcarbon_offsets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoughtscript%2Fcarbon_offsets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtscript%2Fcarbon_offsets/lists"}