Sha256: fc60040f26888b5d1d0b8dbbc03d9ac9cc8a987e502effded6bad7f147f25bf7
Contents?: true
Size: 797 Bytes
Versions: 3
Compression:
Stored size: 797 Bytes
Contents
document.addEventListener('DOMContentLoaded', function() { "use strict"; moveScroll(); }); function moveScroll(){ var scroll = $(window).scrollTop(); var anchor_top = $('#maintable').offset().top; var anchor_bottom = $("#bottom_anchor").offset().top; if (scroll>anchor_top && scroll<anchor_bottom) { clone_table = $("#clone"); if(clone_table.length == 0){ clone_table = $('#maintable').clone(); clone_table.attr('id', 'clone'); clone_table.css({ position:'fixed', top:65}); clone_table.width($('#maintable').width()); $("#table-container").append(clone_table); $("#clone").css({visibility:'hidden'}); } } else { $("#clone").remove(); } } $(window).scroll(moveScroll);
Version data entries
3 entries across 3 versions & 1 rubygems