X

Track changes made to this page

If you find this page useful and would like to be notified of changes made to this page, start by inputting your email below.



Privacy policy
Close this window

powered by ChangeDetection

Difference between revisions of "Common.js"

(Replaced content with "Any JavaScript here will be loaded for all users on every page load.: Resize maps (within tables) to the full height of the table cell -- MH 03/28/2014: $( func...")
Line 8: Line 8:
 
         // Set the div's height to its parent td's height
 
         // Set the div's height to its parent td's height
 
         $div.height($div.closest('td').height());
 
         $div.height($div.closest('td').height());
 +
    });
 +
 +
    $('div#mw-content-text').each(function(){
 +
        var $div = $(this_;
 +
 +
        var $re = '/^\s*\<\/th\>\s*\<\/tr\>';
 +
 +
        var $text = $div.html();
 +
 +
        $div.html() = $text.replace($re, '');
 
     });
 
     });
 
});
 
});

Revision as of 14:56, 11 April 2014

/* Any JavaScript here will be loaded for all users on every page load. */

/* Resize maps (within tables) to the full height of the table cell -- MH 03/28/2014 */
$( function () {
    $('td > div.maps-map').each(function(){
        var $div = $(this);

        // Set the div's height to its parent td's height
        $div.height($div.closest('td').height());
    });

    $('div#mw-content-text').each(function(){
        var $div = $(this_;

        var $re = '/^\s*\<\/th\>\s*\<\/tr\>';

        var $text = $div.html();

        $div.html() = $text.replace($re, '');
    });
});