Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
街头小贩
Jforum2
提交
23c81f96
J
Jforum2
项目概览
街头小贩
/
Jforum2
通知
2
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
1
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
Jforum2
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
23c81f96
编写于
10月 16, 2020
作者:
街头小贩
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加滚动时提示层置顶
上级
3bd4af3d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
14 addition
and
16 deletion
+14
-16
thrones/src/main/java/com/apobates/forum/thrones/controller/helper/TopicSocketUpdatedHandler.java
.../thrones/controller/helper/TopicSocketUpdatedHandler.java
+0
-10
thrones/src/main/webapp/static/img/core.css
thrones/src/main/webapp/static/img/core.css
+4
-4
thrones/src/main/webapp/static/lib/forum/jForum.js
thrones/src/main/webapp/static/lib/forum/jForum.js
+10
-2
未找到文件。
thrones/src/main/java/com/apobates/forum/thrones/controller/helper/TopicSocketUpdatedHandler.java
浏览文件 @
23c81f96
...
...
@@ -71,14 +71,4 @@ public class TopicSocketUpdatedHandler extends TextWebSocketHandler {
List
<
ForumThreads
>
data
=
rs
.
stream
().
map
(
ForumThreads:
:
new
).
collect
(
Collectors
.
toList
());
return
new
Gson
().
toJson
(
data
);
}
/* 话题最近的回复
private String topicUpdatedPostes(long topicId, int previousUx) {
Stream<Posts> rs = postsService.getRecentByUnixStamp(topicId, previousUx);
//处理内容
if (rs.count() == 0) {
return null;
}
return new Gson().toJson(rs.collect(Collectors.toList()));
}*/
}
\ No newline at end of file
thrones/src/main/webapp/static/img/core.css
浏览文件 @
23c81f96
...
...
@@ -77,8 +77,8 @@ dt{font-weight:500}
#topic_tages
a
,
#topic_tages
label
{
border-radius
:
2px
;}
.mood-action
span
{
text-indent
:
5px
;
display
:
inline-block
;}
.div-select
{
border-width
:
1px
;
border-style
:
solid
;
padding
:
5px
8px
;
margin-bottom
:
0
;
border-radius
:
.2rem
;
margin-top
:
0
;
text-indent
:
.5rem
;
cursor
:
pointer
;}
#unknow_topic_tip
{
margin
:
0
;
border
:
0
;
border-radius
:
0
;
text-align
:
center
;
line-height
:
50px
;
position
:
relative
}
#unknow_topic_tip
{
margin
:
0
;
border
:
0
;
border-radius
:
0
;
text-align
:
center
;
line-height
:
50px
;
display
:
hidden
;
position
:
relative
}
.fix_style_tip
{
position
:
fixed
!important
;
z-index
:
9999
;
top
:
0
;}
/*底部统计*/
#footer
{
color
:
#fff
;
width
:
100%
;
height
:
100px
;
position
:
relative
;
clear
:
both
}
.social-tooltip
{
width
:
50px
;
height
:
50px
;
line-height
:
50px
;
text-align
:
center
;
display
:
inline-block
;
color
:
#666
;}
.social-tooltip
:hover
{
background-color
:
#000
;
color
:
#fff
}
.stat-block
{
box-shadow
:
0
1px
1px
rgba
(
0
,
0
,
0
,
0.05
),
0
1px
0
rgba
(
0
,
0
,
0
,
0.05
);}
...
...
@@ -361,7 +361,7 @@ body.jetblack{background-color:#272b30}
.jetblack
.fav-board-item
{
border
:
1px
solid
#666
;}
.jetblack
.fav-board-stats
{
border-top
:
1px
solid
#666
;
color
:
#999
}
.jetblack
.div-select
{
border-color
:
#666
;
background-color
:
#272b2e
;
color
:
#999
;}
.jetblack
#unknow_topic_tip
{
background-color
:
#32383e
!important
;
color
:
#e1e1e1
!important
}
.jetblack
#unknow_topic_tip
{
background-color
:
rgba
(
42
,
73
,
5
,
0.9
)
!important
;
color
:
#e1e1e1
!important
}
/*推送|置顶的样式*/
.jetblack
.fadeout-anim
{
background
:
#1c1e22
;
...
...
@@ -454,7 +454,7 @@ body.snowhite{background-color:#f2f2f2!important}
.snowhite
.fav-board-item
{
border
:
1px
solid
#ddd
;}
.snowhite
.fav-board-stats
{
border-top
:
1px
solid
#ddd
;
color
:
#333
}
.snowhite
.div-select
{
border-color
:
#ddd
;
background-color
:
#fff
;
color
:
#666
;}
.snowhite
#unknow_topic_tip
{
background-color
:
#e1e1e1
!important
}
.snowhite
#unknow_topic_tip
{
background-color
:
rgba
(
244
,
68
,
68
,
0.9
)
!important
;
color
:
#fff
!important
}
/*推送|置顶的样式*/
.snowhite
.fadeout-anim
{
background
:
#fff
;
...
...
thrones/src/main/webapp/static/lib/forum/jForum.js
浏览文件 @
23c81f96
...
...
@@ -492,9 +492,17 @@ define('jForum', [
//右侧边栏的工具栏
$
(
window
).
on
(
'
scroll
'
,
function
(
e
)
{
if
(
$
(
this
).
scrollTop
()
>
200
)
{
$
(
'
#topTopBar
'
).
fadeIn
(
500
);
//版块新消息提示
if
(
!
$
(
'
#unknow_topic_tip
'
).
hasClass
(
'
fix_style_tip
'
)){
$
(
'
#unknow_topic_tip
'
).
addClass
(
'
fix_style_tip
'
).
css
(
'
width
'
,
'
1110px
'
);
}
//右侧边栏的工具栏
$
(
'
#topTopBar
'
).
fadeIn
(
500
);
}
else
{
$
(
'
#topTopBar
'
).
fadeOut
(
500
);
//版块新消息提示
$
(
'
#unknow_topic_tip
'
).
removeClass
(
'
fix_style_tip
'
);
//右侧边栏的工具栏
$
(
'
#topTopBar
'
).
fadeOut
(
500
);
}
});
return
{
init
:
init
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录