Despite being 9 years old, the javascript and css still worked. That's the advantage of javascript and css - backwards compatibility.
The site is written in javascript and css. I didn't have to deal with complicated build processes and updating libraries to start and update the site. The 3rd party javascript libraries and css were in the project directories. Sometimes using a simple solution pays off in the long term.
I wanted to add a PDF viewer to Eleventy using PDF.js.
At first, I installed PDF.js from npm. However, the npm version only works on Firefox and Chrome. To get a version that works on Safari, I needed to use the legacy build version.
I cloned PDF.js repo and installed dependencies.
git clone https://github.com/mozilla/pdf.js.git
cd pdf.js
npminstall
Then I built the legacy version.
npx gulp generic-legacy
This generated pdf.js and pdf.worker.js in the build/generic-legacy/build/ directory. I copied pdf.js and pdf.worker.js to /public/lib/pdfjs/generic-legacy/build.
I wanted to find out how to add Leaflet maps to Eleventy, and I came across this post from Mike Neumegen at cloudcannon. The code is kinda outdated, so I had to update some things.
First you create in locations.json file in the _data folder. locations.json is an array of locations
[{"name":"Kentucky Ridge State Forest","latitude":"36.736700","longitude":"-83.762480"},{"name":"Amity Park","latitude":"35.932640","longitude":"-82.006000"},{"name":"Mill Creek Park","latitude":"40.030819","longitude":"-122.115387"},{"name":"Willamette National Forest","latitude":"44.058990","longitude":"-122.484970"},{"name":"The Mound","latitude":"32.490819","longitude":"-80.320408"}]
Then you add a file called map.njk in the _includes folder. map.njk has CDN links for Leaflet, html markup for the map, and the javacript code to create a Leaflet map.
For the final project of the Pasadena City College GEOG 115 Environmental Analysis with GIS class, students had the choice of creating a ArcGIS Dashboard or creating a ArcGIS StoryMap. Two students including myself choose to do dashboards, 18 students choose to do StoryMaps.
GIS is a technical subject. People are dealing with creating maps and charts to analyze an visualize geospatial data. Yet only two people were interested in creating dashboards to display that data. The rest wanted to tell a story with prose, images, and videos.
If storytelling is the preferred method of communicating for these geography students, then why do so many people in academic science research community deemphasized and discouraged
science communication to the general public?
I spent the day at UCLA Mathias Botanical Garden. I went on a guided tour of the garden, attended a plant propagation class, and attended a drawing plants class. I also got unexpectedly got a chance to hang out with some friends, one of whom works at the gardens.
During the drawing class, one of the attendees asked for some tips about how to get started. She and her boyfriend had no experience drawing. I would rate my drawing skills as above stick figure level, but nowhere good enough do it as a career. I gave her some tips, and she commended me on my advice. Turns out she's a teacher so she noticed I focused on growth mindset and positive reinforcement, which is crucial to creating a good learning environment.
My friend who works at the Natural History Museum of Los Angeles County told me that some of the high schools students who attended the R coding workshop earlier this year actually used some of what they learned in their school presentation.
It was nice getting positive feedback about my teaching attempts. Yeah, I'm a better at informal education than I am at sketching or identifying plants and animals, and that's totally cool with me.