~replaceafill/pybookbuilder/buildout

« back to all changes in this revision

Viewing changes to pybookbuilder/static/stretch_content.js

  • Committer: Filip Sufitchi
  • Date: 2011-03-15 03:12:34 UTC
  • Revision ID: fsufitchi@gmail.com-20110315031234-271ttdpt8pyd7k8i
Added chapter functionality, editing, AJAX submission

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function stretch(){
 
2
    $('#content').height( $(window).height() -
 
3
                          $('#bottombar').height() -
 
4
                          $('#topbar').height() -
 
5
                          $('#titlebar').height() - 30
 
6
                          );
 
7
    $('#editarea').height($('#content').height());
 
8
}
 
9
 
 
10
$(document).ready(stretch);
 
11
$(window).resize(stretch);
 
 
b'\\ No newline at end of file'