Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var _pc_resizeIFrame = function(iframe) {
- iframe.height = iframe.contentDocument.body.scrollHeight;
- }
- document.querySelectorAll(".pc-iframe").forEach(function(iframe) {
- window.onload = function () {
- _pc_resizeIFrame(iframe);
- };
- window.onresize = function () {
- _pc_resizeIFrame(iframe);
- };
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement