diff --git a/layouts/zb5_site/js/layout.js b/layouts/zb5_site/js/layout.js new file mode 100644 index 000000000..6e1ce9176 --- /dev/null +++ b/layouts/zb5_site/js/layout.js @@ -0,0 +1,22 @@ +function fnStartInit() { + var obj = xGetElementById('loading'); + obj.style.visibility = 'hidden'; +} +xAddEventListener(window,'load',fnStartInit); + + +// footer를 화면 크기에 맞춰 설정 +xAddEventListener(window, 'load', fixLayoutFooter); +xAddEventListener(window, 'resize', fixLayoutFooter); +function fixLayoutFooter() { + var headerHeight = 145; + var bodyHeight = xHeight(xGetElementById('content_body')); + var footerHeight = 55; + var clientHeight = xClientHeight(); + var newHeight = clientHeight - footerHeight - headerHeight; + if(typeof(editor_height)!='undefined') newHeight += editor_height; + + if(newHeight