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"

m
m
Line 14: Line 14:
 
         var $div = $(this);
 
         var $div = $(this);
  
         var re = '/\&lt\;\/th\&gt\;\&lt\;\/tr\>/';
+
         var $re = '\&lt\;\/th\&gt\;\&lt\;\/tr\>';
  
 
         var $text = $div.html();
 
         var $text = $div.html();

Revision as of 16:18, 11 April 2014

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

$( function () {
    // esize maps (within tables) to the full height of the table cell -- MH 03/28/2014
    $('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());
    });

    //$('table.infobox.geography.vcard').each(function(){
    $('div#mw-content-text').each(function(){
        var $div = $(this);

        var $re = '\&lt\;\/th\&gt\;\&lt\;\/tr\>';

        var $text = $div.html();

        //document.write($text);

        $('table.infobox.geography.vcard').html($text.search($re));

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