content.min.js 1.31 KB
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
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="'+ APP.PATH + '" title="返回首页"><i class="fa fa-home"></i></a></div>';
$("body").append(gohome)
}