diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/hall.html b/gemp-lotr/gemp-lotr-web/src/main/webapp/hall.html index 3ab7ab375..d27a9ca23 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/hall.html +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/hall.html @@ -2,185 +2,217 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - Gemp-LotR - - +Gemp-LotR + + - - - + + + - - + + - - - - - - - - - - - - + + + + + + + + + + + + - + + resizeHall(); + }); + + function resizeHall() { + var width = $(window).width(); + var height = $(window).height(); + + var innerWidth = width - 60; + var innerHeight = height - 100; + + if (innerHeight < 520) + innerHeight = 520; + if (innerWidth < 740) + innerWidth = 740; + + var middleHeight = (innerHeight - 60) / 2; + + $("#latestNews").css({width: innerWidth + "px", height: 30 + "px"}); + $("#motd").css({width: innerWidth + "px", height: 30 + "px"}); + $("#hall").css({width: innerWidth + "px", height: middleHeight + "px"}); + $("#chat").css({width: innerWidth + "px", height: middleHeight + "px"}); + + chat.setBounds(2, 2, innerWidth - 4, middleHeight - 4); + hall.hallResized(innerWidth, middleHeight); + } + -
+