I'm a Java programmer, so I'm not just coming in here (completely)n00b-like. My boss just asked me to work on a project and after speaking with an engineer for the client company, I need to create a responsive iframe using pym.js. Problem is, I've never learned JavaScript. After reading through some docs and taking some udemy courses, I have the basics down. But there are only 6 questions regarding this pym.js on StackOverflow. I cannot for the life of me figure out how to use it.
Do I need to do something like this in the <head>...</head>
:
<script src="[insert pym.js source here]"></script>
Also, I don't have access to the source files for the site that this is going to. Can still make my "child" iframe responsive based on "parent" width?
Any help would be much appreciated.
EDIT
This is what I have so far, hoping this is right.
index.html
<body>
<script type="text/javascript" src="https://pym.nprapps.org/pym.v1.js"></script>
<div id="embed-1">
</div>
<script type="text/javascript">
new pym.Parent("embed-1", "iframe.html");
</script>
</body>
iframe.html
<body>
<script type="text/javascript" src="https://pym.nprapps.org/pym.v1.js"></script>
</body>