For fun, I'm trying to copy the source code of entire websites into an .html file and run it locally from my Desktop (not public). While mostly everything loads like it appears on the original website, I am having trouble displaying the actual content of interactive graphs.
For example, the NOAA's Global Monitoring Laboratory displays an interactive version of the Keeling's Curve, which features two graphs that can be manipulated from the bottom (timeframe), hovered over to display figures, etc.
It should look something like this:
But instead, my local file looks like this:
As you can see, the slope/plot itself is missing, as well as some of the other features below and to the side. What am I doing wrong? Obviously, the website's actual stylesheet has shortened file paths (e.g. /gmd/css/gmd.css
), so I made sure there were direct links in the local HTML file (e.g. https://esrl.noaa/gov/gmd/css/gmd.css
).
I copied the entire HTML code in the Elements tab of the Inspect Element console (everything after <!DOCTYPE html>
). Is there something else I should add to the local file?
Update: There was a long list of errors in the console, but only four actual lines of faulty code. Both the errors and the faulty code are shown below: