server/aspnetapp/wwwroot/js/simple.js
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
$( function () {
function setPopover( $ele, popoverItem ) {
$ele.each( function () {
var $this = $( this ),
id = $this.attr( 'id' ),
txt = $this.html();
$this.popover( {
trigger: 'hover',
placement: 'bottom',
html: true,
container: $this.parent(),
content: popoverItem
} ).on( 'mouseenter', function () {
//通过ajax获取数据源,添加dom节点
var _this = this;
$( this ).popover( 'show' );
$( this ).siblings( '.popover' ).on( 'mouseleave', function () {
$( _this ).popover( 'hide' );
} );
} ).on( 'mouseleave', function () {
var _this = this;
setTimeout( function () {
if ( !( '.popover:hover' ).length ) {
$( _this ).popover( 'hide' );
}
}, 100 );
} );
} );
}
function titlePopover( department, serial ) {
return '<div><span class="department">承办部门' + '</span><span class="info">' + department + '</span></div>'
+ '<div><span class="serial">自编号' + '</span><span class="info">' + serial + '</span></div>';
}
$( '.content-1 a' ).each( function () {
var department = $( this ).data( 'department' ),
serial = $( this ).data( 'serial' );
setPopover( $( this ), titlePopover( department, serial ) );
} );
$( '.navbar-right' ).on( 'mouseover click', '.notice-num', function () {
if ( $( this ).has( 'not-read' ) ) {
$( '.notice-num-list' ).show();
}
} ).on( 'mouseout', '.notice-num', function () {
if ( $( '.notice-num-list' ).length > 0 ) {
$( '.notice-num-list' ).hide();
}
} );
$( '.navbar-right' ).on( 'mouseover click', '.user-name', function () {
$( '.user-info-card' ).show();
} ).on( 'mouseout', '.user-name', function () {
$( '.user-info-card' ).hide();
} );
$( '.top' ).on( 'mouseover click', 'ul.navbar-right li a', function () {
$( this ).addClass( 'on' );
$( this ).siblings( '.nav-children' ).show();
$( this ).parent().siblings().find( '.nav-children' ).hide();
$( this ).parent().siblings().find( 'a' ).removeClass( 'on' );
} );
$( '.top' ).on( 'mouseleave', 'ul.navbar-right li', function () {
后面还有 45 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。