Pym Shortcode plugin update: version 1.3.1

Last week, NPR released Pym.js version 1.3.0, and earlier this week released 1.3.1. These feature releases introduced optional scroll tracking, allowing the child iframe to know where the browser is on the parent page. You can read more about how that's implemented, and how it can be used, on the NPR Visuals Team blog post announcing Pym 1.3.0. Pym.js version 1.3.1 added a function getParentPositionInfo to the Pym child.

Pym Shortcode version 1.3.1 brings you the latest version of Pym.js, as well as the following improvements:

  • Adds an id="" attribute to allow setting of custom IDs on embeds, for Github issue #21. The id="" attribute is useful if you want to load a new embedded page inside the iframe and maintain Pym functionality.
  • Adds a class="" attribute to allow setting custom of classes on embeds, for Github issues #22 and #23. The class="" attribute allows you to, among other things, add layout classes to embeds so they take a different shape on your page.
  • Adds a default class name pym to all embed-containing <div> elements output by this plugin, and a filter pym_shortcode_default_class to allow changing the default class or removing it.

You can download the new version of the Pym Shortcode plugin through your WordPress dashboard, on the WordPress.org plugin repository, or on Github.

If you have feedback on the plugin or would like to contribute to development of the Pym Shortcode plugin, check out our contributor guidelines and join the conversation in the plugin's GitHub issues or in our Slack.

Nerd Alert Issue 36: A steady diet of waffles

nerdalertfinal

It's important to maintain "a steady diet of waffles." - @NYTMinusContext

HOT LINKS

What we're reading this week

  Adam: This post on WeChat is a fascinating read on what might be the future of mobile commerce. WeChat is a popular messaging app in China, but it’s grown into much more than that - an entire ecosystem with millions of interconnected apps within apps.

  Ben: Here’s a really well-written explanation of the difference between imperative and declarative programming languages.

  Dani: I’m getting ready to go back to school (graduate school this time), so statistics is on my mind. This article uses data viz to debunk some of the most common misconceptions about p-values.

  David: All news organizations and reporters need to ask this regularly: Do we have a clear engagement strategy for the status quo of the attention economy to deliver news products? Or are we just posting links on social media?

  Kaeti: Is your platform perpetuating unconscious (or conscious) bias? Latoya Peterson writes persuasively about why we need to engineer the racism out of apps.

  Ryan: Check out this curated list of lists containing links to some the best literature, libraries, videos, etc., on a variety of topics related to programming.

  Bert: You just stay there on the couch. I got the lawn.

This week's guest contributor:Dom DiFurio, Digital Engagement Intern at The Dallas Morning News.

The sexplosion of Vanity Fair’s Tinder story this week displays the importance in creating for the new audience. Most people would unfortunately agree that, in this era, Internet users tend to trade an interest in foreign affairs for mobile apps that get you laid (40 unique lays a year, if that’s what you’re into). That being said, somebody should create a Tinder but for finding news content millennials left at frat parties.


Each week we ask someone from outside our team to contribute a link, tool or idea. Are you our next guest star? We think you might be. Send us a note at nerds@inn.org.

SHOUT OUT

Work we admire by our journalism peers

pymviewer

 

The folks over at Texas Tribune's News Apps team built Pymviewer, an essential tool for anyone using NPR's popular pym.js to power responsive <iframe> embeds.

SOME OTHER STUFF

Gather ye rosebuds

LISTEN: The caution tape is there because this may bamboozle you.

COOK: Crunch. Repeat.

WATCH: A layer-lapse blends multiple time-lapses each moving at their own rate and starting from different times of day.

GIF: Be fearless. Try something uncomfortable and new!

 

ezgif.com-optimize