jQuery & the WordPress Rest API – 1st Image as Background

Ordinarily it’s pretty easy to get the featured image from the WordPress API. You just have to remember to add the _embed element like so https://bionicteaching.com/wp-json/wp/v2/posts?_embed But maybe there’s some reason you don’t want to set the featured image but want to get the first image from the body of the post. This chunk of […]

Read More… from jQuery & the WordPress Rest API – 1st Image as Background

Non-Standard Shapes- Another Odd WP JSON Display

It’s better to see this in the full page view but it grabs a WP JSON feed and makes up non-standard polygon shapes based on the posts using the featured image as the background. Try reloading the page and the shapes will change. If you hover over them they’ll behave in very odd ways as […]

Read More… from Non-Standard Shapes- Another Odd WP JSON Display

WP Rest API Tips

Cowboy riding a horse standing up.

Cowboy Jason Stanley performing a riding trick at the Round-Up, Pendleton, Oregon flickr photo by UW Digital Collections shared with no copyright restriction (Flickr Commons) I’ve been doing quite a bit more with the WordPress Rest API lately. There’s plenty of documentation and tutorials out there but most of it still feels a bit scattered […]

Read More… from WP Rest API Tips

Playing with Words – Google Sheets to jQuery Drag/Drop

flickr photo shared by Internet Archive Book Images with no copyright restriction (Flickr Commons) This is a modification of the old refrigerator poetry concept based on a request from some of our World Languages professors but it’ll likely have some broader applicability. It essentially allows for three major things. You can create draggable elements (words, […]

Read More… from Playing with Words – Google Sheets to jQuery Drag/Drop

Free Speech? Random Scenario Generator

Talking to Dan about his sports law course resulted in this random generator which might be fun for others. It’s still developing but I like the potential for reinforcing some concepts about free speech in a fun way that allows you to repeatedly explore the topic without it getting tedious. I thought this would be […]

Read More… from Free Speech? Random Scenario Generator

Display Google Sheets JSON with JQUERY

I’ve been doing my Google JSON display using Angular but I wanted to see what I could do with jQuery. This is based on the post here by Amit (to whom I am grateful for all the great stuff he puts out) with minor updates due to changes in how Google does things. Do make […]

Read More… from Display Google Sheets JSON with JQUERY

Fridge Poetry – Google Sheets as Database

Back in 2013 I built a refrigerator poetry page using javascript. I really wanted to make it so anyone could add any words they wanted in some easy way but didn’t have the skills to do that at the time. It’s been hanging out in the back of my mind since then and the bits […]

Read More… from Fridge Poetry – Google Sheets as Database

Rookie Javascript Mistakes

I frequently can accomplish things by cobbling together code I find on Stack Overflow and various tutorials/examples found elsewhere. Sometimes I have a decent idea what’s going. Other times . . . my lack of real understanding slows me down much more than I’d like. The following bits of increased knowledge come from playing around […]

Read More… from Rookie Javascript Mistakes

Javascript Puzzle Code Proof of Concept

This is the result of a conversation I had with Gardner and Jon yesterday. Essentially, we all found this O-P-E-N page1 pretty interesting. As we got to talking it seemed that there could be some interesting ways that that movement could feed back into what the site itself in ways other than just changing the […]

Read More… from Javascript Puzzle Code Proof of Concept