MediaWiki:Common.js: Difference between revisions

From RevSpace
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
$.getScript("/status/mqtt-status.js", function () {
$.getScript("/status/mqtt-status.js", function () {
     $("<div id=spacestatus>?</div>").appendTo($("#p-logo"));
     $("<div id=spacestatus>?</div>").appendTo($("#p-logo"));
     $("#spacestatus").revspace();
     $("#spacestatus")
      .revspace()
      .on("closing", function () { $(this).stop().animate({zoom: 3}, function () { $(this).animate({zoom:1}) } ); })
      .on("opening", function () { $(this).stop().animate({zoom: 3}, function () { $(this).animate({zoom:1}) } ); })
    ;
});
});

Revision as of 02:07, 5 March 2016

/* Any JavaScript here will be loaded for all users on every page load. */
$.getScript("/status/mqtt-status.js", function () {
    $("<div id=spacestatus>?</div>").appendTo($("#p-logo"));
    $("#spacestatus")
       .revspace()
       .on("closing", function () { $(this).stop().animate({zoom: 3}, function () { $(this).animate({zoom:1}) } ); })
       .on("opening", function () { $(this).stop().animate({zoom: 3}, function () { $(this).animate({zoom:1}) } ); })
    ;
});