42 lines
1.3 KiB
JavaScript
Executable File
42 lines
1.3 KiB
JavaScript
Executable File
function $childNode(o) {
|
|
return window.frames[o]
|
|
}
|
|
function animationHover(o, e) {
|
|
o = $(o), o.hover(function() {
|
|
o.addClass("animated " + e)
|
|
}, function() {
|
|
window.setTimeout(function() {
|
|
o.removeClass("animated " + e)
|
|
}, 2e3)
|
|
})
|
|
}
|
|
function WinMove() {
|
|
var o = "[class*=col]",
|
|
e = ".ibox-title",
|
|
i = "[class*=col]";
|
|
$(o).sortable({
|
|
handle: e,
|
|
connectWith: i,
|
|
tolerance: "pointer",
|
|
forcePlaceholderSize: !0,
|
|
opacity: .8
|
|
}).disableSelection()
|
|
}
|
|
var $parentNode = window.parent.document;
|
|
if ($(".tooltip-demo").tooltip({
|
|
selector: "[data-toggle=tooltip]",
|
|
container: "body"
|
|
}), $(".modal").appendTo("body"), $("[data-toggle=popover]").popover(), $(".collapse-link").click(function() {
|
|
var o = $(this).closest("div.ibox"),
|
|
e = $(this).find("i"),
|
|
i = o.find("div.ibox-content");
|
|
i.slideToggle(200), e.toggleClass("fa-chevron-up").toggleClass("fa-chevron-down"), o.toggleClass("").toggleClass("border-bottom"), setTimeout(function() {
|
|
o.resize(), o.find("[id^=map-]").resize()
|
|
}, 50)
|
|
}), $(".close-link").click(function() {
|
|
var o = $(this).closest("div.ibox");
|
|
o.remove()
|
|
}), top == this) {
|
|
var gohome = '<div class="gohome"><a class="animated bounceInUp" href="index.html?v=4.0" title="返回首页"><i class="fa fa-home"></i></a></div>';
|
|
$("body").append(gohome)
|
|
} |