primo commit
This commit is contained in:
4
templates/tabulizer/js/index.html
Normal file
4
templates/tabulizer/js/index.html
Normal file
@ -0,0 +1,4 @@
|
||||
<html>
|
||||
<body bgcolor="#FFFFFF">
|
||||
</body>
|
||||
</html>
|
||||
16
templates/tabulizer/js/xcell_bg_height.js
Normal file
16
templates/tabulizer/js/xcell_bg_height.js
Normal file
@ -0,0 +1,16 @@
|
||||
function setXCellBackgroundHeight() {
|
||||
jtQuery('.xcell').each(function(){
|
||||
var el = jtQuery(this);
|
||||
var padding_top = parseInt(el.css('padding-top'));
|
||||
var padding_bottom = parseInt(el.css('padding-bottom'));
|
||||
var parent_height = el.parent('td').height();
|
||||
new_height = parent_height - padding_top - padding_bottom;
|
||||
el.css("height", new_height + "px");
|
||||
});
|
||||
}
|
||||
jtQuery(document).ready(function(){
|
||||
setXCellBackgroundHeight();
|
||||
});
|
||||
jtQuery( window ).resize(function() {
|
||||
setXCellBackgroundHeight();
|
||||
});
|
||||
Reference in New Issue
Block a user