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EACpB,GACF,GACF,GA2DH,CAvFD,CAuFG,OAAQ,OAAQ","file":"/npm/scrollify@1.0.0/scrollify.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/scrollify@1.0.0/scrollify.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","(function ($, window, document, undefined) {\n  'use strict';\n\n  $.fn.extend({\n    scrollify: function (settings) {\n\n      return this.each(function () {\n        var $table = $(this);\n        \n        var savedSettings = $table.data('scrollify');\n        \n        settings = settings || savedSettings;\n        \n        $table.data('scrollify', settings);\n        \n        reflow($table);\n        \n        //if we have saved settings that means we already\n        //registerd the resize handler which we don't \n        //need to do again.\n        if (savedSettings) {\n          return;\n        }\n        \n        $(window).resize(function () { \n          reflow.bind(null, $table)\n        });\n      });\n    }\n  });\n\n  function reflow ($table) {\n    var settings = $table.data('scrollify');\n    \n    //reset table to normal display\n    $table.find('thead').css({ display : 'table-header-group' });\n    $table.find('tbody').css({ display : 'table-row-group' });\n    $table.find('tfoot').css({ display : 'table-footer-group' });\n    \n    //clear manually set widths\n    var $headCells = $table.find('thead tr:first').children().width('');\n    var $bodyCells = $table.find('tbody tr:first').children().width('');\n    var $footCells = $table.find('tfoot tr:first').children().width('');\n    \n    var bodyColWidth = [];\n    var headColWidth = [];\n    var footColWidth = [];\n    \n    //get column widths as they flow naturally\n    $bodyCells.each(function() {\n      bodyColWidth.push($(this).width());\n    });\n    \n    $headCells.each(function() {\n      headColWidth.push($(this).width());\n    });\n    \n    $footCells.each(function() {\n      footColWidth.push($(this).width());\n    });\n    \n    //set columns widths manually\n    $bodyCells.each(function (i) {\n      $(this).width(bodyColWidth[i]);\n    });\n    \n    $headCells.each(function (i) {\n      $(this).width(headColWidth[i]);\n    });\n    \n    $footCells.each(function (i) {\n      $(this).width(footColWidth[i]);\n    });\n    \n    //enable scrolling\n    $table.find('thead, tbody, tfoot').css({ display : 'block' })\n    \n    var maxHeight = (typeof settings.maxHeight === 'function')\n      ? settings.maxHeight($table)\n      : settings.maxHeight\n      ;\n    \n    $table.find('tbody').css({\n      maxHeight : maxHeight\n      , overflow : 'auto'\n    });\n  }\n})(jQuery, window, document);\n"]}