Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo
Commits
151c5178
Commit
151c5178
authored
Oct 01, 2015
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
fff689ea
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
2 deletions
+19
-2
nbactions.xml
nbactions.xml
+1
-0
src/main/webapp/skins/finding/css/finding.min.css
src/main/webapp/skins/finding/css/finding.min.css
+1
-1
src/main/webapp/skins/finding/js/finding.min.js
src/main/webapp/skins/finding/js/finding.min.js
+1
-1
src/test/resources/local.properties
src/test/resources/local.properties
+16
-0
No files found.
nbactions.xml
View file @
151c5178
...
...
@@ -16,6 +16,7 @@
<goals>
<goal>
clean
</goal>
<goal>
min:min
</goal>
<goal>
license:format
</goal>
<goal>
install
</goal>
</goals>
</action>
...
...
src/main/webapp/skins/finding/css/finding.min.css
View file @
151c5178
This diff is collapsed.
Click to expand it.
src/main/webapp/skins/finding/js/finding.min.js
View file @
151c5178
...
...
@@ -13,4 +13,4 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var
Finding
=
{
init
:
function
(){
Util
.
killIE
();
$
(
"
.scroll-down
"
).
click
(
function
(
event
){
event
.
preventDefault
();
var
$this
=
$
(
this
),
$htmlBody
=
$
(
"
html, body
"
),
offset
=
(
$this
.
attr
(
"
data-offset
"
))?
$this
.
attr
(
"
data-offset
"
):
false
,
toMove
=
parseInt
(
offset
);
$htmlBody
.
stop
(
true
,
false
).
animate
({
scrollTop
:(
$
(
this
.
hash
).
offset
().
top
+
toMove
)},
500
)});
$
(
"
body
"
).
click
(
function
(
event
){
if
(
$
(
event
.
target
).
closest
(
"
.nav
"
).
length
===
0
&&
$
(
"
body
"
).
hasClass
(
"
nav-opened
"
)
&&!
$
(
event
.
target
).
hasClass
(
"
icon-gotop
"
)){
$
(
"
body
"
).
removeClass
(
"
nav-opened
"
).
addClass
(
"
nav-closed
"
)}});
$
(
"
.menu-button
"
).
click
(
function
(
event
){
event
.
stopPropagation
();
$
(
"
body
"
).
toggleClass
(
"
nav-opened nav-closed
"
)});
$
(
"
body
"
).
append
(
'
<a class="icon-gotop fn-none" href="javascript:Util.goTop()"></a>
'
);
$
(
window
).
scroll
(
function
(){
if
(
$
(
window
).
scrollTop
()
>
$
(
window
).
height
()){
$
(
"
.icon-gotop
"
).
show
()}
else
{
$
(
"
.icon-gotop
"
).
hide
()}})},
share
:
function
(){
$
(
"
.share span
"
).
click
(
function
(){
var
key
=
$
(
this
).
data
(
"
type
"
);
var
title
=
encodeURIComponent
(
$
(
"
title
"
).
text
()),
url
=
$
(
"
.post-title a
"
).
attr
(
"
href
"
)?
$
(
"
.post-title a
"
).
attr
(
"
href
"
):
location
,
pic
=
$
(
"
.post-content img:eq(0)
"
).
attr
(
"
src
"
);
var
urls
=
{};
urls
.
tencent
=
"
http://share.v.t.qq.com/index.php?c=share&a=index&title=
"
+
title
+
"
&url=
"
+
url
+
"
&pic=
"
+
pic
;
urls
.
weibo
=
"
http://v.t.sina.com.cn/share/share.php?title=
"
+
title
+
"
&url=
"
+
url
+
"
&pic=
"
+
pic
;
urls
.
google
=
"
https://plus.google.com/share?url=
"
+
url
;
urls
.
twitter
=
"
https://twitter.com/intent/tweet?status=
"
+
title
+
"
"
+
url
;
window
.
open
(
urls
[
key
],
"
_blank
"
,
"
top=100,left=200,width=648,height=618
"
)})}};
Finding
.
init
();
\ No newline at end of file
var
Finding
=
{
init
:
function
(){
Util
.
killIE
(),
$
(
"
.scroll-down
"
).
click
(
function
(
t
){
t
.
preventDefault
();
var
o
=
$
(
this
),
n
=
$
(
"
html, body
"
),
e
=
o
.
attr
(
"
data-offset
"
)?
o
.
attr
(
"
data-offset
"
):
!
1
,
a
=
parseInt
(
e
);
n
.
stop
(
!
0
,
!
1
).
animate
({
scrollTop
:
$
(
this
.
hash
).
offset
().
top
+
a
},
500
)}),
$
(
"
body
"
).
click
(
function
(
t
){
0
===
$
(
t
.
target
).
closest
(
"
.nav
"
).
length
&&
$
(
"
body
"
).
hasClass
(
"
nav-opened
"
)
&&!
$
(
t
.
target
).
hasClass
(
"
icon-gotop
"
)
&&
$
(
"
body
"
).
removeClass
(
"
nav-opened
"
).
addClass
(
"
nav-closed
"
)}),
$
(
"
.menu-button
"
).
click
(
function
(
t
){
t
.
stopPropagation
(),
$
(
"
body
"
).
toggleClass
(
"
nav-opened nav-closed
"
)}),
$
(
"
body
"
).
append
(
'
<a class="icon-gotop fn-none" href="javascript:Util.goTop()"></a>
'
),
$
(
window
).
scroll
(
function
(){
$
(
window
).
scrollTop
()
>
$
(
window
).
height
()?
$
(
"
.icon-gotop
"
).
show
():
$
(
"
.icon-gotop
"
).
hide
()})},
share
:
function
(){
$
(
"
.share span
"
).
click
(
function
(){
var
t
=
$
(
this
).
data
(
"
type
"
),
o
=
encodeURIComponent
(
$
(
"
title
"
).
text
()),
n
=
$
(
"
.post-title a
"
).
attr
(
"
href
"
)?
$
(
"
.post-title a
"
).
attr
(
"
href
"
):
location
,
e
=
$
(
"
.post-content img:eq(0)
"
).
attr
(
"
src
"
),
a
=
{};
a
.
tencent
=
"
http://share.v.t.qq.com/index.php?c=share&a=index&title=
"
+
o
+
"
&url=
"
+
n
+
"
&pic=
"
+
e
,
a
.
weibo
=
"
http://v.t.sina.com.cn/share/share.php?title=
"
+
o
+
"
&url=
"
+
n
+
"
&pic=
"
+
e
,
a
.
google
=
"
https://plus.google.com/share?url=
"
+
n
,
a
.
twitter
=
"
https://twitter.com/intent/tweet?status=
"
+
o
+
"
"
+
n
,
window
.
open
(
a
[
t
],
"
_blank
"
,
"
top=100,left=200,width=648,height=618
"
)})}};
Finding
.
init
();
\ No newline at end of file
src/test/resources/local.properties
View file @
151c5178
#
# Copyright (c) 2010-2015, b3log.org
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
DO
NOT
REMOVE
THIS
FILE!
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment