Last active
February 15, 2018 20:00
-
-
Save sjwilliams/633cc133681c2a1771305b193c9aafa7 to your computer and use it in GitHub Desktop.
Return BayPhoto print sizes as list of height/width ratios. Markup on the https://order.bayphoto.com page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[].slice.call(document.querySelectorAll('#panel_content_4932_template li')).map(function(el){ return el.textContent.trim();}).filter(function(str){ return /^\S+x\S+$/.test(str) }).forEach(function(str){ var wh = str.split('x'); console.log(str, wh[1]/wh[0]) }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Outputs