mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 12:50:36 +01:00
parent
698ead8097
commit
eb1a441625
@ -1,7 +1,13 @@
|
||||
(function(){
|
||||
"use strict";
|
||||
|
||||
document.getElementById("code").textContent = atob(
|
||||
var iframeCode = atob(
|
||||
document.getElementById("iframe").src.replace(/^.+base64,/, "")
|
||||
);
|
||||
|
||||
document.getElementById("code").textContent = iframeCode;
|
||||
|
||||
var blob = new Blob([iframeCode], {type : 'text/html'});
|
||||
var newurl = window.URL.createObjectURL(blob);
|
||||
document.getElementById("blobIframe").src = newurl;
|
||||
}());
|
@ -25,6 +25,8 @@
|
||||
)
|
||||
);
|
||||
?>"></iframe>
|
||||
<h1>blob iFrame</h1>
|
||||
<iframe id="blobIframe"></iframe>
|
||||
<h1>Data-URL object</h1>
|
||||
<object
|
||||
type="invalid"
|
||||
|
Loading…
x
Reference in New Issue
Block a user