INNER CODE UNIT · JavaScript

updateTH

w3c/webdriver · results/html/sticky-headers.js:4

    function updateTH () {
        $(".persist-area").each(function() {
            var $el = $(this)
            ,   offset = $el.offset()
            ,   scrollTop = $(window).scrollTop()
            ,   $floatingHeader = $(".floatingHeader", this)
            ;
            if ((scrollTop > offset.top) && (scrollTop < offset.top + $el.height()))
                $floatingHeader.css({ "visibility": "visible" });
            else
               $floatingHeader.css({ "visibility": "hidden" });
        });
    }
    $(function() {
        var $clonedHeaderRow;
        $(".persist-area").each(function() {
            $clonedHeaderRow = $(".persist-header", this);
            var widths = [];

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…