... | ... |
@@ -17,6 +17,20 @@ |
17 | 17 |
var current_pos; |
18 | 18 |
var keep_current_pos = false; |
19 | 19 |
|
20 |
+ var timer = false; |
|
21 |
+ $(window).resize(function() { |
|
22 |
+ if (timer !== false) { |
|
23 |
+ clearTimeout(timer); |
|
24 |
+ } |
|
25 |
+ timer = setTimeout(function() { |
|
26 |
+ if ($(window).height() > 500) { |
|
27 |
+ $('#content').css('height', ($(window).height() - 130) + 'px'); |
|
28 |
+ } |
|
29 |
+ }, 200); |
|
30 |
+ }); |
|
31 |
+ |
|
32 |
+ $(window).trigger('resize'); |
|
33 |
+ |
|
20 | 34 |
$("#word-pos").text('-'); |
21 | 35 |
|
22 | 36 |
$("#up-arrow").on('click', function () { |