D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
opt
/
csf
/
da
/
admin
/
Filename :
index.html
back
Copy
#!/usr/bin/perl print "<iframe scrolling='auto' name='myiframe' id='myiframe' src='index.raw' frameborder='0' width='100%' onload='resizeIframe(this);'></iframe>\n"; print "<script>\n"; print "function setupObserver(iframe) {\n"; print " const body = iframe.contentDocument.body;\n"; print " const updateDimensions = () => {\n"; print " iframe.style.height = iframe.contentDocument.body.offsetHeight + 'px';\n"; print " };\n"; print " const observer = new MutationObserver(updateDimensions);\n"; print " observer.observe(body, {\n"; print " attributes: true,\n"; print " childList: true,\n"; print " characterData: true,\n"; print " subtree: true,\n"; print " });\n"; print "}\n"; print "function resizeIframe(obj) {\n"; print " if (!obj) return;\n"; print " setupObserver(obj);\n"; print " obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';\n"; if ($ENV{SKIN_NAME} eq "enhanced") { print " obj.style.width = obj.contentWindow.document.body.scrollWidth + 'px';\n"; } else { print " obj.style.width = '98vw';\n"; } print " window.scrollTo(0,0);\n"; print " window.parent.scrollTo(0,0);\n"; print " window.parent.parent.scrollTo(0,0);\n"; print "}\n"; print "</script>\n";
Name
Size
Last Modified
Owner
Permissions
Actions
index.html
1.175
KB
June 17 2020 2:41:17
root
0644
index.raw
0.146
KB
July 20 2020 3:42:24
root
0644
2017 © D7net | D704T team