6c7e0f84d36ba185e7e35dd50818611a61f85a20
[map.git] / layout.js
1 function set_map_size() {
2   $('#world-map').width($(document).width() - 100);
3   $('#world-map').height(0.8 * $(document).height());
4 }
5
6 function set_log_size() {
7   $('#log').width(0.5 * $(document).width());
8   $('#log').css("margin-top", 0.03 * $(document).height());
9   $('#log').height(0.15 * $(document).height());
10 }
11
12 $(window).resize(function(){
13   set_map_size();
14   set_log_size();
15 });
16
17 set_map_size();
18 set_log_size();