// @codekit-append “../vendor/iFrameResizer/iframeResizer.min.js”
// @codekit-append “../iframe.js”
/*! iFrame Resizer (iframeSizer.min.js ) – v2.8.7 – 2015-05-19
* 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 a(a,b,c){“addEventListener”in window?a.addEventListener(b,c,!1):”attachEvent”in window&&a.attachEvent(“on”+b,c)}function b(){var a,b=[“moz”,”webkit”,”o”,”ms”];for(a=0;a
//# sourceMappingURL=iframeResizer.map
// Generated by CoffeeScript 1.9.3
if (location.protocol === ‘https:’) {
(function() {
(function() {
var iframe, matches, parent, scriptTag, urlRE;
var src = ”;
scriptTag = document.getElementById(“usedcarsmodule”);
urlRE = /https:\/\/([^.]+)\.brugtbilsmodul\.dk\/Scripts\/([a-f0-9]{8}-(?:[a-f0-9]{4}-){3}[a-f0-9]{12})\.js/;
matches = scriptTag.src.match(urlRE);
if (matches != null) {
src = “https://” + matches[1] + “.brugtbilsmodul.dk/?guid=” + matches[2];
iframe = document.createElement(“iframe”);
iframe.src = src;
iframe.setAttribute(“src”, “https://” + matches[1] + “.brugtbilsmodul.dk/?guid=” + matches[2]);
iframe.setAttribute(“id”, “usedcarsframe”);
iframe.setAttribute(“width”, “100%”);
iframe.setAttribute(“style”, “height:100vh;”);
iframe.setAttribute(“scrolling”, “yes”);
iframe.setAttribute(“frameBorder”,”0″);
iframe.setAttribute(“onload”,”window.parent.parent.scrollTo(0,0)”);
parent = scriptTag.parentNode;
parent.insertBefore(iframe, scriptTag);
iframe.contentWindow.onerror = function(){
}
return typeof iFrameResize === “function” ? iFrameResize({
log: true
}) : void 0;
}
})();
}).call(this);
}else{
(function() {
(function() {
var iframe, matches, parent, scriptTag, urlRE;
scriptTag = document.getElementById(“usedcarsmodule”);
urlRE = /http:\/\/([^.]+)\.brugtbilsmodul\.dk\/Scripts\/([a-f0-9]{8}-(?:[a-f0-9]{4}-){3}[a-f0-9]{12})\.js/;
matches = scriptTag.src.match(urlRE);
if (matches != null) {
iframe = document.createElement(“iframe”);
iframe.setAttribute(“src”, “http://” + matches[1] + “.brugtbilsmodul.dk/?guid=” + matches[2]);
iframe.setAttribute(“id”, “usedcarsframe”);
iframe.setAttribute(“width”, “100%”);
iframe.setAttribute(“scrolling”, “no”);
iframe.setAttribute(“frameBorder”,”0″);
iframe.setAttribute(“onload”,”window.parent.parent.scrollTo(0,0)”);
parent = scriptTag.parentNode;
parent.insertBefore(iframe, scriptTag);
return typeof iFrameResize === “function” ? iFrameResize({
log: false
}) : void 0;
}
})();
}).call(this);
}