Files
ctms-yii/pms-admin/web/js/content.min.js
T
2025-07-13 19:37:38 +08:00

65 lines
1.7 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 (
$("body").tooltip({
selector: "[data-toggle=tooltip]",
container: "body"
}),
$(".modal").appendTo("body"),
$("[data-toggle=popover]").popover(),
$(".collapse-link").click(function(obj) {
var href = (obj.currentTarget.dataset.href) ? obj.currentTarget.dataset.href : false;
if(href){
var o = $(href).parent(),
e = $(this).find("i"),
i = $(href);
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)
}else{
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="'+HOME_URL+'" title="返回首页"><i class="fa fa-home"></i></a></div>';
$("body").append(gohome)
}