jQuery Splitterセパレータプラグイン


1.セパレータカード
左右の区切りがあり、上下の区切りがあります.ここで紹介するのは左右の区切りです.この区切りバーをドラッグして、左または右の領域を拡大または縮小できます.
2.htmlファイル:

Terms & Conditions

User Generated Material

This website contains messaging systems and other user generated content toward the purpose and fulfillment of directory or indirectly contacting or stalking celebrities and/or their family and/or people in their vaguely related social sphere. Such content is here forth and eternally regarded as property of StarTrackr and parent company et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum


3.jsファイル断片:
$(document).ready(function(){
  $('#splitter > div:first').resizable({ 
    handles: 'e', 
    minWidth : '100',
    maxWidth : '400',
    resize: function() { 
      var remainingSpace = $(this).parent().width() - $(this).outerWidth();
      var divTwo = $(this).next();
      var divTwoWidth = remainingSpace - (divTwo.outerWidth() - divTwo.width());
      divTwo.css('width', divTwoWidth + 'px');
    }
  });
});

4.使用するcssスタイル:
#splitter {
    height:150px;
    margin-top:30px;
    margin-bottom:50px;
}
#splitter .pane {
    width:50%;
    height:100%;
    float:left;
}

#splitter h2 { 
  margin-bottom:0; 
  padding-bottom:0;
}

#tocPane { 
    overflow: hidden;
    background:#d6dde5 url(handle.png) no-repeat right center;
}

#tocPane .inner { 
    width: 300px; 
}

#contentPane {
    overflow: auto;
}

#contentPane .inner {
    padding: 0 5px;
}

5.jsクラスライブラリの導入:
  
  
  

( ・・・)