OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
sendy
/
js
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/18/2021 09:43:15 AM
rwxr-xr-x
📄
bootstrap.js
51.21 KB
11/18/2021 09:43:37 AM
rwxr-xr-x
📁
ckeditor
-
11/18/2021 09:42:30 AM
rwxr-xr-x
📁
create
-
11/18/2021 09:42:40 AM
rwxr-xr-x
📄
datepicker.js
11.44 KB
11/18/2021 09:43:37 AM
rwxr-xr-x
📁
fancybox
-
11/18/2021 09:43:15 AM
rwxr-xr-x
📁
highcharts
-
11/18/2021 09:46:15 AM
rwxr-xr-x
📄
jquery-3.5.1.min.js
87.38 KB
11/18/2021 09:43:37 AM
rw-r--r--
📄
jquery-ui-1.8.21.custom.min.js
25.5 KB
11/18/2021 09:43:37 AM
rwxr-xr-x
📁
lists
-
11/18/2021 09:46:17 AM
rwxr-xr-x
📄
main.js
2.02 KB
11/18/2021 09:43:37 AM
rwxr-xr-x
📁
pickaday
-
11/18/2021 09:42:17 AM
rwxr-xr-x
📄
responsive-tables.js
1.73 KB
11/18/2021 09:43:37 AM
rwxr-xr-x
📁
settings
-
11/18/2021 09:43:44 AM
rwxr-xr-x
📁
tablesorter
-
11/18/2021 09:42:17 AM
rwxr-xr-x
📄
validate.js
21.43 KB
11/18/2021 09:43:37 AM
rw-r--r--
Editing: responsive-tables.js
Close
$(document).ready(function() { var switched = false; var updateTables = function() { if (($(window).width() < 767) && !switched ){ switched = true; $("table.responsive").each(function(i, element) { splitTable($(element)); }); return true; } else if (switched && ($(window).width() > 767)) { switched = false; $("table.responsive").each(function(i, element) { unsplitTable($(element)); }); } }; $(window).on('load', function(){ updateTables(); }); $(window).on("redraw",function(){switched=false;updateTables();}); // An event to listen for $(window).on("resize", updateTables); function splitTable(original) { original.wrap("<div class='table-wrapper' />"); var copy = original.clone(); copy.find("td:not(:first-child), th:not(:first-child)").css("display", "none"); copy.removeClass("responsive"); original.closest(".table-wrapper").append(copy); copy.wrap("<div class='pinned' />"); original.wrap("<div class='scrollable' />"); setCellHeights(original, copy); } function unsplitTable(original) { original.closest(".table-wrapper").find(".pinned").remove(); original.unwrap(); original.unwrap(); } function setCellHeights(original, copy) { var tr = original.find('tr'), tr_copy = copy.find('tr'), heights = []; tr.each(function (index) { var self = $(this), tx = self.find('th, td'); tx.each(function () { var height = $(this).outerHeight(true); heights[index] = heights[index] || 0; if (height > heights[index]) heights[index] = height; }); }); tr_copy.each(function (index) { $(this).height(heights[index]); }); } });