Difference between revisions of "MediaWiki:Common.js"

From RevSpace
Jump to navigation Jump to search
Line 4: Line 4:
 
     $("#spacestatus")
 
     $("#spacestatus")
 
       .revspace()
 
       .revspace()
       .on("closing", function () { $(this).stop().animate({zoom: 3}, function () { $(this).animate({zoom:1}) } ); })
+
       .on("closing", function () { $(this).stop().animate({zoom: 4}, function () { $(this).delay(500).animate({zoom:1}) } ); })
       .on("opening", function () { $(this).stop().animate({zoom: 3}, function () { $(this).animate({zoom:1}) } ); })
+
       .on("opening", function () { $(this).stop().animate({zoom: 4}, function () { $(this).delay(500).animate({zoom:1}) } ); })
 
     ;
 
     ;
 
});
 
});

Revision as of 04:09, 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: 4}, function () { $(this).delay(500).animate({zoom:1}) } ); })
       .on("opening", function () { $(this).stop().animate({zoom: 4}, function () { $(this).delay(500).animate({zoom:1}) } ); })
    ;
});