mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 21:13:35 +08:00
24 lines
960 B
JavaScript
24 lines
960 B
JavaScript
![]() |
(function($) {
|
|||
|
$(function() {
|
|||
|
$("<div id='debug-control'><ul><li id='debug-shape-templates'>shape templates</li></ul><div id='debug-control-toggle'>»</div></div>")
|
|||
|
.appendTo("body");
|
|||
|
$("#debug-shape-templates").click(function() {
|
|||
|
var _this = $(this);
|
|||
|
$("html").toggleClass(_this.attr("id"));
|
|||
|
$(this).toggleClass("debug-active");
|
|||
|
});
|
|||
|
$("#debug-control-toggle").click(function() {
|
|||
|
var _this = $(this), open = "debug-open";
|
|||
|
if (_this.is(":animated")) {
|
|||
|
alert("aghhhh!");
|
|||
|
return;
|
|||
|
}
|
|||
|
if (_this.is("."+open)) {
|
|||
|
_this.prev().hide("fast", function() {_this.removeClass(open).html("»");});
|
|||
|
} else {
|
|||
|
_this.prev().show("fast", function() {_this.addClass(open).html("«");});
|
|||
|
}
|
|||
|
});
|
|||
|
});
|
|||
|
})(jQuery);
|