removed function

This commit is contained in:
Brychan Dempsey 2021-06-05 18:20:34 +12:00
parent fea90a49ae
commit e79552015d

View File

@ -1,16 +1,11 @@
<head> <head>
<script> <script>
function cleanContent() $('iframe').load( function(){
{
var $iFrameContents = $('iframe').contents(), var $iFrameContents = $('iframe').contents(),
$entryContent = $iFrameContents.find('div.file-view'); $entryContent = $iFrameContents.find('div.file-view');
$iFrameContents.find('html').replaceWith($entryContent); $iFrameContents.find('html').replaceWith($entryContent);
// Next restore the style-sheets // Next restore the style-sheets
var stylesheet = $('iframe').contents().find('link[rel="stylesheet"]').prependTo($iFrameContents.find('div.file-view')); var stylesheet = $('iframe').contents().find('link[rel="stylesheet"]').prependTo($iFrameContents.find('div.file-view'));
}
$('iframe').load( function(){
console.log("Cleaning content"); console.log("Cleaning content");
cleanContent(); cleanContent();
}); });