Showing 1 changed files with 4 additions and 9 deletions
+4 -9
templates/index.html.ep
... ...
@@ -19,14 +19,9 @@
19 19
     
20 20
     var timer = false;
21 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);
22
+      if ($(window).height() > 500) {
23
+        $('#content').css('height', ($(window).height() - 130) + 'px');
24
+      }
30 25
     });
31 26
 
32 27
     $(window).trigger('resize');
... ...
@@ -192,7 +187,7 @@
192 187
 
193 188
   <div id="side">
194 189
       <div style="margin-bottom:5px">
195
-        <input type="text" name="word", style = "width:160px" value="アブラハム">
190
+        <input type="text" name="word", style = "width:160px">
196 191
         <button id="search" style="width:50px;padding:2px;">検索</button>
197 192
       </div>
198 193
       <div style="margin-bottom:10px;">