mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2024-11-10 06:41:49 +00:00
20 lines
487 B
JavaScript
20 lines
487 B
JavaScript
|
function autoadjustheight(iframeid)
|
||
|
{
|
||
|
// Find the height of the internal page
|
||
|
var doc_height = document.getElementById(iframeid).contentWindow.document.body.scrollHeight;
|
||
|
|
||
|
// Change the height of the iframe
|
||
|
document.getElementById(iframeid).height = doc_height;
|
||
|
}
|
||
|
|
||
|
//mxd
|
||
|
function ToggleSpoiler(t){
|
||
|
var d = t.nextSibling.nextSibling;
|
||
|
if (d.style.display != '') {
|
||
|
d.style.display = '';
|
||
|
t.value = 'Hide image';
|
||
|
} else {
|
||
|
d.style.display = 'none';
|
||
|
t.value = 'Show image';
|
||
|
}
|
||
|
}
|