Add safingTailwind-1.2

This commit is contained in:
Luke 2021-12-13 07:29:14 +01:00
parent c54798ddd1
commit abd2fd25e8
15 changed files with 267698 additions and 1 deletions

View file

@ -0,0 +1,28 @@
window.onload = function () {
SetUpIframeData()
};
function SetUpIframeData() {
$('.preview-panel-left').each(function(){
iframe = $(this).find( ".iframe" );
data = $(this).find( ".data" );
iframeContents = iframe.contents()
innerHtml = iframeContents.find('html');
innerBody = iframeContents.find('body');
innerHead = iframeContents.find('head');
innerHead.append('<link rel="stylesheet" href="../safingTailwind-1.2.css">');
innerBody.append(data)
});
setTimeout(function(){
SetUpIframeHeight()
}, 500);
}
function SetUpIframeHeight() {
$('.preview-panel-left').each(function(){
iframe = $(this).find( ".iframe" );
iframeContents = iframe.contents()
innerHtml = iframeContents.find('html');
iframe.height((innerHtml.height()) + 'px')
});
}