This commit is contained in:
JORGE LUIS CAUDILLO ESPARZA
2020-09-03 08:54:14 -07:00
parent 16fda384c2
commit 12988377b3
8 changed files with 1161 additions and 588 deletions

View File

@@ -359,7 +359,7 @@ function ADScroller2() {
TVisibleCols = Tthis.clone();
TVisibleCols.attr('id', ('ADCol' + Tid));
Tthis.before(TVisibleCols);
Tthis.css("width", (TWidth - ancho1 - 15))
Tthis.css("width", (TWidth - ancho1 - 15));
for (var i = numColumnas; i > colVisibles + 1; i--) {
$('table#ADCol' + Tid + ' > tbody > tr > td:nth-child(' + i + '),table#ADCol' + Tid + ' > tbody > tr > th:nth-child(' + i + ')').each(function () {
$(this).remove();
@@ -381,12 +381,12 @@ function ADScroller2() {
var hr1 = tr1.outerHeight();
var hr2 = $(txx2[i]).closest('tr').outerHeight();
if (hr1 > hr2) {
$(txx1[i]).css('height', hr1)
$(txx2[i]).css('height', hr1)
$(txx1[i]).css('height', hr1);
$(txx2[i]).css('height', hr1);
}
if (hr2 > hr1) {
$(txx1[i]).css('height', hr2)
$(txx2[i]).css('height', hr2)
$(txx1[i]).css('height', hr2);
$(txx2[i]).css('height', hr2);
}
}
}
@@ -402,8 +402,8 @@ function ADScroller2() {
var divcenterbody = $('<div class="AdsBody" ></div>');
Tthis.before(contenedor);
contenedor.append(divheader);
THeader1 = $('<tbody></tbody>')
THeader2 = $('<tbody></tbody>')
THeader1 = $('<tbody></tbody>');
THeader2 = $('<tbody></tbody>');
for (var i = rowVisibles + 1; i >= 2; i--) {
$('table#ADCol' + Tid + ' > tbody > tr:nth-child(' + i + ')').prependTo(THeader1);
$('table#' + Tid + ' > tbody > tr:nth-child(' + i + ')').prependTo(THeader2);
@@ -418,7 +418,7 @@ function ADScroller2() {
divheader.append(divheader2);
divheader1.append(THeader1);
var anchoc1 = divheader1.outerWidth() + 15;
var anchoc1 = divheader1.outerWidth();
var altoc1 = divheader1.outerHeight() + 15;
divheaderScroll = $('<div class="ADSCroll" style="width:' + (widthGral - anchoc1) + 'px;"></div>').append(THeader2);
divheader2.append(divheaderScroll);