/*! iFrame Resizer (iframeSizer.min.js ) - v2.8.8 - 2015-06-08 * Desc: Force cross domain iframes to size to content. * Requires: iframeResizer.contentWindow.min.js to be loaded into the target frame. * Copyright: (c) 2015 David J. Bradshaw - dave@bradshaw.net * License: MIT */ !function(){"use strict";function m(a,b,c){"addEventListener"in window?a.addEventListener(b,c,!1):"attachEvent"in window&&a.attachEvent("on"+b,c)}function n(){var b,a=["moz","webkit","o","ms"];for(b=0;bb)throw new Error("Value for min"+a+" can not be greater than max"+a);q(" Checking "+d+" is in range "+c+"-"+b),eb&&(e=b,q(" Set "+d+" to max value")),F[d]=""+e}function l(){function b(){function a(){q(" Checking connection is from allowed list of origins: "+d);var a;for(a=0;a tag, found <"+a.tagName+">.");z.call(a,b)}return n(),m(window,"message",s),m(window,"resize",B),function(c,d){switch(typeof d){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(d||"iframe"),function(b){a(b,c)});break;case"object":a(d,c);break;default:throw new TypeError("Unexpected data type ("+typeof d+").")}}}function D(a){a.fn.iFrameResize=function(b){return this.filter("iframe").each(function(a,c){z.call(c,b)}).end()}}var a=0,b=!1,c="message",d=c.length,e="[iFrameSizer]",f=e.length,g=null,h=window.requestAnimationFrame,i={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},j={},k=null,l={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!1,enableInPageLinks:!1,enablePublicMethods:!1,heightCalculationMethod:"offset",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,tolerance:0,closedCallback:function(){},initCallback:function(){},messageCallback:function(){},resizedCallback:function(){},scrollCallback:function(){return!0}};window.jQuery&&D(jQuery),"function"==typeof define&&define.amd?define([],C):"object"==typeof module&&"object"==typeof module.exports?module.exports=C():window.iFrameResize=window.iFrameResize||C()}();