mirror of
https://github.com/safing/web
synced 2025-09-10 15:37:00 +00:00
Add safingTailwind-1.2
This commit is contained in:
parent
c54798ddd1
commit
abd2fd25e8
15 changed files with 267698 additions and 1 deletions
28
vendor/safingTailwind/docs/js/internal/iframeRefresher.js
vendored
Normal file
28
vendor/safingTailwind/docs/js/internal/iframeRefresher.js
vendored
Normal 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')
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue