2018-07-16 00:05:33 +02:00
|
|
|
(function(){
|
|
|
|
"use strict";
|
|
|
|
|
2019-12-16 19:27:28 +01:00
|
|
|
const iframeCode = atob(
|
2018-07-21 00:17:00 +02:00
|
|
|
document.getElementById("iframe").src.replace(/^.+base64,/, "")
|
2018-07-16 00:05:33 +02:00
|
|
|
);
|
2018-07-21 13:20:45 +02:00
|
|
|
|
|
|
|
document.getElementById("code").textContent = iframeCode;
|
|
|
|
|
2020-01-06 14:55:11 +01:00
|
|
|
const blob = new Blob([iframeCode.replace(
|
|
|
|
"const origin = \"data URL iframe\";",
|
|
|
|
"const origin = \"blob iframe\";"
|
|
|
|
)], {type: "text/html"});
|
2019-12-16 19:27:28 +01:00
|
|
|
const newurl = window.URL.createObjectURL(blob);
|
2018-07-21 13:20:45 +02:00
|
|
|
document.getElementById("blobIframe").src = newurl;
|
2018-07-16 00:05:33 +02:00
|
|
|
}());
|