Skip to content

Commit 1fd14f8

Browse files
committed
Replaced pym.js with iframe-resizer, as per client request. To make it easier to keep iframe-resizer updated, I added it as an npm dependancy, and added a build step to copy the iframe-resizer scripts from node_modules to our vendor folder — and a new vendor-external folder, because unlike pym.js, iframe-resizer has one script for child pages (which goes in our vendor.min.js), and a different script for parent pages (which doesn’t, because we only use it for our test pages — it isn’t meant to go on a page that’ll be within a resized iframe, and thus shouldn’t be in our vendor.min.js). See #64.
1 parent 7020ff6 commit 1fd14f8

13 files changed

+2437
-850
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ To set the language add the language code in a variable in the embed url. Suppor
4444

4545
To set the application to Arabic, for example, add `?lang=ar` to the end of the url.
4646

47-
## Pym.js
48-
Pym.js is a way to embed an iframe whose aspect ratio changes at different screen widths.
47+
## iframe-resizer
48+
iframe-resizer is a way to embed an iframe whose aspect ratio changes at different screen widths.
4949

50-
> In Pym.js parlance, the parent page is the page you embed the iframe in. And the child frame is the page that is embedded.
50+
See https://github.com/davidjbradshaw/iframe-resizer for documentation.
5151

52-
An example of pym usage is in [iframe-pym.html](/iframe-pym.html)
52+
An example of iframe-resizer usage is in [iframe-resizer.html](/iframe-resizer.html)
5353

5454
## Updates
5555
We're leveraging Github's functionality as much as possible. The live version sits in the gh-pages branch. To keep the data clean and not re-introduce errors it's important to pull before pushing (for yearly updates)

iframe-pym-tests-rtl.html

Lines changed: 0 additions & 122 deletions
This file was deleted.

iframe-pym-tests.html

Lines changed: 0 additions & 122 deletions
This file was deleted.

0 commit comments

Comments
 (0)