
| Current Path : /var/www/html/ift/web/themes/contrib/adaptivetheme/at_core/scripts/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/ift/web/themes/contrib/adaptivetheme/at_core/scripts/at.responsiveTables.js |
/**
* @file
* Responsive tables.
*/
(function ($, Drupal) {
"use strict";
$('table.forum').addClass('responsive-enabled');
$('table.responsive-enabled').wrap('<div class="responsive-table"><div class="responsive-table__scroll"></div></div>');
if ($('table.responsive-enabled').prop('scrollWidth') > $(".responsive-table").width() ) {
var overflowmessage = Drupal.t('Scroll to view');
$('.responsive-table__scroll').append('<div class="responsive-table__message"><em>' + overflowmessage + '</em></div>');
$('table.responsive-enabled').addClass('has-overflow');
}
})(jQuery, Drupal);