User:Falkirks/common.js: Difference between revisions

    From Nonbinary Wiki
    m (test)
    No edit summary
     
    Line 5: Line 5:


    if($("#randomNameHolder").length == 1) {
    if($("#randomNameHolder").length == 1) {
    $('#randomNameHolder').html('any HTML');
    $.get( "https://nnames.herokuapp.com/", function( data ) {
    $('#randomNameHolder').html(data);
    });
    }
    }


    }());
    }());

    Latest revision as of 20:24, 27 February 2019

    mw.loader.load( '//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' ); // HotCat
    
    
    $(function () {
    
    	if($("#randomNameHolder").length == 1) {
    		$.get( "https://nnames.herokuapp.com/", function( data ) {
    			$('#randomNameHolder').html(data);
    		});
    	}
    
    }());