const $ = require('jquery');

$(document).ready(function(){
  $('#splitter').mousedown(function(e){
    e.preventDefault();
    $(document).mousemove(function(e){
      $('.content').css("width",$(document).width()-e.pageX+2);
      $('.side-bar').css("width",e.pageX+2);
    })
  });
  $(document).mouseup(function(e){
    $(document).unbind('mousemove');
  });
});
@@ -25,16 +25,41 @@
 y');%0D%0A%0D%0A
+var splitterLocation;%0D%0A%0D%0A
 $(docume
@@ -183,24 +183,59 @@
 nction(e)%7B%0D%0A
+      splitterLocation = e.pageX;%0D%0A
       $('.co
@@ -254,16 +254,17 @@
 %22width%22,
+ 
 $(docume
@@ -278,18 +278,27 @@
 th()
--e.pageX+2
+ - splitterLocation
 );%0D%0A
@@ -334,17 +334,25 @@
 th%22,
-e.pageX+2
+ splitterLocation
 );%0D%0A
@@ -450,8 +450,184 @@
 %7D);%0D%0A%7D);
+%0D%0A%0D%0A$(window).resize(function() %7B%0D%0A  if(typeof splitterLocation === %22undefined%22) %0D%0A    return;%0D%0A    %0D%0A  $('.content').css(%22width%22, $(document).width() - splitterLocation);%0D%0A%7D);

Fix a bug that .content does not fit with the window (instead, blank area appears on the right side) when the window is resized.